Newer
Older
sudo apt-get install sbuild schroot debootstrap eatmydata zstd
dir=/var/cache/ccache-sbuild
sudo install --group=sbuild --mode=2775 -d $dir
echo $dir $dir none rw,bind 0 0 | sudo tee -a /etc/schroot/sbuild/fstab
cat << END |sudo tee $dir/sbuild-setup
#!/bin/sh
export CCACHE_DIR=$dir
export CCACHE_UMASK=002
export CCACHE_COMPRESS=1
unset CCACHE_HARDLINK
export PATH="/usr/lib/ccache:\$PATH"
exec "\$@"
END
The first time you will need to create the build jails. This is a one time job that must be done for each version/arch you want to use
This will create the build jails for $CODENAME (flidas, belenos, etc). You can test the jails with:
The binary packages can be built from a dsc by running:
sbuild --no-run-litian -v -A --dist $CODENAME --arch $ARCH file.dsc