Debian virtwl-patched wayland clients

Overview

These are Debian source packages that have been patched to support virtwl shmem allocation.

Building

Local builds can be performed by executing kokoro/build.sh. This will use cowbuilder to build the source package after installing the virtwl kernel header.

Release builds can be run through kokoro.

Updating

It's highly recommended to use a disposable container (Docker or lxd works) of the target distro to work on.

The source packages here were generated by doing the following, on the distro to update:

# Install dependencies.
sudo apt-get install build-essential devscripts quilt

# Put virtwl header in the right spot.
sudo install -m 644 patches/virtwl.h /usr/include/linux/virtwl.h

# Get source.
apt-get source $PACKAGE
cd $PACKAGE-$VERSION

export QUILT_PATCHES=debian/patches
mkdir -p "${QUILT_PATCHES}"

# Import each patch with quilt.
QUILT_PATCHES=debian/patches quilt import ../../patches/$PACKAGE/0001-...
QUILT_PATCHES=debian/patches quilt import ../../patches/$PACKAGE/0002-...

# Apply patches to current source tree.
QUILT_PATCHES=debian/patches quilt push -a

# Build the source and binary packages.
dpkg-buildpackage --sign-key=<your gpg key>

Test only the binary package on an existing container to check compatibility. Then, commit only the source package, which should contain only the following files:

  • package_version.orig.tar.xz
  • package_version-debver.debian.tar.xz
  • package_version-debver.dsc