From c158582c0fc7f4bd73980fe9adad446855f4d61b Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Fri, 10 Oct 2014 03:19:54 +0200 Subject: initial commit for Enea Linux 4.0-140929 Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea --- .../configure-Add-with-python-install-dir.patch | 60 ++++++++++++++++++++++ recipes-append/libxml/libxml2_2.9.1.bbappend | 26 ++++++++++ 2 files changed, 86 insertions(+) create mode 100644 recipes-append/libxml/libxml2/configure-Add-with-python-install-dir.patch create mode 100644 recipes-append/libxml/libxml2_2.9.1.bbappend (limited to 'recipes-append/libxml') diff --git a/recipes-append/libxml/libxml2/configure-Add-with-python-install-dir.patch b/recipes-append/libxml/libxml2/configure-Add-with-python-install-dir.patch new file mode 100644 index 0000000..174be5f --- /dev/null +++ b/recipes-append/libxml/libxml2/configure-Add-with-python-install-dir.patch @@ -0,0 +1,60 @@ +From df85edda5f6632f12f5802173a5012a35b19ccdd Mon Sep 17 00:00:00 2001 +From: Jonas Eriksson +Date: Thu, 6 Mar 2014 08:22:23 +0100 +Subject: [PATCH] configure: Add --with-python-install-dir + +Cross-compiling the python bindings is a bit difficult today, as the +configure script will figure out the site packages dir +(PYTHON_SITE_PACKAGES) by either: + +- Generating the path to the site-package target directories using + libdir, and see if it exists. As it is not possible to point to the + full path of the sysroot, since that will yield the wrong install + path, and that the directory does not neccessarily exist on the host, + this approach will not work. + +- Fetch the site packages dir from the python interpreter as pointed to + by --with-python. Since this python interpreter will point to the + sysroot, the install dir generated will be inside the sysroot and thus + not work. + +This patch approaches the problem by adding the possibility of +explicitly stating the install dir of the python packages, leaving it up +to the cross-compilation environment to specify it. The patch does not +affect the default case (non-cross compilation). + +Signed-off-by: Jonas Eriksson + +Upstream-Status: Submitted [xml@gnome.org] +--- + configure.in | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/configure.in b/configure.in +index ecaa403..21ad1e7 100644 +--- a/configure.in ++++ b/configure.in +@@ -148,6 +148,9 @@ AC_ARG_WITH(push, + [ --with-push add the PUSH parser interfaces (on)]) + AC_ARG_WITH(python, + [ --with-python[[=DIR]] build Python bindings if found]) ++AC_ARG_WITH(python_install_dir, ++[ --with-python-install-dir=DIR ++ install Python bindings in DIR]) + AC_ARG_WITH(reader, + [ --with-reader add the xmlReader parsing interface (on)]) + AC_ARG_WITH(readline, +@@ -866,6 +869,10 @@ if test "$with_python" != "no" ; then + fi + fi + fi ++ if test "$with_python_install_dir" != "" ++ then ++ PYTHON_SITE_PACKAGES="$with_python_install_dir" ++ fi + if test "$PYTHON_VERSION" != "" -a "$PYTHON_SITE_PACKAGES" = "" + then + if test -d $libdir/python$PYTHON_VERSION/site-packages +-- +1.9.0 + diff --git a/recipes-append/libxml/libxml2_2.9.1.bbappend b/recipes-append/libxml/libxml2_2.9.1.bbappend new file mode 100644 index 0000000..98745d8 --- /dev/null +++ b/recipes-append/libxml/libxml2_2.9.1.bbappend @@ -0,0 +1,26 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI += "file://configure-Add-with-python-install-dir.patch" + +PACKAGES += "${PN}-python ${PN}-python-staticdev ${PN}-python-dbg" + +DEPENDS += "python-dev" + +FILES_${PN}-python = " \ + ${PYTHON_SITEPACKAGES_DIR}/libxml2mod.so \ + ${PYTHON_SITEPACKAGES_DIR}/drv_libxml2.py \ + ${PYTHON_SITEPACKAGES_DIR}/libxml2.py \ + " +FILES_${PN}-python-staticdev += " \ + ${PYTHON_SITEPACKAGES_DIR}/libxml2mod.a \ + ${PYTHON_SITEPACKAGES_DIR}/libxml2mod.la \ + " +FILES_${PN}-python-dbg += " \ + ${PYTHON_SITEPACKAGES_DIR}/.debug/libxml2mod.so \ + " + +# +: --with-catalog, --with-python-install-dir +EXTRA_OECONF = "--with-python=${STAGING_BINDIR}/python --with-python-install-dir=${PYTHON_SITEPACKAGES_DIR} --without-debug --without-legacy --with-catalog --without-docbook --with-c14n --without-lzma --with-fexceptions" + +# +: --with-python-install-dir +EXTRA_OECONF_linuxstdbase = "--with-python=${STAGING_BINDIR}/python --with-python-install-dir=${PYTHON_SITEPACKAGES_DIR} --with-debug --with-legacy --with-catalog --with-docbook --with-c14n --without-lzma" -- cgit v1.2.3-54-g00ecf