Package: debirf
Version: 0.30
Severity: normal

I just tried making the standard debirf profiles on this powerpc
system.

The build process appears to work correctly initially, but the .cgz
files produced are far smaller than they should be.  I suspect that
the nest stage isn't working properly:

dkg@bigpuff:/tmp/x$ zcat < 
~/debirf/profiles/powerpc/stable/minimal/debirf-minimal_stable_2.6.32-5-powerpc.cgz
 | cpio --extract --list --verbose
drwxr-xr-x   2 root     root            0 Mar 31 22:03 bin
-rwxr-xr-x   1 root     root         2372 Mar 31 22:03 bin/run-init
-rwxr-xr-x  12 root     root            0 Mar 31 22:03 bin/grep
-rwxr-xr-x  12 root     root            0 Mar 31 22:03 bin/sh
-rwxr-xr-x  12 root     root            0 Mar 31 22:03 bin/mount
-rwxr-xr-x  12 root     root            0 Mar 31 22:03 bin/busybox
-rwxr-xr-x  12 root     root            0 Mar 31 22:03 bin/mkdir
-rwxr-xr-x  12 root     root            0 Mar 31 22:03 bin/ls
-rwxr-xr-x  12 root     root            0 Mar 31 22:03 bin/cpio
-rwxr-xr-x  12 root     root            0 Mar 31 22:03 bin/rm
-rwxr-xr-x  12 root     root            0 Mar 31 22:03 bin/gunzip
-rwxr-xr-x  12 root     root            0 Mar 31 22:03 bin/umount
-rwxr-xr-x  12 root     root            0 Mar 31 22:03 bin/awk
-rwxr-xr-x  12 root     root       572668 Mar 31 22:03 bin/free
-rwxr-xr-x   1 root     root          640 Mar 31 22:03 init
drwxr-xr-x   2 root     root            0 Mar 31 22:03 lib
-rwxr-xr-x   1 root     root        87824 Mar 31 22:03 
lib/klibc-jnOweFaQqs5RTpnr3TL5UHK9U5k.so
-rw-r--r--   1 root     root       711052 Mar 31 22:03 lib/libm-2.11.2.so
-rwxr-xr-x   1 root     root      1503336 Mar 31 22:03 lib/libc-2.11.2.so
lrwxrwxrwx   1 root     root           12 Mar 31 22:03 lib/ld.so.1 -> 
ld-2.11.2.so
lrwxrwxrwx   1 root     root           14 Mar 31 22:03 lib/libc.so.6 -> 
libc-2.11.2.so
-rwxr-xr-x   1 root     root       142696 Mar 31 22:03 lib/ld-2.11.2.so
lrwxrwxrwx   1 root     root           14 Mar 31 22:03 lib/libm.so.6 -> 
libm-2.11.2.so
-rw-r--r--   1 root     root           20 Mar 31 22:03 rootfs.cgz
5906 blocks
dkg@bigpuff:/tmp/x$ 

note that the rootfs.cgz is 20 bytes.

Here's the tail of the stable minimal build.

Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
debirf> modules complete
debirf> creating debirf initrd ('nested')...
/usr/bin/ldd: line 161: /lib64/ld64.so.1: cannot execute binary file
279 blocks
2937 blocks
1389 blocks
debirf> creating rootfs.cgz...
/usr/bin/fakeroot: 178: debirf_exec: not found
debirf> creating wrapper cgz...
5906 blocks
debirf> debirf initrd created.
debirf> kernel: 
/home/urbanadmin/debirf/profiles/powerpc/stable/minimal/vmlinux-2.6.32-5-powerpc
debirf> initrd: 
/home/urbanadmin/debirf/profiles/powerpc/stable/minimal/debirf-minimal_stable_2.6.32-5-powerpc.cgz


This error looks to me like it is happening because the invocation of
debirf_exec at /usr/bin/debirf:132 is wrapped inside
fakehroot_if_needed, which means that the shell function might not be
properly exported (assuming that we want to rely on exporting shell
functions, which seems to be a bashism).  I'm particularly perplexed
that this is failing on powerpc, but not failing on amd64 or i386 :/

I also note that the two other invocations of debirf_exec in
/usr/bin/debirf (lines 515 and 517) explicitly source $DEBIRF_COMMON
before attempting to trigger the shell function.  Maybe pack_rootfs
should be relying on enter() in the first place?

Regardless of why this is happening, shouldn't debirf at least notice
this error and fail properly instead of forging ahead?

          --dkg

-- System Information:
Debian Release: 6.0.1
  APT prefers squeeze-updates
  APT policy: (500, 'squeeze-updates'), (500, 'stable')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.32-5-powerpc
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages debirf depends on:
ii  apt                     0.8.10.3         Advanced front-end for dpkg
ii  busybox                 1:1.17.1-8       Tiny utilities for small and embed
ii  cpio                    2.11-4           GNU cpio -- a program to manage ar
ii  debootstrap             1.0.26+squeeze1  Bootstrap a basic Debian system
ii  fakechroot              2.9-1.1+squeeze1 gives a fake chroot environment
ii  fakeroot                1.14.4-1         Gives a fake root environment
ii  klibc-utils             1.5.20-1         small utilities built with klibc f

Versions of packages debirf recommends:
ii  grub-common                1.99~rc1-2    GRand Unified Bootloader, version 
ii  syslinux-common            2:4.02+dfsg-7 collection of boot loaders (common
ii  xorriso                    0.5.6.pl00-2  command line iso9660+RR manipulati

debirf 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