On Sat, Oct 10, 2020 at 10:34 PM Jessica Clarke <[email protected]> wrote: > > As for HOOKDIR, that's also just a pbuilder option. How are you running > cowbuilder? Are you running it directly with sudo and forgetting you > need -E or --preserve-env=HOME in order for its HOME to not be ~root?
No, I use cowbuilder through git-pbuilder [1], and "gbp buildpackage --git-pbuilder" command. So I don't know so much under layering details as you do. [1] https://wiki.debian.org/git-pbuilder > Does your ~/.pbuilderrc include other settings you know are working? If you're interested, I can paste my ~/.pbuilderrc here: ==== SOURCE_ONLY_CHANGES=yes PDEBUILD_PBUILDER=cowbuilder MIRRORSITE=https://deb.debian.org/debian BASEDIR=~rosh/working CCACHEDIR=/var/cache/pbuilder/ccache BINDMOUNTS=${BASEDIR}/build-area BUILDRESULT=$BINDMOUNTS HOOKDIR=${BASEDIR}/hook if [ -z "${DIST}" ] && [ -r "debian/changelog" ]; then DIST=$(dpkg-parsechangelog | awk '/^Distribution: / {print $2}') fi OTHERMIRROR="$OTHERMIRROR | deb http://incoming.debian.org/debian-buildd buildd-${DIST} main" #OTHERMIRROR="$OTHERMIRROR | deb [trusted=yes] file://${BINDMOUNTS} ./" EXTRAPACKAGES="apt-utils apt-transport-https ca-certificates debhelper eatmydata lintian ccache" EATMYDATA=yes export BINDMOUNTS ==== Only one line is related to my own environment, which points to the base working directory: BASEDIR=~rosh/working Others should be reusable by others. Hope it helps. Cheers, -- Roger Shimizu, GMT +9 Tokyo PGP/GPG: 4096R/6C6ACD6417B3ACB1

