Skip to contentSkip to conversation

python-lxml: fix pkg-config for libxml2 and libxslt

PATCH New Tim Orling 1 participant 1 message Sep 12, 2015

lore
Share & tools
lore

Tim Orling

author
#0 lore raw

PATCH 1/1 python-lxml: fix pkg-config for libxml2 and libxslt

---
 meta-python/recipes-devtools/python/python-lxml.inc | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
meta-python/recipes-devtools/python/python-lxml.inc +8 -4
index 9d1bfbc..8ca8f41 100644
@@ -16,15 +16,19 @@ SRC_URI[sha256sum] = "b3d362bac471172747cda3513238f115cbd6c5f8b8e6319bf6a97a7892
 S = "${WORKDIR}/${SRCNAME}-${PV}"
 
 DISTUTILS_BUILD_ARGS += " \
-                     --with-xslt-config='${STAGING_BINDIR_NATIVE}/pkg-config libxslt' \
-                     --with-xml2-config='${STAGING_BINDIR_CROSS}/pkg-config libxml2' \
+                     --with-xslt-config='pkg-config libxslt' \
+                     --with-xml2-config='pkg-config libxml-2.0' \
 "
 
 DISTUTILS_INSTALL_ARGS += " \
-                     --with-xslt-config='${STAGING_BINDIR_NATIVE}/pkg-config libxslt' \
-                     --with-xml2-config='${STAGING_BINDIR_CROSS}/pkg-config libxml2' \
+                     --with-xslt-config='pkg-config libxslt' \
+                     --with-xml2-config='pkg-config libxml-2.0' \
 "
 
+do_configure_prepend() {
+    sed -i -e 's/--version/--modversion/' ${B}/setupinfo.py
+}
+
 BBCLASSEXTEND = "native nativesdk"
 
 RDEPENDS_${PN} += "libxml2 libxslt ${PYTHON_PN}-compression"
Signature · 1 line
2.1.0