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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 43E3D15800F for ; Sat, 28 Jan 2023 22:12:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 61BB9E0931; Sat, 28 Jan 2023 22:12:28 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 47CADE0931 for ; Sat, 28 Jan 2023 22:12:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 69EEC340EA6 for ; Sat, 28 Jan 2023 22:12:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 325CF895 for ; Sat, 28 Jan 2023 22:12:24 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1674943886.112404b843cd492715f679acf8a31fd7e35ed568.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/python-utils-r1.eclass X-VCS-Directories: eclass/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 112404b843cd492715f679acf8a31fd7e35ed568 X-VCS-Branch: master Date: Sat, 28 Jan 2023 22:12:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ca87ca2d-e521-4cd3-aff8-7a7381192dae X-Archives-Hash: 0ccc8992b90e96f4f7e4a50ca0b10d6b commit: 112404b843cd492715f679acf8a31fd7e35ed568 Author: James Le Cuirot gentoo org> AuthorDate: Mon Dec 26 22:56:05 2022 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Sat Jan 28 22:11:26 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=112404b8 python-utils-r1.eclass: Use BROOT rather than EPREFIX for PYTHON var The PYTHON variable is used for the wrapper shebangs. These should point to the build system rather than the host system. The variable is also used in other contexts, but the build system is still likely to be most appropriate. If this does break anything, it'll only be for prefixed systems. Signed-off-by: James Le Cuirot gentoo.org> eclass/python-utils-r1.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index 43472bd1fae0..bc397229a670 100644 --- a/eclass/python-utils-r1.eclass +++ b/eclass/python-utils-r1.eclass @@ -332,7 +332,7 @@ _python_export() { debug-print "${FUNCNAME}: EPYTHON = ${EPYTHON}" ;; PYTHON) - export PYTHON=${EPREFIX}/usr/bin/${impl} + export PYTHON=${BROOT-${EPREFIX}}/usr/bin/${impl} debug-print "${FUNCNAME}: PYTHON = ${PYTHON}" ;; PYTHON_SITEDIR)