[meta-python2][PATCH] python-lxml: inherit pkgconfig


Martin Jansa
 

* fixes:
| Building without Cython.
| ERROR: /bin/sh: 1: pkg-config: not found
|
| ** make sure the development packages of libxml2 and libxslt are installed **
|
| Using build configuration of libxslt
| running build
| running build_py
| running build_ext
| building 'lxml.etree' extension
| gcc -fno-strict-aliasing -isystem/OE/build/oe-core/tmp-glibc/work/x86_64-linux/python-lxml-native/4.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -isystem/OE/build/oe-core/tmp-glibc/work/x86_64-linux/python-lxml-native/4.4.2-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/OE/build/oe-core/tmp-glibc/work/x86_64-linux/python-lxml-native/4.4.2-r0/recipe-sysroot-native/usr/include -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc -Isrc/lxml/includes -I/OE/build/oe-core/tmp-glibc/work/x86_64-linux/python-lxml-native/4.4.2-r0/recipe-sysroot-native/usr/include/python2.7 -c src/lxml/etree.c -o build/temp.linux-x86_64-2.7/src/lxml/etree.o -w
| In file included from src/lxml/etree.c:692:
| src/lxml/includes/etree_defs.h:14:10: fatal error: libxml/xmlversion.h: No such file or directory
| 14 | #include "libxml/xmlversion.h"
| | ^~~~~~~~~~~~~~~~~~~~~
| compilation terminated.
| Compile failed: command 'gcc' failed with exit status 1
| cc -I/usr/include/libxml2 -c /tmp/xmlXPathInithJP6pr.c -o tmp/xmlXPathInithJP6pr.o
| unable to execute 'cc': No such file or directory
| *********************************************************************************
| Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
| *********************************************************************************
| error: command 'gcc' failed with exit status 1

Signed-off-by: Martin Jansa <Martin.Jansa@...>
---
recipes-devtools/python/python-lxml_4.4.2.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-devtools/python/python-lxml_4.4.2.bb b/recipes-devtools/python/python-lxml_4.4.2.bb
index 7cfedbc..88b5544 100644
--- a/recipes-devtools/python/python-lxml_4.4.2.bb
+++ b/recipes-devtools/python/python-lxml_4.4.2.bb
@@ -21,7 +21,7 @@ SRC_URI[sha256sum] = "eff69ddbf3ad86375c344339371168640951c302450c5d3e9936e98d64

DEPENDS += "libxml2 libxslt"

-inherit pypi setuptools
+inherit pypi setuptools pkgconfig

# add to the defaults which are set in the setuptools bbclass
#
--
2.32.0

Join openembedded-devel@lists.openembedded.org to automatically receive all group messages.