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 BE20313835C for ; Sun, 27 Dec 2020 09:50:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EC4B7E0BE3; Sun, 27 Dec 2020 09:50:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 C3164E0BE3 for ; Sun, 27 Dec 2020 09:50:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 65C5A3413F0 for ; Sun, 27 Dec 2020 09:50:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 730C64B for ; Sun, 27 Dec 2020 09:50:52 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1609062571.a4b70b6b132e2c1f16abe441effa7da73382a94a.grobian@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libcxxabi/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-libs/libcxxabi/libcxxabi-11.0.0.ebuild sys-libs/libcxxabi/libcxxabi-11.0.1.9999.ebuild sys-libs/libcxxabi/libcxxabi-11.0.1_rc1.ebuild sys-libs/libcxxabi/libcxxabi-11.0.1_rc2.ebuild sys-libs/libcxxabi/libcxxabi-12.0.0.9999.ebuild X-VCS-Directories: sys-libs/libcxxabi/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: a4b70b6b132e2c1f16abe441effa7da73382a94a X-VCS-Branch: master Date: Sun, 27 Dec 2020 09:50:52 +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: 02982ab9-2d38-4c13-a4a9-8148e209d59c X-Archives-Hash: 5761bbf991c42302ee01b33429be9510 commit: a4b70b6b132e2c1f16abe441effa7da73382a94a Author: Jacob Floyd gmail com> AuthorDate: Sun Dec 20 21:24:14 2020 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Sun Dec 27 09:49:31 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4b70b6b sys-libs/libcxxabi: fix prefix bootstrap When bootstrapping prefix on darwin, libcxxabi must be installed before llvm is built during stage2 (in EPREFIX/tmp) and during stage3 (in EPREFIX). llvm_pkg_setup, however, identifies the *installed* llvm to set environment variables with the correct path to llvm. Since llvm is not installed, we have to skip that step. But during bootstrap, we don't need those environment vars to be modified anyway because bootstrap-prefix.sh already sets them with the paths to the correct llvm (which is the host's llm during stage2 and the EPREFIX/tmp llvm during stage3). Once stage3 is complete, llvm is installed in EPREFIX, so the system rebuild (with `emerge -e system`) will successfully use llvm_pkg_setup. bootstrap-prefix.sh is no longer controlling the vars at that point, so it is important to allow llvm_pkg_setup to correctly modify the vars. This also keywords the ebuild with ~x64-macos. Bug: https://bugs.gentoo.org/758167 Signed-off-by: Jacob Floyd gmail.com> Signed-off-by: Fabian Groffen gentoo.org> sys-libs/libcxxabi/libcxxabi-11.0.0.ebuild | 8 ++++++-- sys-libs/libcxxabi/libcxxabi-11.0.1.9999.ebuild | 6 +++++- sys-libs/libcxxabi/libcxxabi-11.0.1_rc1.ebuild | 6 +++++- sys-libs/libcxxabi/libcxxabi-11.0.1_rc2.ebuild | 6 +++++- sys-libs/libcxxabi/libcxxabi-12.0.0.9999.ebuild | 6 +++++- 5 files changed, 26 insertions(+), 6 deletions(-) diff --git a/sys-libs/libcxxabi/libcxxabi-11.0.0.ebuild b/sys-libs/libcxxabi/libcxxabi-11.0.0.ebuild index 8b660d054c7..927f9e62f51 100644 --- a/sys-libs/libcxxabi/libcxxabi-11.0.0.ebuild +++ b/sys-libs/libcxxabi/libcxxabi-11.0.0.ebuild @@ -16,7 +16,7 @@ llvm.org_set_globals LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )" SLOT="0" -KEYWORDS="amd64 arm arm64 ~riscv x86" +KEYWORDS="amd64 arm arm64 ~riscv x86 ~x64-macos" IUSE="+libunwind +static-libs test elibc_musl" RESTRICT="!test? ( test )" @@ -39,7 +39,11 @@ python_check_deps() { } pkg_setup() { - llvm_pkg_setup + # darwin prefix builds do not have llvm installed yet, so rely on bootstrap-prefix + # to set the appropriate path vars to LLVM instead of using llvm_pkg_setup. + if [[ ${CHOST} != *-darwin* ]] || has_version dev-lang/llvm; then + llvm_pkg_setup + fi use test && python-any-r1_pkg_setup } diff --git a/sys-libs/libcxxabi/libcxxabi-11.0.1.9999.ebuild b/sys-libs/libcxxabi/libcxxabi-11.0.1.9999.ebuild index c1992223348..954ae031580 100644 --- a/sys-libs/libcxxabi/libcxxabi-11.0.1.9999.ebuild +++ b/sys-libs/libcxxabi/libcxxabi-11.0.1.9999.ebuild @@ -41,7 +41,11 @@ python_check_deps() { } pkg_setup() { - llvm_pkg_setup + # darwin prefix builds do not have llvm installed yet, so rely on bootstrap-prefix + # to set the appropriate path vars to LLVM instead of using llvm_pkg_setup. + if [[ ${CHOST} != *-darwin* ]] || has_version dev-lang/llvm; then + llvm_pkg_setup + fi use test && python-any-r1_pkg_setup } diff --git a/sys-libs/libcxxabi/libcxxabi-11.0.1_rc1.ebuild b/sys-libs/libcxxabi/libcxxabi-11.0.1_rc1.ebuild index c1992223348..954ae031580 100644 --- a/sys-libs/libcxxabi/libcxxabi-11.0.1_rc1.ebuild +++ b/sys-libs/libcxxabi/libcxxabi-11.0.1_rc1.ebuild @@ -41,7 +41,11 @@ python_check_deps() { } pkg_setup() { - llvm_pkg_setup + # darwin prefix builds do not have llvm installed yet, so rely on bootstrap-prefix + # to set the appropriate path vars to LLVM instead of using llvm_pkg_setup. + if [[ ${CHOST} != *-darwin* ]] || has_version dev-lang/llvm; then + llvm_pkg_setup + fi use test && python-any-r1_pkg_setup } diff --git a/sys-libs/libcxxabi/libcxxabi-11.0.1_rc2.ebuild b/sys-libs/libcxxabi/libcxxabi-11.0.1_rc2.ebuild index c1992223348..954ae031580 100644 --- a/sys-libs/libcxxabi/libcxxabi-11.0.1_rc2.ebuild +++ b/sys-libs/libcxxabi/libcxxabi-11.0.1_rc2.ebuild @@ -41,7 +41,11 @@ python_check_deps() { } pkg_setup() { - llvm_pkg_setup + # darwin prefix builds do not have llvm installed yet, so rely on bootstrap-prefix + # to set the appropriate path vars to LLVM instead of using llvm_pkg_setup. + if [[ ${CHOST} != *-darwin* ]] || has_version dev-lang/llvm; then + llvm_pkg_setup + fi use test && python-any-r1_pkg_setup } diff --git a/sys-libs/libcxxabi/libcxxabi-12.0.0.9999.ebuild b/sys-libs/libcxxabi/libcxxabi-12.0.0.9999.ebuild index c1992223348..954ae031580 100644 --- a/sys-libs/libcxxabi/libcxxabi-12.0.0.9999.ebuild +++ b/sys-libs/libcxxabi/libcxxabi-12.0.0.9999.ebuild @@ -41,7 +41,11 @@ python_check_deps() { } pkg_setup() { - llvm_pkg_setup + # darwin prefix builds do not have llvm installed yet, so rely on bootstrap-prefix + # to set the appropriate path vars to LLVM instead of using llvm_pkg_setup. + if [[ ${CHOST} != *-darwin* ]] || has_version dev-lang/llvm; then + llvm_pkg_setup + fi use test && python-any-r1_pkg_setup }