From patchwork Tue Jan 2 16:33:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Duskett X-Patchwork-Id: 854599 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="pQZ6FbjW"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zB0523wQcz9t3M for ; Wed, 3 Jan 2018 03:34:14 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 5F09F8805C; Tue, 2 Jan 2018 16:34:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q2dP3mziosrH; Tue, 2 Jan 2018 16:34:07 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id CF20F88073; Tue, 2 Jan 2018 16:34:06 +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 4DE6A1C2569 for ; Tue, 2 Jan 2018 16:34:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4504B88F65 for ; Tue, 2 Jan 2018 16:34:05 +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 7-c1Aqe0K1Hv for ; Tue, 2 Jan 2018 16:34:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-io0-f173.google.com (mail-io0-f173.google.com [209.85.223.173]) by whitealder.osuosl.org (Postfix) with ESMTPS id D931D88F56 for ; Tue, 2 Jan 2018 16:34:03 +0000 (UTC) Received: by mail-io0-f173.google.com with SMTP id i143so29347032ioa.3 for ; Tue, 02 Jan 2018 08:34:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=EJkEzxrpdM2BjpbeDTjaLwfDO8V//xBpqybkH4Kz1Sk=; b=pQZ6FbjWrKn9GVR5N14KE2l1voji5EXZJ090L4VlSa0G7CNWUpJV61wX/WAu54aVSK Ia5gx85mP+uES4F2Xdi25FA9/5vX+hLCPteXViJKWAiDW17hNF5CfZ4vDWoizfnD60Ts dl4ugd6smDzI/fitjR/nm35rxUtApNLnQBl7JJXfFOLhCu8AIMHW2hWxsq6yWvbPUpa+ i5Xw1YBEpnI8mxj9nmdp6iCAJyF8YkYr1MrgVo8zDvutvZcVVIQBiMAsLIgz+GExOBLM J9+zmcHUboATAJdaFfeGGfAJoDiZ7FsnlvmfQ/923y+H3NHDibaExZEt96lsl9YMcjnG ChGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=EJkEzxrpdM2BjpbeDTjaLwfDO8V//xBpqybkH4Kz1Sk=; b=DETOf6T6boKSfd3J+n7kihJAdTNL0Zp+KsXIh+rwsuX/rXlf2cIA6FPJMQ5S/+vjGB Z1avYCJ/cT2mpkGWGQqo415fmekBSrRPQ9t+1ayYeGFpw4F/Dc+EU1128H8k4piD8Y0y GmZdeffNmd7K24M0dYbY2hGNSNeMaVE1eFv7L6WSVZClL6UZYv0NnkGmcmNl2HtelUEU U3n2l4xfWngZlfl3DAoXpvJ0ULDe1Ig4dMH11wPI3HHy0qM7cIU6XeEUd2DVfD3NS1JH MbpusH0nboq87KdYbh8wHafaVukP2x1jCFBVxSbY4Ev8GiwVuxYQeQDP0TFOi+Z9V32R dLqA== X-Gm-Message-State: AKGB3mLhdfyp37S3lFj6KW6XNyXx56eUUJucrexh6mw1/nnHozbwJoOj x96dMM4+CFDPbVtOjV0hqKYVMmu1 X-Google-Smtp-Source: ACJfBou0V4ZbavFgVj/izzt4Kc13Wg3oaOO01vGvg+LKpqBtIUvPVLkvb6kQOggiGlQC3NszJ7t1pw== X-Received: by 10.107.174.159 with SMTP id n31mr7369352ioo.136.1514910842759; Tue, 02 Jan 2018 08:34:02 -0800 (PST) Received: from localhost.localdomain (mail.codeblue.com. [65.183.183.198]) by smtp.gmail.com with ESMTPSA id z74sm1554880iod.86.2018.01.02.08.34.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Jan 2018 08:34:02 -0800 (PST) From: Adam Duskett To: buildroot@buildroot.org Date: Tue, 2 Jan 2018 11:33:29 -0500 Message-Id: <20180102163337.6334-1-aduskett@gmail.com> X-Mailer: git-send-email 2.14.3 Subject: [Buildroot] [PATCH 0/8] python: clean up host version logic. X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Adam Duskett MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Currently, packages that rely on host-python, and are compatible with both python2 and 3, only build python3 if python3 is selected for the target. This causes a problem in the following scenario: - A user does not have a target python selected. - Package A depends on host-python3 - Package B is compatible with host-python and host-python3 In this scenario, host-python is not needed, as package A and B are both compatible with python3. However; both host-python and host-python3 will be built because no target-python has been selected. To fix this, the following patch series introduces a few minimal changes that will allow the user to manually select a host version of python. (Note: I have changed only the packages that I personally use and have tested.) Adam Duskett (8): python: add host-entry python3: add host-entry python-setuptools: check host-python version pkg-waf.mk: check host-python version ninja: check host-python version libselinux: check host-python version setools: check host-python version libselinux: check host-python version package/Config.in.host | 2 ++ package/libselinux/libselinux.mk | 2 +- package/libsemanage/libsemanage.mk | 2 +- package/ninja/ninja.mk | 2 +- package/pkg-waf.mk | 20 +++++++++++++------- package/python-setuptools/python-setuptools.mk | 10 +++++++++- package/python/Config.in.host | 6 ++++++ package/python3/Config.in.host | 6 ++++++ package/setools/setools.mk | 6 ++++++ 9 files changed, 45 insertions(+), 11 deletions(-) create mode 100644 package/python/Config.in.host create mode 100644 package/python3/Config.in.host