From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7CC1C138334 for ; Thu, 3 Jan 2019 21:44:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7FAABE0CA8; Thu, 3 Jan 2019 21:40:01 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2FC52E0CA5 for ; Thu, 3 Jan 2019 21:40:01 +0000 (UTC) Received: from symphony.aura-online.co.uk (154.189.187.81.in-addr.arpa [81.187.189.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: chewi) by smtp.gentoo.org (Postfix) with ESMTPSA id 07AC2335D0F; Thu, 3 Jan 2019 21:39:58 +0000 (UTC) From: James Le Cuirot To: gentoo-dev Cc: James Le Cuirot Subject: [gentoo-dev] [PATCH 10/12] python-any-r1.eclass: Create wrappers against build system's config Date: Thu, 3 Jan 2019 21:39:22 +0000 Message-Id: <20190103213924.22835-11-chewi@gentoo.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190103213924.22835-1-chewi@gentoo.org> References: <20190103213924.22835-1-chewi@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: ac882bcc-5ae7-4193-bcc8-58229f60ebf8 X-Archives-Hash: 554d8e3eadd8455448d48cc82d6a924a python-any-r1 is not to be used in packages requiring Python at runtime. It may not even be installed. Signed-off-by: James Le Cuirot --- eclass/python-any-r1.eclass | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eclass/python-any-r1.eclass b/eclass/python-any-r1.eclass index 7c5ae87872eb..c46ca0e2444b 100644 --- a/eclass/python-any-r1.eclass +++ b/eclass/python-any-r1.eclass @@ -283,6 +283,11 @@ _python_EPYTHON_supported() { python_setup() { debug-print-function ${FUNCNAME} "${@}" + # Ensure Python wrappers are created against the build system's + # configuration as python-any-r1 is not to be used in packages + # requiring Python at runtime. It may not even be installed. + local SYSROOT ESYSROOT=${BROOT-${EPREFIX}} + # support developer override if [[ ${PYTHON_COMPAT_OVERRIDE} ]]; then local impls=( ${PYTHON_COMPAT_OVERRIDE} ) -- 2.19.2