aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/ipkg-utils/ipkg-utils
diff options
context:
space:
mode:
authorScott Anderson <o2e@saaworld.com>2010-10-03 21:57:04 -0700
committerTom Rini <tom_rini@mentor.com>2010-10-05 12:44:19 -0700
commitb3da649ee25374f284d03ebce5843b6326559f73 (patch)
tree08c00da315215c32e4b43c710f88d1397c81d2a1 /recipes/ipkg-utils/ipkg-utils
parent21f7b77529fbaf0cda626336b8f48eb7ac8ae2f1 (diff)
downloadopenembedded-b3da649ee25374f284d03ebce5843b6326559f73.tar.gz
ipkg-utils: Make arfile.py handle six digit UIDs
Essentially, the problem is that arfile.py is splitting the ar header with white-space instead of fixed-width fields, so two fields would get treated as a single field. This makes things better than before as it now honors the fixed field widths. Signed-off-by: Scott Anderson <o2e@saaworld.com> Acked-by: Tom Rini <tom_rini@mentor.com>
Diffstat (limited to 'recipes/ipkg-utils/ipkg-utils')
-rw-r--r--recipes/ipkg-utils/ipkg-utils/arfile_header_split.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/recipes/ipkg-utils/ipkg-utils/arfile_header_split.patch b/recipes/ipkg-utils/ipkg-utils/arfile_header_split.patch
new file mode 100644
index 0000000000..ce1993be0d
--- /dev/null
+++ b/recipes/ipkg-utils/ipkg-utils/arfile_header_split.patch
@@ -0,0 +1,16 @@
+--- ipkg-utils/arfile.py.orig 2010-09-29 13:38:15.000000000 -0700
++++ ipkg-utils/arfile.py 2010-10-01 16:06:00.000000000 -0700
+@@ -74,7 +74,12 @@
+ if l == "\n":
+ l = self.f.readline()
+ if not l: break
+- descriptor = l.split()
++ # Field lengths from /usr/include/ar.h:
++ ar_field_lens = [ 16, 12, 6, 6, 8, 10, 2 ]
++ descriptor = []
++ for field_len in ar_field_lens:
++ descriptor.append(l[:field_len].strip())
++ l = l[field_len:]
+ # print descriptor
+ size = int(descriptor[5])
+ memberName = descriptor[0][:-1]