Dear OE folks,

when compiling XBMC for the ARM architecture it hard codes Python 2.5
[1] and a patch in the OE repository changes this to Python 2.6 [2].

I tried to use `python-config` to determine the Python version [3].

        ifeq (arm, $(ARCH))
        -# Force external python2.5 for now!
        -LIBS +=-lpython2.5
        +# Force external Python for now!
        +LIBS += $(shell python-config --libs)
         endif

This fails with the following error though documented in `log.do_compile`.

        Traceback (most recent call last):
          File 
"/oe/build/angstrom-dev/sysroots/i686-linux/usr/bin/python-config", line 6, in 
<module>
            from distutils import sysconfig
          File 
"/oe/build/angstrom-dev/sysroots/i686-linux/usr/lib/python2.6/distutils/sysconfig.py",
 line 22, in <module>
            PREFIX = os.path.normpath(sys.prefix).replace( 
os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )

Do you know of an easy way to fix this with just adapting `Makefile.in`?
Or is using a separate variable as `PYTHON_LIBS` [4] the only option
besides hard coding and patching?

        ifeq (arm, $(ARCH))
         # Force external Python for now!
        -LIBS += $(shell python-config --libs)
        +PYTHON_LIBS ?= $(shell python-config --libs)
        +LIBS += $(PYTHON_LIBS)
         endif


Thanks,

Paul


[1] https://github.com/xbmc/xbmc/#L470
[2] 
http://cgit.openembedded.org/cgit.cgi/openembedded/tree/recipes/xbmc/xbmc/0006-Hardcode-python2.6-for-now.patch?id=0cc02ded7bd429208ccb0e0e0aa3e43aec8a4722
[3] http://trac.xbmc.org/ticket/11041 (Please notice the updated patch where 
`($` is changed to `$(`.)
[4] http://trac.xbmc.org/ticket/11042 (Please notice the updated patch where 
`($` is changed to `$(`.)

Attachment: signature.asc
Description: This is a digitally signed message part

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

Reply via email to