diff options
-rw-r--r-- | python/python-native-2.3.3/cross-distutils.patch | 0 | ||||
-rw-r--r-- | python/python-native_2.3.3.oe | 4 | ||||
-rw-r--r-- | python/python_2.3.3.oe | 14 |
3 files changed, 10 insertions, 8 deletions
diff --git a/python/python-native-2.3.3/cross-distutils.patch b/python/python-native-2.3.3/cross-distutils.patch new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/python/python-native-2.3.3/cross-distutils.patch diff --git a/python/python-native_2.3.3.oe b/python/python-native_2.3.3.oe index 9f4de461cc..08433a3560 100644 --- a/python/python-native_2.3.3.oe +++ b/python/python-native_2.3.3.oe @@ -4,8 +4,8 @@ PRIORITY=optional MAINTAINER="Michael Lauer <mickey@Vanille.de>" SRC_URI = ftp://www.python.org/pub/python/${PV}/Python-${PV}.tar.bz2 \ - file://${FILESDIR}/bindir-libdir.patch;patch=1 - + file://${FILESDIR}/bindir-libdir.patch;patch=1 \ + file://${FILESDIR}/cross-distutils.patch;patch=1 S = ${WORKDIR}/Python-${PV} inherit autotools native diff --git a/python/python_2.3.3.oe b/python/python_2.3.3.oe index 43970280a9..fa2916b56c 100644 --- a/python/python_2.3.3.oe +++ b/python/python_2.3.3.oe @@ -18,17 +18,19 @@ inherit autotools EXTRA_OECONF = --with-threads --with-pymalloc --with-cyclic-gc # -# yes, the following lines are correct. python distutils is executed on the host -# and it will use the settings from build/include/python2.3/pyconfig.h +# copy config.h and an appropriate Makefile for distutils.sysconfig +# which laters uses the information out of these to compile extensions # do_compile_prepend() { - install -m 0644 pyconfig.h ${STAGING_DIR}/build/include/python2.3/ + install -d ${STAGING_INCDIR}/python2.3/ + install -d ${STAGING_LIBDIR}/python2.3/config/ + install -m 0644 pyconfig.h ${STAGING_INCDIR}/python2.3/ install -m 0644 Makefile Makefile.orig install -m 0644 Makefile Makefile.backup - sed -e 's,${includedir},${STAGING_DIR}/target/include,' < Makefile.backup > Makefile + sed -e 's,${includedir},${STAGING_INCDIR},' < Makefile.backup > Makefile install -m 0644 Makefile Makefile.backup - sed -e 's,${libdir},${STAGING_DIR}/target/lib,' < Makefile.backup > Makefile - install -m 0644 Makefile ${STAGING_DIR}/build/lib/python2.3/config/ + sed -e 's,${libdir},${STAGING_LIBDIR},' < Makefile.backup > Makefile + install -m 0644 Makefile ${STAGING_LIBDIR}/python2.3/config/ } do_compile() { |