Skip to contentSkip to conversation

python-native_2.6.1.bb: Configure with --with-zlib

PATCH In review Khem Raj 2 participants 3 messages May 10, 2009 – May 12, 2009

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 python-native_2.6.1.bb: Configure with --with-zlib

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(-)
recipes/python/python-native_2.6.1.bb +1 -0
index 3ae4828..febe271 100644
@@ -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
Signature · 1 line
1.6.0.4
#1 lore raw

On Sun, May 10, 2009 at 10:45:41AM -0700, Khem Raj wrote:
[snip]

Quoted 3 lines

I built python native with --with-zlib option and it worked fine.

Is the below patch ok ?

IMHO, you need to add zlib-native to the deps (if it it's not already there).

Signature · 1 line
Tom Rini
author
#2 lore raw
Quoted 8 lines · Tom Rini

On Sun, May 10, 2009 at 10:45:41AM -0700, Khem Raj wrote:
[snip]

Quoted 3 lines

I built python native with --with-zlib option and it worked fine.

Is the below patch ok ?

IMHO, you need to add zlib-native to the deps (if it it's not already there).

indeed I will try it out.

Quoted 9 lines

--
Tom Rini

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel