summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>2015-09-01 16:28:27 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-03 12:43:15 +0100
commit3e6a5af02fe6059e5256010d9b2be5e63d2147b6 (patch)
treed24fd3c6b191f022f30f82684a4c0b51c487cd0b /meta/recipes-devtools
parentd6b1171131656907d6bdbb9ce3115c444f06817e (diff)
downloadpoky-3e6a5af02fe6059e5256010d9b2be5e63d2147b6.tar.gz
python3: Fix python-distutils variables
python-distutils uses the information from this file for setting the system variables. Whithout this patch: root@qt5022:~# pip install pyzmq ... x86_64-poky-linux-gcc -m64 -march=btver1 -mtune=btver1 --sysroot=/var/lib/jenkins/jobs/qt5022-cesium/workspace/build/tmp/sysroots/qt5022 -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DNATIVE_LITTLE_ENDIAN=1 -Ibundled/libsodium/src/libsodium/include -Ibundled/libsodium/src/libsodium/include/sodium -I/usr/include/python2.7 -c buildutils/initlibsodium.c -o build/temp.linux-x86_64-2.7/buildutils/initlibsodium.o In file included from /usr/include/python2.7/Python.h:8:0, from buildutils/initlibsodium.c:10: /usr/include/python2.7/pyconfig.h:24:27: fatal error: bits/wordsize.h: No such file or directory #include <bits/wordsize.h> root@qt5022:~# ls /usr/include/bits/wordsize.h /usr/include/bits/wordsize.h (From OE-Core rev: 6b918dc24d4ab6dcc3693f7f8a8653535edb58c0) Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/python/python3_3.4.3.bb6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-devtools/python/python3_3.4.3.bb b/meta/recipes-devtools/python/python3_3.4.3.bb
index 6c2e21d6a9..f61d278d79 100644
--- a/meta/recipes-devtools/python/python3_3.4.3.bb
+++ b/meta/recipes-devtools/python/python3_3.4.3.bb
@@ -184,8 +184,10 @@ PACKAGE_PREPROCESS_FUNCS += "py_package_preprocess"
184py_package_preprocess () { 184py_package_preprocess () {
185 # copy back the old Makefile to fix target package 185 # copy back the old Makefile to fix target package
186 install -m 0644 ${B}/Makefile.orig ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile 186 install -m 0644 ${B}/Makefile.orig ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile
187 # Remove references to buildmachine paths in target Makefile 187 # Remove references to buildmachine paths in target Makefile and _sysconfigdata
188 sed -i -e 's:--sysroot=${STAGING_DIR_TARGET}::g' -e s:'--with-libtool-sysroot=${STAGING_DIR_TARGET}'::g ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile 188 sed -i -e 's:--sysroot=${STAGING_DIR_TARGET}::g' -e s:'--with-libtool-sysroot=${STAGING_DIR_TARGET}'::g \
189 ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/config/Makefile \
190 ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py
189} 191}
190 192
191require python-${PYTHON_MAJMIN}-manifest.inc 193require python-${PYTHON_MAJMIN}-manifest.inc