[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#604082: apt-utils: apt-ftparchive doesn't work within a fakechroot (realpath invalid argument)



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



Reply to: