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 9440A158020 for ; Mon, 7 Nov 2022 08:19:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DA257E07E6; Mon, 7 Nov 2022 08:19:02 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C149BE07E6 for ; Mon, 7 Nov 2022 08:19:02 +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 F0552341014 for ; Mon, 7 Nov 2022 08:19:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6AEC861D for ; Mon, 7 Nov 2022 08:19:00 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1667808963.43763a7b650425142ba25aeb09839f967df44ac3.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/python/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/python/python-3.12.0_alpha1_p1.ebuild X-VCS-Directories: dev-lang/python/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 43763a7b650425142ba25aeb09839f967df44ac3 X-VCS-Branch: master Date: Mon, 7 Nov 2022 08:19:00 +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: 09c0892b-10d9-4bdb-bcfb-6ff26dd5614c X-Archives-Hash: 9fcb8f27ba632a349c40466fdd9eb3fd commit: 43763a7b650425142ba25aeb09839f967df44ac3 Author: Sam James gentoo org> AuthorDate: Mon Nov 7 08:16:03 2022 +0000 Commit: Sam James gentoo org> CommitDate: Mon Nov 7 08:16:03 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43763a7b dev-lang/python: fix *FLAGS_FOR_BUILD in 3.12.0_alpha1_p1 Signed-off-by: Sam James gentoo.org> dev-lang/python/python-3.12.0_alpha1_p1.ebuild | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/dev-lang/python/python-3.12.0_alpha1_p1.ebuild b/dev-lang/python/python-3.12.0_alpha1_p1.ebuild index 0b85a0a8204b..df8279e32c7e 100644 --- a/dev-lang/python/python-3.12.0_alpha1_p1.ebuild +++ b/dev-lang/python/python-3.12.0_alpha1_p1.ebuild @@ -211,13 +211,14 @@ src_configure() { # disable implicit optimization/debugging flags local -x OPT= - # pass system CFLAGS & LDFLAGS as _NODIST, otherwise they'll get - # propagated to sysconfig for built extensions - local -x CFLAGS_NODIST=${CFLAGS} - local -x LDFLAGS_NODIST=${LDFLAGS} - local -x CFLAGS= LDFLAGS= if tc-is-cross-compiler ; then + # pass system CFLAGS & LDFLAGS as _NODIST, otherwise they'll get + # propagated to sysconfig for built extensions + local -x CFLAGS_NODIST=${CFLAGS_FOR_BUILD} + local -x LDFLAGS_NODIST=${LDFLAGS_FOR_BUILD} + local -x CFLAGS= LDFLAGS= + # We need to build our own Python on CBUILD first, and feed it in. # bug #847910 local myeconfargs_cbuild=( @@ -265,6 +266,12 @@ src_configure() { popd &> /dev/null || die fi + # pass system CFLAGS & LDFLAGS as _NODIST, otherwise they'll get + # propagated to sysconfig for built extensions + local -x CFLAGS_NODIST=${CFLAGS} + local -x LDFLAGS_NODIST=${LDFLAGS} + local -x CFLAGS= LDFLAGS= + # Fix implicit declarations on cross and prefix builds. Bug #674070. if use ncurses; then append-cppflags -I"${ESYSROOT}"/usr/include/ncursesw