package: apt-utils
version: 0.8.8
severity: important

apt-ftparchive seems to fail when run within a fakechroot.  This leads to 
failures
when building d-i within a fakechroot.  The following should reproduce the 
issue:

  $ export PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH
  $ fakeroot fakechroot debootstrap --variant=fakechroot sid ./fake-chroot 
http://ftp.us.debian.org/debian
  [...]
  $ fakeroot fakechroot chroot ./fake-chroot/ apt-get source hello
  [...]
  $ fakeroot fakechroot chroot ./fake-chroot/ apt-ftparchive sources /
  E: Failed to resolve / - realpath (22: Invalid argument)

The following demonstrates that the same commands succeeding in a real root 
chroot:

  $ sudo debootstrap sid ./root-chroot http://ftp.us.debian.org/debian
  [...]
  $ sudo chroot ./root-chroot/ apt-get source hello
  [...]
  $ sudo chroot ./root-chroot/ apt-ftparchive sources /
  Package: hello
  Binary: hello
  Version: 2.6-1
  [...]

Thanks for looking into this.

Mike



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to