Package: fakechroot Version: 2.17.2-1 Severity: minor Tags: patch Dear Maintainer,
It seems that setting LD_LIBRARY_PATH at the end of /etc/fakechroot/debootstrap.env has no effect : LD_LIBRARY_PATH is overwritten afterwards (file /usr/bin/fakechroot lines 168, 173 and 177) Perhaps it would suffice to set up the substitution of chroot.fakechroot for chroot ? With the following patch, one may (cross-)debootstrap an i386 chroot on an amd64 host : $ dpkg --print-architecture amd64 $ sudo dpkg --add-architecture i386 $ sudo aptitude update $ sudo aptitude install libfakeroot:i386 libfakechroot:i386 $ fakechroot fakeroot -s .fakeroot.state debootstrap --variant=fakechroot --arch=i386 --foreign sid my_chroot $ DEBOOTSTRAP_DIR=my_chroot/debootstrap LD_LIBRARY_PATH=/usr/lib/i386-linux-gnu/libfakeroot fakechroot fakeroot -i .fakeroot.state -s .fakeroot.state debootstrap --second-stage --second-stage-target=$(readlink -f my_chroot) $ LD_LIBRARY_PATH=/usr/lib/i386-linux-gnu/libfakeroot fakechroot fakeroot -i .fakeroot.state chroot my_chroot/ # dpkg --print-architecture i386 Thanks for your comments ! Regards, JH Chatenet *** rustine12.patch diff -Naur a//scripts/debootstrap.env.sh b//scripts/debootstrap.env.sh --- a//scripts/debootstrap.env.sh 2014-03-17 16:53:57.000000000 +0100 +++ b//scripts/debootstrap.env.sh 2014-03-17 16:56:41.000000000 +0100 @@ -17,6 +17,7 @@ /usr/bin/mkfifo=/bin/true /var/lib/dpkg/info/freebsd-utils.postinst=/bin/true /var/lib/dpkg/info/kbdcontrol.postinst=/bin/true + @sbindir@/chroot=@sbindir@/chroot.fakechroot " FAKECHROOT_CMD_SUBST="${FAKECHROOT_CMD_SUBST:+$FAKECHROOT_CMD_SUBST:}$(echo $fakechroot_debootstrap_env_cmd_subst | tr ' ' ':')" export FAKECHROOT_CMD_SUBST @@ -29,13 +30,3 @@ FAKECHROOT_AF_UNIX_PATH=/tmp export FAKECHROOT_AF_UNIX_PATH -# Set the LD_LIBRARY_PATH based on host's /etc/ld.so.conf.d/* -fakechroot_debootstrap_env_paths=` - cat /etc/ld.so.conf /etc/ld.so.conf.d/* 2>/dev/null | grep ^/ | while read fakechroot_debootstrap_env_d; do - printf '%s:' "$fakechroot_debootstrap_env_d" - done -` -if [ -n "$fakechroot_debootstrap_env_paths" ]; then - LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}${fakechroot_debootstrap_env_paths%:}" - export LD_LIBRARY_PATH -fi -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Versions of packages fakechroot depends on: ii libfakechroot 2.17.2-1 fakechroot recommends no packages. fakechroot suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org