All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] python-lxml: allow build as host package
@ 2017-01-23 13:51 Carlos Santos
  2017-01-23 22:34 ` Thomas Petazzoni
  2017-02-01 17:51 ` [Buildroot] [PATCH v2] " Carlos Santos
  0 siblings, 2 replies; 7+ messages in thread
From: Carlos Santos @ 2017-01-23 13:51 UTC (permalink / raw)
  To: buildroot

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
inclusion.

Signed-off-by: Carlos Santos <casantos@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@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
 PYTHON_LXML_BUILD_OPTS = \
 	--with-xslt-config=$(STAGING_DIR)/usr/bin/xslt-config \
 	--with-xml2-config=$(STAGING_DIR)/usr/bin/xml2-config
+HOST_PYTHON_LXML_BUILD_OPTS = \
+	--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))
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-04-01 16:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-23 13:51 [Buildroot] [PATCH] python-lxml: allow build as host package Carlos Santos
2017-01-23 22:34 ` Thomas Petazzoni
2017-02-01 17:51 ` [Buildroot] [PATCH v2] " Carlos Santos
2017-02-14 11:20   ` Carlos Santos
2017-02-16 22:08     ` Arnout Vandecappelle
2017-02-27 11:43       ` Carlos Santos
2017-04-01 16:45   ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.