Hi Enrico

> I tried adding this to ~/.pbuilderrc, but it gets ignored:
> 
>   OTHERMIRROR="deb http://incoming.debian.org/debian-buildd buildd-unstable"

Typo? I guess "main" is missing.
Do you "apt update" later?


> So I put this in ~/.pbuilder/hooks/D09incoming:
> 
>   #!/bin/sh
>   echo "deb http://incoming.debian.org/debian-buildd buildd-unstable main" > 
> /etc/apt/sources.list.d/incoming.list
>   apt update
> 
> And it works if I do:
> 
>   sudo cowbuilder build --hookdir ~/.pbuilder/hooks file.dsc
> 
> I tried adding this to ~/.pbuilderrc:
> 
>   HOOKDIR="/home/enrico/.pbuilder/hooks/"
> 
> But it gets ignored (as documented in man cowbuilder) and I still need
> to build with --hookdir.
> 
> Would it be possible to have HOOKDIR honored and not ignored?
> 
> Alternatively, would it be possible to have OTHERMIRROR honored and not
> ignored?

[disclaimer: I'm not the cowbuilder maintainer, and I use it via gbp.]

Not sure, what you refer to in man cowbuilder.

Anyway, this works for me:
(note: BINDMOUNTS is needed for the local repository.  All variables are
set up so that you can set them multiple times and their values get
concatenated, no specific syntax needed besides that):



$ cat ~/.pbuilderrc
OTHERMIRROR="${OTHERMIRROR}${OTHERMIRROR:+|}deb [trusted=yes]
file:///home/jens/development/wine/REPO ./"

BINDMOUNTS="$BINDMOUNTS /home/jens/development/wine/REPO"

# execute D05deps with "apt update"
HOOKDIR="/home/jens/development/wine/pbuilder.hooks"

EXTRAPACKAGES="$EXTRAPACKAGES apt-utils"



$ cat /home/jens/development/wine/pbuilder.hooks/D05deps
#!/bin/sh
set -e
apt update



Greets
jre

Reply via email to