[oe-issues] [Bug 2381] New: rootfs fails in ipkg.py due to 'missing' control file
bugzilla-daemon at tinman.treke.net
bugzilla-daemon at tinman.treke.net
Mon May 28 13:47:06 UTC 2007
http://bugs.openembedded.org/show_bug.cgi?id=2381
Summary: rootfs fails in ipkg.py due to 'missing' control file
Product: Openembedded
Version: unspecified
Platform: PowerPC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Build
AssignedTo: openembedded-issues at lists.openembedded.org
ReportedBy: likewise at gmx.net
QAContact: tinderbox-oe at gmx.net
This happened after I upgraded. This commit seems related, especially the
ipkg.py handling:
http://www.openembedded.org/viewmtn/revision.psp?id=60f25719f044f04c78ec8cfa8af6a503b643df4e
leon at witty:~/sandbox/efika/openembedded$ bitbake angstrom-console-image
[...]
OE Build Configuration:
BB_VERSION = "1.8.2"
OE_REVISION = "<unknown>"
TARGET_ARCH = "powerpc"
TARGET_OS = "linux-uclibc"
MACHINE = "efika"
DISTRO = "angstrom"
DISTRO_VERSION = "test-20070528"
TARGET_FPU = ""
[...]
| + rm -rf /home/leon/sandbox/efika/openembedded/build/tmp/rootfs
| + '[' 0 '!=' 1 ']'
| + mkdir -p /home/leon/sandbox/efika/openembedded/build/tmp/rootfs/dev
| + for devtable in
/home/leon/sandbox/efika/openembedded/../../openembedded/org.openembedded.dev/files/device_table-minimal.txt
| + makedevs -r /home/leon/sandbox/efika/openembedded/build/tmp/rootfs -D
/home/leon/sandbox/efika/openembedded/../../openembedded/org.openembedded.dev/files/device_table-minimal.txt
| + rootfs_ipk_do_rootfs
| + set -x
| + rootfs_ipk_do_indexes
| + set -x
| + ipkgarchs='all any noarch powerpc all efika ppc ppc603e efika'
| + '[' -z '' ']'
| + touch
/home/leon/sandbox/efika/openembedded/build/tmp/deploy/uclibc/ipk/Packages
| + ipkg-make-index -r
/home/leon/sandbox/efika/openembedded/build/tmp/deploy/uclibc/ipk/Packages -p
/home/leon/sandbox/efika/openembedded/build/tmp/deploy/uclibc/ipk/Packages -l
/home/leon/sandbox/efika/openembedded/build/tmp/deploy/uclibc/ipk/Packages.filelist
-m /home/leon/sandbox/efika/openembedded/build/tmp/deploy/uclibc/ipk
|
| + for arch in '$ipkgarchs'
| + '[' -z '' ']'
| + '[' -e
/home/leon/sandbox/efika/openembedded/build/tmp/deploy/uclibc/ipk/all/ ']'
| + touch
/home/leon/sandbox/efika/openembedded/build/tmp/deploy/uclibc/ipk/all/Packages
| + ipkg-make-index -r
/home/leon/sandbox/efika/openembedded/build/tmp/deploy/uclibc/ipk/all/Packages
-p
/home/leon/sandbox/efika/openembedded/build/tmp/deploy/uclibc/ipk/all/Packages
-l
/home/leon/sandbox/efika/openembedded/build/tmp/deploy/uclibc/ipk/all/Packages.filelist
-m /home/leon/sandbox/efika/openembedded/build/tmp/deploy/uclibc/ipk/all/
| extracting control.tar.gz from
/home/leon/sandbox/efika/openembedded/build/tmp/deploy/uclibc/ipk/all/hostap-conf_1.0-r8_all.ipk
| Traceback (most recent call last):
| File
"/home/leon/sandbox/efika/openembedded/build/tmp/staging/x86_64-linux/bin/ipkg-make-index",
line 114, in <module>
| pkg = ipkg.Package(filename)
| File
"/home/leon/sandbox/efika/openembedded/build/tmp/staging/x86_64-linux/bin/ipkg.py",
line 162, in __init__
| control = tarf.extractfile("control")
| File "/usr/lib/python2.5/tarfile.py", line 1586, in extractfile
| tarinfo = self.getmember(member)
| File "/usr/lib/python2.5/tarfile.py", line 1273, in getmember
| raise KeyError("filename %r not found" % name)
| KeyError: "filename 'control' not found"
NOTE: Task failed:
/home/leon/sandbox/efika/openembedded/build/tmp/work/efika-angstrom-linux-uclibc/angstrom-console-image-1.0-r6/temp/log.do_rootfs.29624
NOTE: package angstrom-console-image-1.0-r6: task do_rootfs: failed
ERROR: TaskFailed event exception, aborting
NOTE: package angstrom-console-image-1.0: failed
ERROR: Build of
/home/leon/sandbox/openembedded/org.openembedded.dev/packages/angstrom/angstrom-console-image.bb
do_rootfs failed
ERROR: Task 10
(/home/leon/sandbox/openembedded/org.openembedded.dev/packages/angstrom/angstrom-console-image.bb,
do_rootfs) failed
ERROR:
'/home/leon/sandbox/openembedded/org.openembedded.dev/packages/angstrom/angstrom-console-image.bb'
failed
Note I have enabled the error message to stderr, which mentions the package
involved:
| extracting control.tar.gz from
/home/leon/sandbox/efika/openembedded/build/tmp/deploy/uclibc/ipk/all/hostap-conf_1.0-r8_all.ipk
Manually seeing if control is there:
leon at witty:~/sandbox/efika/openembedded/build/tmp/deploy/uclibc/ipk/all$ ar xv
hostap-conf_1.0-r8_all.ipk
x - debian-binary
x - data.tar.gz
x - control.tar.gz
leon at witty:~/sandbox/efika/openembedded/build/tmp/deploy/uclibc/ipk/all$ tar
tvzf control.tar.gz
drwxr-xr-x root/root 0 2007-05-28 14:59 ./
-rw-r--r-- root/root 400 2007-05-28 14:59 ./control
-rwxr-xr-x root/root 59 2007-05-28 14:59 ./postinst
-rwxr-xr-x root/root 24 2007-05-28 14:59 ./postrm
Fully by coincidence, I changed ipkg.py:161
control = tarf.extractfile("control")
into
control = tarf.extractfile("./control")
and now it works?
--
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Openembedded-issues
mailing list