Package: git-buildpackage
Version: 0.5.32
Severity: normal

The manpage of git-pbuilder says the following:

       [...] It configures pdebuild to use cowbuilder by default,
       passes appropriate options to debbuild, and sets the base path
       for cowbuilder based on the environment variable DIST and, if
       set, the environment variable ARCH.

Reading this, I was understanding the ARCH variable to be
optional. Indeed, later it says:

       [...] If DIST is set, its value is the target distribution and
       /var/cache/pbuilder/base-dist.cow is used instead. [...]  If
       ARCH is set, its value is the target architecture and
       /var/cache/pbuilder/base-dist-arch.cow is used, with dist being
       set to "sid" if DIST was not set.

Now either the documentation is incorrect, or the implementation is
incorrect because just using:

DIST=sid git-pbuilder login

actually looks for /var/cache/pbuilder/base.cow:

anarcat@marcos:charybdis$ DIST=sid git-pbuilder login
Base directory /var/cache/pbuilder/base.cow does not exist

This is quite confusing because it looks like DIST is completely
ignored, as the results are identical to not using DIST:

anarcat@marcos:charybdis$ git-pbuilder login
Base directory /var/cache/pbuilder/base.cow does not exist

At the very least, I would expect git-pbuilder to look for
base-dist.cow, as mentionned in the documentation.

I believe, however, that it would be more coherent to look for
base-$DIST-$ARCH.cow by default, and have $ARCH default to something
like "amd64" (or rather dpkg --print-architecture).

But that would be an improvement that would not really be necessary. I
do believe this is a bug and not just a feature request however, as
DIST alone doesn't work as expected.

Thanks,

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_CA.utf8, LC_CTYPE=fr_CA.utf8 (charmap=UTF-8) (ignored: LC_ALL 
set to fr_CA.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages git-buildpackage depends on:
ii  devscripts       2.11.1   
ii  git [git-core]   1:1.7.7-2
ii  git-core         1:1.7.7-2
ii  python           2.7.2-9  
ii  python-dateutil  1.5-1    
ii  python2.6        2.6.7-3  
ii  python2.7        2.7.2-5  

Versions of packages git-buildpackage recommends:
ii  cowbuilder    0.65
ii  pristine-tar  1.15

Versions of packages git-buildpackage suggests:
ii  python-notify  0.1.1-3
ii  unzip          6.0-5  

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to