On 10 Oct 2020, at 14:22, Roger Shimizu <r...@debian.org> wrote:
> 
>> I tried adding this to ~/.pbuilderrc, but it gets ignored:
>> 
>>  OTHERMIRROR="deb http://incoming.debian.org/debian-buildd buildd-unstable"
> 
> I meet this issue, too.
> and I need to build both unstable and backports, so I find the
> solution is appending the following to ~/.pbuilderrc:
> 
> ====
> 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"
> ====
> 
> Of course, above will be applied after running:
> $ git-pbuilder update --override-config

Yeah this is an important point, sources.list is not overwritten
without --override-config. As with most of cowbuilder's options,
pbuilder's manpage more thoroughly documents all this, given that
cowbuilder is just a wrapper around pbuilder.

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?
Does your ~/.pbuilderrc include other settings you know are working?

Jess

Reply via email to