Bug#807487: pbuilder update in sid breaks pbuilder on (old)stable

Mattia Rizzolo mattia at debian.org
Wed Dec 9 19:07:04 UTC 2015


found 807487 0.213
retitle 807487 pbuilder fails when using aptitude resolver with aptitude 0.7.5
user pbuilder at packages.debian.org
usertag 807487 pbuilder
tag 807487 pending
thanks

On Wed, Dec 09, 2015 at 02:13:54PM +0100, Holger Levsen wrote:
> <h01ger> | anybody knows why sid is broken as in https://reproducible.debian.net/rbuild/unstable/armhf/pianobar_2015.11.22-1.rbuild.log ?
> <jwilk> That's bizarre.
> <h01ger> | jwilk: yup. and we only see it for sid, not for testing, so it has to be some change in sid…
> <jwilk> Is it only armhf?
> <h01ger> | no. also amd64
> <lamby> cd /build/*/ # you sure there's nothing else in there?
> <lamby> I do so a mention of /build/.gnupg a few lines up which, of course, should not expand by default..
> <h01ger> | its created by pbuilder… as this happens inside the chroot created by it 
> <h01ger> | and fwiw, i can reproduce it here, using pbuilder 0.213 on wheezy ;-p

Then it should be `Version: 0.213`...

> I: Building the package
> I: Running cd tmp/buildd/*/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin" dpkg-buildpacka
> tail: cannot open 'debian/changelog' for reading: No such file or directory
> dpkg-buildpackage: error: tail of debian/changelog gave error exit status 1
> E: Failed autobuilding of package
> 
> As shown on reproducible.debian.net this doesn't effect building for testing.

This is due to a change in aptitude in the way the cache is handled.
https://anonscm.debian.org/cgit/aptitude/aptitude.git/commit/?id=58fc76444b3369e11932ac188d30257b5a2b83ec
"Use XDG_CACHE_HOME spec instead of ~/.aptitude/cache (Closes: #671780)"

I *believe* aptitude was using /build/.aptitude/cache/ for this so the
wildcard was not picking it, instead now it started using
/build/aptitude/cache, so interferring with the wildcard.

For now, I'll set XDG_CACHE_HOME=/root only while calling aptitude

BTW, another way to fix this would be to stop using the wildcard and
starting to use directly $BUILDDIR/$package-$version/, making the
command more robust and improving also other use cases people can care
about (building multiple packages, etc).

I'll probably do it for the next big release (since it requires some
more coding, like parsing the .dsc to get the package name, I don't to
rely on the .dsc filename, etc).

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  http://mapreri.org                              : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pbuilder-maint/attachments/20151209/d1d4e21d/attachment.sig>


More information about the Pbuilder-maint mailing list