From patchwork Wed Feb 1 17:51:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 722644 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vD9fp5lr5z9sDF for ; Thu, 2 Feb 2017 04:51:30 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8547F8B294; Wed, 1 Feb 2017 17:51:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UZDjiPpKDvZR; Wed, 1 Feb 2017 17:51:25 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 92D2F8B121; Wed, 1 Feb 2017 17:51:25 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id A86B51BFF03 for ; Wed, 1 Feb 2017 17:51:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 85B8989FA1 for ; Wed, 1 Feb 2017 17:51:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dKqXwyWmclqa for ; Wed, 1 Feb 2017 17:51:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.datacom.ind.br (mx.datacom.ind.br [177.66.5.10]) by whitealder.osuosl.org (Postfix) with ESMTPS id DBA5B89F65 for ; Wed, 1 Feb 2017 17:51:22 +0000 (UTC) Received: from mail.datacom.ind.br (localhost [127.0.0.1]) by mail.datacom.ind.br (Postfix) with ESMTPS id 6D2331681080; Wed, 1 Feb 2017 15:47:21 -0200 (BRST) Received: from localhost (localhost [127.0.0.1]) by mail.datacom.ind.br (Postfix) with ESMTP id 5B4E91680E0A; Wed, 1 Feb 2017 15:47:21 -0200 (BRST) Received: from mail.datacom.ind.br ([127.0.0.1]) by localhost (mail.datacom.ind.br [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id XQD3TjNGiyKj; Wed, 1 Feb 2017 15:47:21 -0200 (BRST) Received: from pedeld202344.datacom.net (unknown [10.0.120.87]) by mail.datacom.ind.br (Postfix) with ESMTPSA id 3231C16809EE; Wed, 1 Feb 2017 15:47:21 -0200 (BRST) From: Carlos Santos To: buildroot@buildroot.org Date: Wed, 1 Feb 2017 15:51:08 -0200 Message-Id: <1485971468-3709-1-git-send-email-casantos@datacom.ind.br> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1485179476-6049-1-git-send-email-casantos@datacom.ind.br> References: <1485179476-6049-1-git-send-email-casantos@datacom.ind.br> Cc: Thomas Petazzoni Subject: [Buildroot] [PATCH v2] python-lxml: allow build as host package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "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 --- Changes v1->v2: - Add explicit host package dependencies, as required after commit 4bdb067e380e72c3a6cb9c6ccf3791a6cf8661e0 (infra: remove auto derivation of host dependencies). 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 --- package/python-lxml/python-lxml.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/python-lxml/python-lxml.mk b/package/python-lxml/python-lxml.mk index 62c2980..977ec5f 100644 --- a/package/python-lxml/python-lxml.mk +++ b/package/python-lxml/python-lxml.mk @@ -21,11 +21,16 @@ PYTHON_LXML_LICENSE_FILES = \ PYTHON_LXML_SETUP_TYPE = setuptools PYTHON_LXML_DEPENDENCIES = libxml2 libxslt zlib +HOST_PYTHON_LXML_DEPENDENCIES = host-libxml2 host-libxslt host-zlib # python-lxml needs these scripts in order to properly detect libxml2 and # libxslt compiler and linker flags 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))