<div dir="ltr"><div>buildhistory says:</div><div><br></div>packages/corei7-64-poky-linux/libxml2/libxml2: RDEPENDS: added "python-core"<br><div><br></div><div>Why does the library package gain a dependency on python?</div><div><br></div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 29 April 2015 at 08:26, Robert Yang <span dir="ltr"><<a href="mailto:liezhi.yang@windriver.com" target="_blank">liezhi.yang@windriver.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We have libxml2-python for native and nativesdk, but don't have it for<br>
target, and can't find the reason from the git log, libxml2-python is<br>
widely used, after looked into it's <a href="http://configure.in" target="_blank">configure.in</a>, we can add it<br>
by PACKAGECONFIG.<br>
<br>
The previous --with-python=${STAGING_BINDIR}/python is incorrect, it<br>
acted as work becase it's conigure can check automatically, python is in<br>
${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}, as known as<br>
${PYTHON}.<br>
<br>
Add python to PACKAGECONFIG, since createrepo rdepends on<br>
libxml2-python, otherwise the target createrepo can't work.<br>
<br>
Signed-off-by: Robert Yang <<a href="mailto:liezhi.yang@windriver.com">liezhi.yang@windriver.com</a>><br>
---<br>
<span class=""> meta/recipes-core/libxml/libxml2.inc | 18 ++++++++----------<br>
1 file changed, 8 insertions(+), 10 deletions(-)<br>
<br>
</span>diff --git a/meta/recipes-core/libxml/libxml2.inc b/meta/recipes-core/libxml/libxml2.inc<br>
index 1314bbf..4886705 100644<br>
--- a/meta/recipes-core/libxml/libxml2.inc<br>
+++ b/meta/recipes-core/libxml/libxml2.inc<br>
@@ -9,8 +9,6 @@ LIC_FILES_CHKSUM = "file://Copyright;md5=2044417e2e5006b65a8b9067b683fcf1 \<br>
file://list.c;beginline=4;endline=13;md5=cdbfa3dee51c099edb04e39f762ee907 \<br>
file://trio.c;beginline=5;endline=14;md5=6c025753c86d958722ec76e94cae932e"<br>
<br>
-DEPENDS_class-nativesdk = "nativesdk-python"<br>
-DEPENDS_class-native = "python-native"<br>
DEPENDS =+ "zlib"<br>
<br>
SRC_URI = "<a href="ftp://xmlsoft.org/libxml2/libxml2-${PV}.tar.gz;name=libtar" target="_blank">ftp://xmlsoft.org/libxml2/libxml2-${PV}.tar.gz;name=libtar</a> \<br>
@@ -37,16 +35,16 @@ do_configure_prepend () {<br>
sed -i -e '/.*ansidecl.h.*/d' ${S}/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
}<br>
<br>
-do_configure_prepend_class-nativesdk () {<br>
- # Ensure we get the correct site-packages path<br>
- export PYTHON_SITE_PACKAGES="${PYTHON_SITEPACKAGES_DIR}"<br>
-}<br>
+export PYTHON_SITE_PACKAGES="${PYTHON_SITEPACKAGES_DIR}"<br>
+<br>
+PACKAGECONFIG ??= "python"<br>
<br>
+PACKAGECONFIG[python] = "--with-python=${PYTHON},--without-python,python,python-core"<br>
# WARNING: zlib is require for RPM use<br>
-EXTRA_OECONF = "--without-python --without-debug --without-legacy --with-catalog --without-docbook --with-c14n --without-lzma --with-fexceptions"<br>
-EXTRA_OECONF_class-native = "--with-python=${STAGING_BINDIR}/python --without-legacy --without-docbook --with-c14n --without-lzma --with-zlib"<br>
-EXTRA_OECONF_class-nativesdk = "--with-python=${STAGING_BINDIR}/python --without-legacy --without-docbook --with-c14n --without-lzma --with-zlib"<br>
-EXTRA_OECONF_linuxstdbase = "--without-python --with-debug --with-legacy --with-docbook --with-c14n --without-lzma --with-zlib"<br>
+EXTRA_OECONF = "--without-debug --without-legacy --with-catalog --without-docbook --with-c14n --without-lzma --with-fexceptions"<br>
+EXTRA_OECONF_class-native = "--without-legacy --without-docbook --with-c14n --without-lzma --with-zlib"<br>
+EXTRA_OECONF_class-nativesdk = "--without-legacy --without-docbook --with-c14n --without-lzma --with-zlib"<br>
+EXTRA_OECONF_linuxstdbase = "--with-debug --with-legacy --with-docbook --with-c14n --without-lzma --with-zlib"<br>
<br>
# required for pythong binding<br>
export HOST_SYS<br>
<div class="HOEnZb"><div class="h5">--<br>
1.7.9.5<br>
<br>
--<br>
_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</div></div></blockquote></div><br></div>