Skip to content

Scrapbook

andrewharle edited this page Oct 31, 2022 · 1 revision

pbuilder method

pbuilder integrates nicely with git-buildpackage. However, the build process is MUCH slower than sbuild because both the build and the tests are run in a virtualised armhf environment. Whereas, the sbuilder is a cross-build environment for build and QEMU for test.

sudo apt install pbuilder qemu-user-static
ARCH=armhf DIST=buster git-pbuilder create --mirror=http://localhost:3142/deb.debian.org/debian
ARCH=armhf DIST=buster git-pbuilder login --save-after-login

root@host:/# apt-get update
root@host:/# apt-get install eatmydata

* Need to limit core count here to resolve OOM issue. *
gbp buildpackage --git-ignore-new --git-upstream-tag='v%(version)s' \
--git-debian-branch=temp --git-pbuilder --git-arch=armhf --git-dist=buster
Clone this wiki locally