python-native: configure unicode to ucs4
authorEric BENARD <eric@eukrea.com>
Tue, 14 Sep 2010 09:39:33 +0000 (09:39 +0000)
committerEric Bénard <eric@eukrea.com>
Tue, 14 Sep 2010 19:55:09 +0000 (21:55 +0200)
* while trying to run gdb from an SDK created by OE, I got the following
errors: /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gdb: undefined symbol:
PyUnicodeUCS2_FromEncodedObject

* the reason is that the workstation (ubuntu 10.04 or 9.01)'s Python is compiled using ucs4
and the python-native used to create arm-angstrom-linux-gnueabi-gdb is using ucs2, the
problem is detailed here :
http://docs.python.org/faq/extending#when-importing-module-x-why-do-i-get-undefined-symbol-pyunicodeucs2

* configuring python-native with ucs=4 solves this problem.

Signed-off-by: Eric Bénard <eric@eukrea.com>
Acked-by: Khem Raj <raj.khem@gmail.com>
recipes/python/python-native_2.6.5.bb

index 66573e9..999335c 100644 (file)
@@ -20,6 +20,10 @@ S = "${WORKDIR}/Python-${PV}"
 
 inherit native
 
+EXTRA_OECONF_append = '\
+  --enable-unicode=ucs4 \
+'
+
 EXTRA_OEMAKE = '\
   BUILD_SYS="" \
   HOST_SYS="" \