[oe] [PATCH] python-native_2.6.1.bb: Configure with --with-zlib
Khem Raj
raj.khem at gmail.com
Sun May 10 17:45:41 UTC 2009
Hi
I have IMAGE_FSTYPES = "tar" in my local.conf
I was getting errors
Traceback (most recent call last):
| File "/home/oe/tmp/staging/i686-linux/usr/bin/ipkg-make-index", line 114, in <module>
| pkg = ipkg.Package(filename)
| File "/home/oe/tmp/staging/i686-linux/usr/bin/ipkg.py", line 162, in __init__
| tarf = tarfile.open("control.tar.gz", "r", tarStream)
| File "/home/oe/tmp/staging/i686-linux/usr/lib/python2.6/tarfile.py", line 1649, in open
| raise ReadError("file could not be opened successfully")
| tarfile.ReadError: file could not be opened successfully
I poked into ipkg.py a bit but it seems that tarfile.py is unsable to load gzip
library due to the python in staging area is not built with zlib which is needed
for gzip module to load.
I built python native with --with-zlib option and it worked fine.
Is the below patch ok ?
---
recipes/python/python-native_2.6.1.bb | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/recipes/python/python-native_2.6.1.bb b/recipes/python/python-native_2.6.1.bb
index 3ae4828..febe271 100644
--- a/recipes/python/python-native_2.6.1.bb
+++ b/recipes/python/python-native_2.6.1.bb
@@ -22,6 +22,7 @@ EXTRA_OEMAKE = '\
STAGING_LIBDIR=${STAGING_LIBDIR_NATIVE} \
STAGING_INCDIR=${STAGING_INCDIR_NATIVE} \
'
+EXTRA_OECONF += "--with-zlib"
do_stage_append() {
install -m 0755 Parser/pgen ${STAGING_BINDIR_NATIVE}/pgen
--
1.6.0.4
More information about the Openembedded-devel
mailing list