]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
python: Fix ctypes/libffi configure
authorAlejandro Hernandez <alejandro.hernandez@linux.intel.com>
Thu, 26 Feb 2015 21:27:25 +0000 (15:27 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 27 Feb 2015 07:40:27 +0000 (07:40 +0000)
Forces the creation of a configure script for ctypes/libffi Module
by calling autoreconf after it being deleted on do_configure().

Fixes configuration hence compilation of this Python module.

[YOCTO #7373]

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python-native_2.7.9.bb
meta/recipes-devtools/python/python_2.7.9.bb

index 28aaa111cea5ea1f804990b5432ae46faf822784..34f5c2914e1f960459f64f4e9eeee00b3b22e7d1 100644 (file)
@@ -37,7 +37,7 @@ EXTRA_OEMAKE = '\
   STAGING_INCDIR=${STAGING_INCDIR_NATIVE} \
 '
 
-do_configure_prepend() {
+do_configure_append() {
        autoreconf --verbose --install --force --exclude=autopoint ../Python-${PV}/Modules/_ctypes/libffi
 }
 
index 048ec3903a20ba9592085d1baac83d4e56353cdb..4087c2cb13d748f82219f545a1e8090a00413028 100644 (file)
@@ -39,9 +39,9 @@ TARGET_CC_ARCH_append_armv7a = " -D__SOFTFP__"
 # The following is a hack until we drop ac_cv_sizeof_off_t from site files
 EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'largefile', 'ac_cv_sizeof_off_t=8', '', d)} ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no"
 
-do_configure_prepend() {
+do_configure_append() {
        rm -f ${S}/Makefile.orig
-       autoreconf -Wcross --verbose --install --force --exclude=autopoint Modules/_ctypes/libffi || bbnote "_ctypes failed to autoreconf"
+        autoreconf -Wcross --verbose --install --force --exclude=autopoint ../Python-${PV}/Modules/_ctypes/libffi
 }
 
 do_compile() {