Package: fakechroot
Version: 2.16-1
Severity: important
Control: -1 affects debirf debootstrap

On an up-to-date wheezy system, fakechroot fails to search the proper
multiarch paths within the chroot.

This can be seen as a non-privileged user with the following commands:

mkdir root
fakeroot fakechroot debootstrap --variant=fakechroot wheezy root
strace -s 4096 -f fakeroot fakechroot chroot root wget -q -O/dev/null 
https://localhost:9999/ 2>&1 | grep gnutls
find root -name libgnutls.so.26

these last two commands show:

user@test:/srv/x$ strace -s 4096 -f fakeroot fakechroot chroot root wget -q 
-O/dev/null https://localhost:1346/ 2>&1 | grep gnutls.so
[pid  6405] open("/usr/lib/i386-linux-gnu/libfakeroot/libgnutls.so.26", 
O_RDONLY) = -1 ENOENT (No such file or directory)
[pid  6405] open("/srv/x/root/usr/lib/sse2/libgnutls.so.26", O_RDONLY) = -1 
ENOENT (No such file or directory)
[pid  6405] open("/srv/x/root/usr/lib/libgnutls.so.26", O_RDONLY) = -1 ENOENT 
(No such file or directory)
[pid  6405] open("/srv/x/root/lib/libgnutls.so.26", O_RDONLY) = -1 ENOENT (No 
such file or directory)
[pid  6405] open("/usr/lib/i386-linux-gnu/libgnutls.so.26", O_RDONLY) = 3
user@test:/srv/x$ find root -name libgnutls.so.26
root/usr/lib/i386-linux-gnu/libgnutls.so.26
user@test:/srv/x$ 

the set of library paths searched should have included
"/srv/x/root/usr/lib/i386-linux-gnu/libgnutls.so.26", and it should
have included it above the system library paths.

This basically means fakechroot is not working to load libraries from
multiarch systems.

It also means that the first library package included in a debootstrap
build that does not exist on the host machine is likely to cause a
failure.

For example, from a minimal host, the following debootstrap fails:

   fakeroot fakechroot debootstrap --variant=fakechroot --include=fontconfig 
wheezy root

This is also causing debirf's xkiosk mode to fail to build on wheezy
from a minimal wheezy machine.

This bug is related to #650241, but this is happening even within a
multiarch host.  Maybe if this can be fixed, #650241 would be fixed as
well?

     --dkg

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (200, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages fakechroot depends on:
ii  libfakechroot  2.16-1

fakechroot recommends no packages.

fakechroot suggests no packages.

-- no debconf information


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

Reply via email to