<div dir="ltr"><div>buildhistory says:</div><div><br></div>packages/corei7-64-poky-linux/libxml2/libxml2: RDEPENDS: added &quot;python-core&quot;<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">&lt;<a href="mailto:liezhi.yang@windriver.com" target="_blank">liezhi.yang@windriver.com</a>&gt;</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&#39;t have it for<br>
target, and can&#39;t find the reason from the git log, libxml2-python is<br>
widely used, after looked into it&#39;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&#39;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&#39;t work.<br>
<br>
Signed-off-by: Robert Yang &lt;<a href="mailto:liezhi.yang@windriver.com">liezhi.yang@windriver.com</a>&gt;<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 = &quot;file://Copyright;md5=2044417e2e5006b65a8b9067b683fcf1 \<br>
                     file://list.c;beginline=4;endline=13;md5=cdbfa3dee51c099edb04e39f762ee907 \<br>
                     file://trio.c;beginline=5;endline=14;md5=6c025753c86d958722ec76e94cae932e&quot;<br>
<br>
-DEPENDS_class-nativesdk = &quot;nativesdk-python&quot;<br>
-DEPENDS_class-native = &quot;python-native&quot;<br>
 DEPENDS =+ &quot;zlib&quot;<br>
<br>
 SRC_URI = &quot;<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 &#39;/.*ansidecl.h.*/d&#39; ${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=&quot;${PYTHON_SITEPACKAGES_DIR}&quot;<br>
-}<br>
+export PYTHON_SITE_PACKAGES=&quot;${PYTHON_SITEPACKAGES_DIR}&quot;<br>
+<br>
+PACKAGECONFIG ??= &quot;python&quot;<br>
<br>
+PACKAGECONFIG[python] = &quot;--with-python=${PYTHON},--without-python,python,python-core&quot;<br>
 # WARNING: zlib is require for RPM use<br>
-EXTRA_OECONF = &quot;--without-python --without-debug --without-legacy --with-catalog --without-docbook --with-c14n --without-lzma --with-fexceptions&quot;<br>
-EXTRA_OECONF_class-native = &quot;--with-python=${STAGING_BINDIR}/python --without-legacy --without-docbook --with-c14n --without-lzma --with-zlib&quot;<br>
-EXTRA_OECONF_class-nativesdk = &quot;--with-python=${STAGING_BINDIR}/python --without-legacy --without-docbook --with-c14n --without-lzma --with-zlib&quot;<br>
-EXTRA_OECONF_linuxstdbase = &quot;--without-python --with-debug --with-legacy --with-docbook --with-c14n --without-lzma --with-zlib&quot;<br>
+EXTRA_OECONF = &quot;--without-debug --without-legacy --with-catalog --without-docbook --with-c14n --without-lzma --with-fexceptions&quot;<br>
+EXTRA_OECONF_class-native = &quot;--without-legacy --without-docbook --with-c14n --without-lzma --with-zlib&quot;<br>
+EXTRA_OECONF_class-nativesdk = &quot;--without-legacy --without-docbook --with-c14n --without-lzma --with-zlib&quot;<br>
+EXTRA_OECONF_linuxstdbase = &quot;--with-debug --with-legacy --with-docbook --with-c14n --without-lzma --with-zlib&quot;<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>