From patchwork Tue Jul 28 09:26:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1337689 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=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=qt4d6ibN; dkim-atps=neutral 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 4BGBCc0sThz9sRK for ; Tue, 28 Jul 2020 19:27:24 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6F6FB87F59; Tue, 28 Jul 2020 09:27:20 +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 tYbpeY5Y-dx1; Tue, 28 Jul 2020 09:27:18 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 3E3F28680C; Tue, 28 Jul 2020 09:27:18 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 44EF61BF477 for ; Tue, 28 Jul 2020 09:27:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 400E9882C3 for ; Tue, 28 Jul 2020 09:27:13 +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 mezZrqLiJhGE for ; Tue, 28 Jul 2020 09:27:12 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by hemlock.osuosl.org (Postfix) with ESMTPS id B2C808823B for ; Tue, 28 Jul 2020 09:27:11 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id c80so16625763wme.0 for ; Tue, 28 Jul 2020 02:27:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1vkJ2iyVxvS6pGhq9Fh85nh8WUNR5cPH9XnxAgGaDw8=; b=qt4d6ibNTRTX1x84Hd7rnst+4rmW9c/UjC5KpKaAF/7seZMVC0BI6PoKUh6qPBB4ec TZbYq0uPH4HP1lcDudu9XsmcwdMTgblJQZ8/VygTR7VoYiBfvyjit/WwAfkZYoBbnFKY uHN7xa8SLPZ8yKP0RI7898ZBDcYL5kPxOTi6dO95s4p/a5OkQ212z+tazaGF0j3kbWV2 FNBJTIKkXEF+F2XMRFnaH913qUXKoJqAzuwa75s0csHRmQ5zbUxvPVU8LyTVtmTcQPGK TrN7tw43PmHiMM9O9jfetFCs9L92xjzHPXwHTDvkIhN6orjIh5i2Delji5hPxWImWV/u PPsQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=1vkJ2iyVxvS6pGhq9Fh85nh8WUNR5cPH9XnxAgGaDw8=; b=mMQ+Skfng33QwOXIAxn0/knQB+AOgX3s31ZqSh7CSV0oaEzXsL/3iHjdDdUihcYVJq gQ5MJ2WZFNS2M/hNxjMSXJFvur3yM6HDPhgBKk38GZWxOb5ISOes96C4k8ssi+jP2Aif EnvZtBETNKGUzlmAmiSc7LC+xUlg/9RZkIr4L8brsrCvFMhzXZDP/YRk4jUqfDzTWFyy uEMRYILbaXKdfiHI2yGbVlYItGLxd33BHkIcBIBN4RGlJ5TR/j5D9wzSnSGYbj0iDaZF Q6W/wGgS1EFN4EF4quwTIsK/Cp161WsLwJaaOnOtK5KmFP73FezVsWYljaU3uHm8OKsQ QOfg== X-Gm-Message-State: AOAM531afyDxB6iVzqHjOWlrZ90y2gXl8+RmkUsJbVkLaVIffgJJBJjR 933tiHRn0J9wECOo88BLPMpNcoJn X-Google-Smtp-Source: ABdhPJydcp1l/YHzeCv0vlqtLIjPMhkFCRVVXQBujl9vLZjEp2P+pWwozNEh5GJZZe5n/Zu9xBbtDA== X-Received: by 2002:a7b:cc12:: with SMTP id f18mr2982046wmh.129.1595928429584; Tue, 28 Jul 2020 02:27:09 -0700 (PDT) Received: from kali.home (2a01cb0881b76d00c2afd0dfa851d2b9.ipv6.abo.wanadoo.fr. [2a01:cb08:81b7:6d00:c2af:d0df:a851:d2b9]) by smtp.gmail.com with ESMTPSA id d14sm16167555wre.44.2020.07.28.02.27.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2020 02:27:09 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Tue, 28 Jul 2020 11:26:57 +0200 Message-Id: <20200728092657.2354762-2-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200728092657.2354762-1-fontaine.fabrice@gmail.com> References: <20200728092657.2354762-1-fontaine.fabrice@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/2] package/setools: install for host-python3 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: Joseph Kogut , Matt Weber , Asaf Kahlon , Fabrice Fontaine , Adam Duskett Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" setools needs python3 since version 4.2.0 and https://github.com/SELinuxProject/setools/commit/e292a77c52ed882707c8d165e77914837367313f However today in Buildroot, when no target python is selected, or when BR2_PACKAGE_PYTHON=y, all host python modules are installed for host-python, i.e Python 2. But this module won't install in Python 2, so let's force its host variant to be installed with Python 3 on the host. Of course, for that to work, its dependency must also be built for host-python3, so we change it to the newly introduced host-python3-cython package. Fixes: - http://autobuild.buildroot.org/results/c2febcea5fbd8a21709721524ae9e9b5fc0896f9 Signed-off-by: Fabrice Fontaine Tested-by: Adam Duskett --- package/setools/Config.in | 2 +- package/setools/setools.mk | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package/setools/Config.in b/package/setools/Config.in index b26029a162..3ab7f55948 100644 --- a/package/setools/Config.in +++ b/package/setools/Config.in @@ -4,7 +4,7 @@ config BR2_PACKAGE_SETOOLS depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_USE_WCHAR depends on BR2_USE_MMU - depends on BR2_PACKAGE_PYTHON3 # python-networkx + depends on BR2_PACKAGE_PYTHON3 select BR2_PACKAGE_PYTHON_NETWORKX # runtime select BR2_PACKAGE_PYTHON_SETUPTOOLS select BR2_PACKAGE_LIBSELINUX diff --git a/package/setools/setools.mk b/package/setools/setools.mk index 24da3613c4..c1a3a909cb 100644 --- a/package/setools/setools.mk +++ b/package/setools/setools.mk @@ -11,7 +11,8 @@ SETOOLS_INSTALL_STAGING = YES SETOOLS_LICENSE = GPL-2.0+, LGPL-2.1+ SETOOLS_LICENSE_FILES = COPYING COPYING.GPL COPYING.LGPL SETOOLS_SETUP_TYPE = setuptools -HOST_SETOOLS_DEPENDENCIES = host-python-cython host-libselinux host-libsepol host-python-networkx +HOST_SETOOLS_DEPENDENCIES = host-python3-cython host-libselinux host-libsepol host-python-networkx +HOST_SETOOLS_NEEDS_HOST_PYTHON = python3 define SETOOLS_FIX_SETUP # By default, setup.py will look for libsepol.a in the host machines