Ar file handling.

Wolf, Josef josef.wolf at siemens.com
Mon Sep 15 13:33:21 UTC 2008


Hello,

On suse-11.0, OE fails to build images because ar file extraction fails
with "AR member not found: control.tar.gz" error message.  I have found
a fix for this problem in the mailing list archives (attached below).
It looks like this fix has not made its way into the stable branch yet.
Is this by intent (maybe this should be fixed upstream?) or was it
simply
forgotten?

BTW: It seems like bitbake does not automatically properly rebuild when
a
     patch file is modified.  Is this a known problem or am I missing
     something?

Here is the diff mentioned above:

============================================================
--- packages/ipkg-utils/ipkg-utils/ipkg-py-tarfile.patch
c624f83ac8b14092c184c051137a6dadd55508a6
+++ packages/ipkg-utils/ipkg-utils/ipkg-py-tarfile.patch
4c8800f65cdc9a9c10c74a8a14a9aa240cbd043c
@@ -8,7 +8,7 @@ Index: ipkg-utils/arfile.py
 ===================================================================
 --- /dev/null	1970-01-01 00:00:00.000000000 +0000
 +++ ipkg-utils/arfile.py	2007-05-26 23:46:59.000000000 +0100
-@@ -0,0 +1,124 @@
+@@ -0,0 +1,126 @@
 +"""
 +arfile - A module to parse GNU ar archives.
 +
@@ -97,6 +97,8 @@ Index: ipkg-utils/arfile.py
 +                return FileSection(self.f, self.f.tell(), size)
 +
 +            # Skip data and loop
++            if size % 2:
++                size = size + 1
 +            data = self.f.seek(size, 1)
 +#            print hex(f.tell())
 +




More information about the Openembedded-users mailing list