From patchwork Sun Dec 30 21:33:30 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Martin X-Patchwork-Id: 208789 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id DB66E2C009F for ; Mon, 31 Dec 2012 08:34:43 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A357181489; Sun, 30 Dec 2012 21:34:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bNAxv9dYFXNH; Sun, 30 Dec 2012 21:34:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 1EF508B8FF; Sun, 30 Dec 2012 21:34:32 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id CE8D18F79A for ; Sun, 30 Dec 2012 21:34:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E767A805B2 for ; Sun, 30 Dec 2012 21:33:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5F-nfMGdirmw for ; Sun, 30 Dec 2012 21:33:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f181.google.com (mail-we0-f181.google.com [74.125.82.181]) by whitealder.osuosl.org (Postfix) with ESMTPS id BED2480BF6 for ; Sun, 30 Dec 2012 21:33:53 +0000 (UTC) Received: by mail-we0-f181.google.com with SMTP id t11so5573861wey.26 for ; Sun, 30 Dec 2012 13:33:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references; bh=ZFoiXyz4i6qtbAIeUlMrGNUt6MP6xUY6T1zd4ZrJk1U=; b=drDdCCRVs38Jzq2K8oq7uvpCRAXQgpeYKjFboM262beebq939LFbt8dnKNphp2O2/r WEAM4n5l7/T5bBjnlTRrrgFhUq7BE7jV4l4o3dqBA+zm1PNtpSZESa3DroLFUzUUWwNg 8WD8snw2jf83Z+sn/roYEjZNr3dJd5m2Lh9aW8FeG4gHZzqthVkrygaFFTN5omlhbY0W zhaosk28bt3myrdLrXmM0mF3B+yOewKzesJSjkisLgLUlo08EQrM5DzE2YJeQ16AwUXL e/YbVZvdYbrB6zP78vZk9aqRCZhTE1qHuXS7E0wFKQgk/YlgxNNmDOiOYSWe7MFkeOLA YEZA== X-Received: by 10.180.20.177 with SMTP id o17mr52523769wie.24.1356903231853; Sun, 30 Dec 2012 13:33:51 -0800 (PST) Received: from localhost.localdomain (ANantes-557-1-155-237.w2-1.abo.wanadoo.fr. [2.1.170.237]) by mx.google.com with ESMTPS id bz12sm66616498wib.5.2012.12.30.13.33.50 (version=SSLv3 cipher=OTHER); Sun, 30 Dec 2012 13:33:50 -0800 (PST) From: Samuel Martin To: buildroot@busybox.net Date: Sun, 30 Dec 2012 22:33:30 +0100 Message-Id: <099cb20cc058b466103e469591e49b67ff73c71c.1356903063.git.s.martin49@gmail.com> X-Mailer: git-send-email 1.8.0.3 In-Reply-To: References: In-Reply-To: References: Subject: [Buildroot] [PATCH 6/8] scons: add host-python2-if-needed dependency X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 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-bounces@busybox.net Also, ensure $(HOST_DIR)/usr/bin is in the PATH during the configure phase. --- package/scons/scons.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package/scons/scons.mk b/package/scons/scons.mk index 79fd6b1..e3ada92 100644 --- a/package/scons/scons.mk +++ b/package/scons/scons.mk @@ -4,12 +4,16 @@ SCONS_SITE = http://downloads.sourceforge.net/project/scons/scons/$(SCONS_VERSIO SCONS_LICENSE = MIT SCONS_LICENSE_FILES = LICENSE.txt +# Because Scons is not python3-friendly, we have to ensure that +HOST_SCONS_DEPENDENCIES = host-python2-if-needed + define HOST_SCONS_BUILD_CMDS - (cd $(@D); python setup.py build) + (cd $(@D); $(HOST_CONFIGURE_OPTS) python setup.py build) endef define HOST_SCONS_INSTALL_CMDS - (cd $(@D); python setup.py install --prefix=$(HOST_DIR)/usr \ + (cd $(@D) ; $(HOST_CONFIGURE_OPTS) python setup.py install \ + --prefix=$(HOST_DIR)/usr \ --install-lib=$(HOST_DIR)/usr/lib/scons-$(SCONS_VERSION)) endef