With the two preceding patches applied, I tried (fontconfig isn't
installed on the host machine) :

me@here:~$ fakechroot fakeroot chroot my_wheezy_chroot
me@here:~$ LANG=C apt-get install fontconfig
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  fontconfig-config libexpat1 libfontconfig1 libfreetype6 ttf-dejavu-core ucf
The following NEW packages will be installed:
  fontconfig fontconfig-config libexpat1 libfontconfig1 libfreetype6 
ttf-dejavu-core ucf
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 2567 kB of archives.
After this operation, 5557 kB of additional disk space will be used.
Do you want to continue [Y/n]?
WARNING: The following packages cannot be authenticated!
  libexpat1 libfreetype6 ucf ttf-dejavu-core fontconfig-config libfontconfig1 
fontconfig
Authentication warning overridden.
Get:1 http://localhost/debian/ wheezy/main libexpat1 i386 2.1.0-1 [140 kB]
Get:2 http://localhost/debian/ wheezy/main libfreetype6 i386 2.4.9-1.1 [454 kB]
Get:3 http://localhost/debian/ wheezy/main ucf all 3.0025+nmu3 [70.8 kB]
Get:4 http://localhost/debian/ wheezy/main ttf-dejavu-core all 2.33-3 [1021 kB]
Get:5 http://localhost/debian/ wheezy/main fontconfig-config all 2.9.0-7.1 [233 
kB]
Get:6 http://localhost/debian/ wheezy/main libfontconfig1 i386 2.9.0-7.1 [301 
kB]
Get:7 http://localhost/debian/ wheezy/main fontconfig i386 2.9.0-7.1 [348 kB]
Fetched 2567 kB in 0s (11.3 MB/s)
Preconfiguring packages ...
Can't exec "/tmp/ucf.config.172171": Exec format error at 
/usr/share/perl/5.14/IPC/Open3.pm line 186.
open2: exec of /tmp/ucf.config.172171 configure  failed at 
/usr/share/perl5/Debconf/ConfModule.pm line 59
Selecting previously unselected package libexpat1:i386.
(Reading database ... 9543 files and directories currently installed.)
Unpacking libexpat1:i386 (from .../libexpat1_2.1.0-1_i386.deb) ...
Selecting previously unselected package libfreetype6:i386.
Unpacking libfreetype6:i386 (from .../libfreetype6_2.4.9-1.1_i386.deb) ...
Selecting previously unselected package ucf.
Unpacking ucf (from .../ucf_3.0025+nmu3_all.deb) ...
Moving old data out of the way
Selecting previously unselected package ttf-dejavu-core.
Unpacking ttf-dejavu-core (from .../ttf-dejavu-core_2.33-3_all.deb) ...
Selecting previously unselected package fontconfig-config.
Unpacking fontconfig-config (from .../fontconfig-config_2.9.0-7.1_all.deb) ...
Selecting previously unselected package libfontconfig1:i386.
Unpacking libfontconfig1:i386 (from .../libfontconfig1_2.9.0-7.1_i386.deb) ...
Selecting previously unselected package fontconfig.
Unpacking fontconfig (from .../fontconfig_2.9.0-7.1_i386.deb) ...
Processing triggers for man-db ...
Setting up libexpat1:i386 (2.1.0-1) ...
Setting up libfreetype6:i386 (2.4.9-1.1) ...
Setting up ucf (3.0025+nmu3) ...
Setting up ttf-dejavu-core (2.33-3) ...
Setting up fontconfig-config (2.9.0-7.1) ...
Setting up libfontconfig1:i386 (2.9.0-7.1) ...
Setting up fontconfig (2.9.0-7.1) ...
Regenerating fonts cache... done.

The installation reached the end - in spite of the error
while configuring ucf.

Or providing the needed configuration to debootstrap "by hand" :

FAKECHROOT_CMD_SUBST="/usr/sbin/chroot=/usr/sbin/chroot.fakechroot" fakechroot 
fakeroot debootstrap --variant=fakechroot --no-check-gpg --include=fontconfig 
wheezy my_wheezy_chroot file:///media/debian

which ended with

I: Configuring fontconfig...
I: Configuring apt...
I: Configuring wget...
I: Configuring tasksel...
I: Configuring tasksel-data...
I: Base system installed successfully.

Could we patch debootstrap.env ? Then we can get rid of
FAKECHROOT_CMD_SUBST="/usr/sbin/chroot=/usr/sbin/chroot.fakechroot"

Regards,
JH Chatenet

--- a/scripts/debootstrap.env.sh        2011-12-11 13:05:34.000000000 +0100
+++ b/scripts/debootstrap.env.sh        2013-08-26 13:00:50.000000000 +0200
@@ -1,9 +1,18 @@
 # Additional environment setting for debootstrap
 
+if ! command -v chroot >/dev/null; then
+    PATH="${PATH:-/usr/bin:/bin}:/usr/sbin:/sbin"
+    export PATH
+fi
+
+chroot=`command -v chroot 2>/dev/null`
+chroot="${chroot:-@CHROOT@}"
+
 cmd_subst="
     /bin/mount=/bin/true
     /sbin/devfs=/bin/true
     /sbin/insserv=/bin/true
+    $chroot=@sbindir@/chroot.fakechroot
     /sbin/ldconfig=/bin/true
     /usr/bin/ischroot=/bin/true
     /usr/bin/ldd=@bindir@/ldd.fakechroot


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to