Package: fakechroot
Version: 2.18-1.1
Severity: normal
Tags: patch
Dear Maintainer,
ldd.fakechroot fails if the target program is not
installed on the build host too.
$ ln mychroot/bin/cat mychroot/bin/nonexistent-outside
$ fakechroot fakeroot -i .fakeroot.state -s .fakeroot.state chroot mychroot ldd
/bin/nonexistent-outside
ldd: nonexistent-outside: No such file or directory
Regards,
JH Chatenet
--- a/scripts/ldd.fakechroot.pl
+++ b/scripts/ldd.fakechroot.pl
@@ -178,7 +178,9 @@
print "$file:\n";
}
- if (not -f $file) {
+ # Look for 'file' inside of the (fake)chroot
+ my $file_in_chroot = $file =~ m{^/} ? "$Base$file" : "$file";
+ if (not -f $file_in_chroot) {
print STDERR "ldd: $file: No such file or directory\n";
$Status = 1;
next;
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect
Versions of packages fakechroot depends on:
ii libfakechroot 2.18-1.1
fakechroot recommends no packages.
fakechroot suggests no packages.
-- no debconf information