Author Topic: Python 2.4 In Oz 3.5.3  (Read 2808 times)

jh

  • Full Member
  • ***
  • Posts: 115
    • View Profile
    • http://
Python 2.4 In Oz 3.5.3
« on: June 02, 2005, 05:48:25 pm »
Hi,

I'm writing an app for my C1k + OZ 3.5.3 with python and have stumbled across a few things that needed tweaks, and one thing I can't get past:

I'm using urllib which imports cookielib which imports logging which imports calendar which imports datetime (whew!) all of which are missing (other than urllib) from the python-2.4.1-manifest.inc for the netclient package.

Adding them to the package has been easy (patch is trivial but I can generate it if needed) except for datetime which is a compiled library.  I noticed that none of the .so files that should be in lib-dynload are actually there.  Checking the log reveals:

Code: [Select]
ccache arm-linux-gcc -march=armv5te -mtune=xscale -shared -L/data/openembedded/akita/tmp/staging/arm-linux/lib -Wl,-rpath-link,/data/openembedded\
/akita/tmp/staging/arm-linux/lib -Wl,-O1 -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I/data/openembedded/akita/tmp/work/python-2.4.1-ml1/Pytho\
n-2.4/Include build/temp.linux-i686-2.4/data/openembedded/akita/tmp/work/python-2.4.1-ml1/Python-2.4/Modules/datetimemodule.o build/temp.linux-i6\
86-2.4/data/openembedded/akita/tmp/work/python-2.4.1-ml1/Python-2.4/Modules/timemodule.o -L/data/openembedded/akita/tmp/staging/arm-linux/lib -lm\
 -o build/lib.linux-i686-2.4/datetime.so                                                                                                          
*** WARNING: renaming "datetime" since importing it failed: build/lib.linux-i686-2.4/datetime.so: ELF file OS ABI invalid                        

This is an up-to-date (r237) bitbake, latest pull from bk, using openzaurus-3.5.3 as the distro in my local.conf.

Thanks!

jason

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Python 2.4 In Oz 3.5.3
« Reply #1 on: June 03, 2005, 06:18:15 am »
That's just a packaging problem, not a build problem. I've checked in a fix for that:

http://openembedded.bkbits.net:8080/openem...l|ChangeSet@-1h

Could you give that a try?
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

jh

  • Full Member
  • ***
  • Posts: 115
    • View Profile
    • http://
Python 2.4 In Oz 3.5.3
« Reply #2 on: June 03, 2005, 11:20:51 am »
Quote
That's just a packaging problem, not a build problem. I've checked in a fix for that:

http://openembedded.bkbits.net:8080/openem...l|ChangeSet@-1h

Could you give that a try?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=82601\"][{POST_SNAPBACK}][/a][/div]

That gets datetime and all the rest in there.  One more tweak for cookielib:
Code: [Select]
${libdir}/python2.4/_LWPCookieJar.* ${libdir}/python2.4/_MozillaCookieJar.*
After that it looks great.  Thanks!!

jason