From patchwork Tue Jul 14 03:39:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Hancock X-Patchwork-Id: 1328609 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=sedsystems.ca Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4B5RnM0lbDz9s1x for ; Tue, 14 Jul 2020 14:07:48 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6D1F28AD95; Tue, 14 Jul 2020 04:07:44 +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 ATh8xf8WxV2g; Tue, 14 Jul 2020 04:07:41 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id B577D8AD79; Tue, 14 Jul 2020 04:07:41 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 826DD1BF327 for ; Tue, 14 Jul 2020 04:07:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 77AD92150A for ; Tue, 14 Jul 2020 04:07:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dQRiMlrnLT8N for ; Tue, 14 Jul 2020 04:07:39 +0000 (UTC) X-Greylist: delayed 00:28:38 by SQLgrey-1.7.6 Received: from sed198n136.sedsystems.ca (sed198n136.SEDSystems.ca [198.169.180.136]) by silver.osuosl.org (Postfix) with ESMTPS id 0A50620016 for ; Tue, 14 Jul 2020 04:07:38 +0000 (UTC) Received: from barney.sedsystems.ca (barney [198.169.180.121]) by sed198n136.sedsystems.ca with ESMTP id 06E3dU09007880 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Jul 2020 21:39:31 -0600 (CST) Received: from eng1n65.eng.sedsystems.ca (eng1n65.eng.sedsystems.ca [172.21.1.65]) by barney.sedsystems.ca (8.14.7/8.14.4) with ESMTP id 06E3dUAp050363 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 13 Jul 2020 21:39:30 -0600 From: Robert Hancock To: buildroot@buildroot.org Date: Mon, 13 Jul 2020 21:39:27 -0600 Message-Id: <20200714033927.1516172-1-hancock@sedsystems.ca> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.64 on 198.169.180.136 Subject: [Buildroot] [PATCH] package/scons: explicitly specify host Python 3 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Robert Hancock , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" All packages using scons are now using Python 3 to run it, so explicitly set scons as using host-python3. This avoids a spurious host Python 2 dependency if BR2_PACKAGE_PYTHON3 is not set (for example, if no Python is packaged for the target). Signed-off-by: Robert Hancock --- package/scons/scons.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/scons/scons.mk b/package/scons/scons.mk index da2ccceb08..a95fa7fd69 100644 --- a/package/scons/scons.mk +++ b/package/scons/scons.mk @@ -10,6 +10,8 @@ SCONS_LICENSE = MIT SCONS_LICENSE_FILES = LICENSE.txt SCONS_SETUP_TYPE = distutils +HOST_SCONS_NEEDS_HOST_PYTHON = python3 + HOST_SCONS_INSTALL_OPTS = \ --install-lib=$(HOST_DIR)/lib/scons-$(SCONS_VERSION)