Package: fakechroot
Version: 2.18-1.1
Severity: normal
Tags: patch

Dear Maintainer,

ldd.fakechroot parses the output of objdump which is
locale dependant. It may give strange results in any locale
other than 'C'.

$ echo $LANG
fr_FR.UTF-8
$ fakechroot fakeroot -i .fakeroot.state -s .fakeroot.state chroot mychroot ldd 
/bin/cat
        not a dynamic executable
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00000000)
        /lib/ld-linux-x86-64.so.2 (0x00000000)
$ LANG=C fakechroot fakeroot -i .fakeroot.state -s .fakeroot.state chroot 
mychroot ldd /bin/cat
        linux-vdso.so.1 =>  (0x0000000000000000)
        libfakeroot-sysv.so => 
/usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so (0x0000000000000000)
        libfakechroot.so => 
/usr/lib/x86_64-linux-gnu/fakechroot/libfakechroot.so (0x0000000000000000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x0000000000000000)
        /lib64/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 
(0x0000000000000000)

which is the expected result.


Regards,
JH Chatenet

--- a/scripts/ldd.fakechroot.pl
+++ b/scripts/ldd.fakechroot.pl
@@ -154,6 +154,8 @@
         exit 1;
     }
 
+    $ENV{LANG} = "C";
+
     if (not `sh -c 'command -v objdump'`) {
         print STDERR "fakeldd: objdump: command not found: install binutils 
package\n";
         exit 1;



-- 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=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
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

Reply via email to