[Buildroot] [PATCH] python-lxml: allow build as host package

Carlos Santos casantos at datacom.ind.br
Mon Jan 23 13:51:16 UTC 2017

While currently there is no in-tree Buildroot package which depends on
host-python-lxml, we (DATACOM) have some proprietary modules that use it
in their test scripts.

We tested python-lxml as host package and confirmed that it builds and
works correctly. Someone else might require it, so we are proposing its

Signed-off-by: Carlos Santos <casantos at datacom.ind.br>

Additional background (DATACOM-specific): so far we circumvent the lack
of host-python-lxml invoking python with an absolute path in the tests
(/usr/bin/python) but this forces us to install python-lxml on all build
hosts and developer workstations.

Change-Id: If51b034e9579e938a4e7470a58689d7eb34a6a3f
Signed-off-by: Carlos Santos <casantos at datacom.ind.br>
 package/python-lxml/python-lxml.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/python-lxml/python-lxml.mk b/package/python-lxml/python-lxml.mk
index 62c2980..22287b9 100644
--- a/package/python-lxml/python-lxml.mk
+++ b/package/python-lxml/python-lxml.mk
@@ -27,5 +27,9 @@ PYTHON_LXML_DEPENDENCIES = libxml2 libxslt zlib
 	--with-xslt-config=$(STAGING_DIR)/usr/bin/xslt-config \
+	--with-xslt-config=$(HOST_DIR)/usr/bin/xslt-config \
+	--with-xml2-config=$(HOST_DIR)/usr/bin/xml2-config
 $(eval $(python-package))
+$(eval $(host-python-package))

More information about the buildroot mailing list