[buildd-tools-devel] Bug#641065: sbuild fails to install chroot packages if uid / gid is > 99999999
Jan-Marek Glogowski
glogow at fbihome.de
Sat Sep 10 02:17:50 UTC 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Package: sbuild
Version: 0.62.6-1
Tags: patch
Hi
sbuild fails to install packages into the chroot using the apt resolver,
if the building user has a uid or gid > 99999999. I guess the aptitude
resolver will fail too.
Local sources
─────────────
sbuild_0.62.6-1~lhm1.dsc exists in .; copying to chroot
Check arch
──────────
Merged Build-Depends: build-essential, fakeroot
Filtered Build-Depends: build-essential, fakeroot
dpkg-deb: building package `sbuild-build-depends-core-dummy' in
`/build/resolver-owjRNQ/apt_archive/sbuild-build-depends-core-dummy.deb'.
E: Corrupted archive
E: Errors apply to file
'/«CHROOT»/build/resolver-owjRNQ/apt_archive/sbuild-build-depends-core-dummy.deb'
OK
Reading package lists...
This "E:"s are from 'apt-ftparchive generate' complaining about a "broken"
deb file, because the include data.tar.gz and control.tar.gz contain
"invalid" uid / gid fields, as GNU tar includes large uids / gids in "GNU
256-bit encoding".
- From a busybox git commit:
/*
* GNU tar uses "base-256 encoding" for very large numbers (>8 billion).
* Encoding is binary, with highest bit always set as a marker
* and sign in next-highest bit:
* 80 00 .. 00 - zero
* bf ff .. ff - largest positive number
* ff ff .. ff - minus 1
* c0 00 .. 00 - smallest negative number
*
The attached patch detects a broken 'apt-ftparchive generate' run,
rebuilds the dummy package using FAKEROOT, and reruns apt-ftparchive on
the fixed package.
Comments welcome,
Jan-Marek
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAk5qyM4ACgkQj6MK58wZA3dYtgCcCj+6chw8QI/59mIzDFFig2wA
+dMAoJvkbRSPrRAXuRASF6XouKKC5mc3
=nM5F
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sbuild_workaround-broken-apt-ftparchive.diff
Type: text/x-diff
Size: 3380 bytes
Desc:
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20110910/f982b425/attachment.diff>
More information about the Buildd-tools-devel
mailing list