Here is a new version of the preceding patch : it allows for
a member of LD_LIBRARY_PATH pointing inside the (fake)chroot.

One may debootstrap an i386 wheezy (fake)chroot on amd64 :

1. Have debootstrap, fakechroot and fakeroot and libfakechroot for amd64
installed.
2. Add the i386 architecture (dpkg --add-architecture i386) and install
libc6 (and its dependencies gcc-4.7-base and libgcc1) and libfakechroot
for i386.
3. Create a directory /usr/lib32/libfakeroot, extract libfakeroot-sysv.so and 
libfakeroot-tcp.so from fakeroot_1.18.4-2_i386.deb and copy them under
/usr/lib32/libfakeroot (what is the recommended way to perform this step ?)
4. then debootstrap
me@here:~$ 
LD_LIBRARY_PATH="/home/me/my_i386_chroot/lib/i386-linux-gnu:/home/me/my_i386_chroot/usr/lib/i386-linux-gnu"
 fakechroot fakeroot debootstrap --variant=fakechroot --arch=i386 wheezy 
my_i386_chroot
5. There is no need for 
LD_LIBRARY_PATH="/home/me/my_i386_chroot/lib/i386-linux-gnu:/home/me/my_i386_chroot/lib/i386-linux-gnu"
 afterwards.
me@here:~$ fakechroot fakeroot chroot my_i386_chroot

(it was just needed during the second stage of debootstrap to run dpkg to
install base-files, base-passwd, dpkg itself and libc6)

Regards,
JH Chatenet

Attachment: absolute_path.patch.gz
Description: Binary data

Reply via email to