On Sun, Sep 01, 2019 at 02:16:50PM +0200, Jens Reyer wrote:

> > 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?

Correct, main is missing.

I didn't apt update: I checked the chroot, and it hadn't been added to
sources.list.

> Not sure, what you refer to in man cowbuilder.

I refert to this section in cowbuilder(8):

   CONFIGURATION FILE OPTIONS
          The possible configuration options are as follows.  Others are 
ignored.
   
          DISTRIBUTION=distribution
          BUILDRESULT=directory
          BUILDPLACE=directory
          BASEPATH=path
          MIRRORSITE=http://mirror
          NO_COWDANCER_UPDATE=1
                 See --no-cowdancer-update
          DEBIAN_ETCH_WORKAROUND=1
                 See --debian-etch-workaround


> 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"


It's interesting that it works for you and not for me. Also, according
to how I understand the manpage, the expected behaviour is that it
should not work for you, rather than that it should work for me, given
that OTHERMIRROR, HOOKDIR, EXTRAPACKAGES and even BINDMOUNTS are
supposed to be ignored :)

Possibly the manpage is not aligned with cowbuilder's behaviour?


Enrico

-- 
GPG key: 4096R/634F4BD1E7AD5568 2009-05-08 Enrico Zini <[email protected]>

Reply via email to