Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libcxxabi/
Date: Sun, 27 Dec 2020 09:50:56
Message-Id: 1609062571.a4b70b6b132e2c1f16abe441effa7da73382a94a.grobian@gentoo
1 commit: a4b70b6b132e2c1f16abe441effa7da73382a94a
2 Author: Jacob Floyd <cognifloyd <AT> gmail <DOT> com>
3 AuthorDate: Sun Dec 20 21:24:14 2020 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 27 09:49:31 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4b70b6b
7
8 sys-libs/libcxxabi: fix prefix bootstrap
9
10 When bootstrapping prefix on darwin, libcxxabi must be installed before
11 llvm is built during stage2 (in EPREFIX/tmp) and during stage3 (in
12 EPREFIX). llvm_pkg_setup, however, identifies the *installed* llvm to
13 set environment variables with the correct path to llvm. Since llvm is
14 not installed, we have to skip that step. But during bootstrap, we don't
15 need those environment vars to be modified anyway because
16 bootstrap-prefix.sh already sets them with the paths to the correct llvm
17 (which is the host's llm during stage2 and the EPREFIX/tmp llvm during
18 stage3).
19
20 Once stage3 is complete, llvm is installed in EPREFIX, so the system
21 rebuild (with `emerge -e system`) will successfully use llvm_pkg_setup.
22 bootstrap-prefix.sh is no longer controlling the vars at that point, so
23 it is important to allow llvm_pkg_setup to correctly modify the vars.
24
25 This also keywords the ebuild with ~x64-macos.
26
27 Bug: https://bugs.gentoo.org/758167
28 Signed-off-by: Jacob Floyd <cognifloyd <AT> gmail.com>
29 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
30
31 sys-libs/libcxxabi/libcxxabi-11.0.0.ebuild | 8 ++++++--
32 sys-libs/libcxxabi/libcxxabi-11.0.1.9999.ebuild | 6 +++++-
33 sys-libs/libcxxabi/libcxxabi-11.0.1_rc1.ebuild | 6 +++++-
34 sys-libs/libcxxabi/libcxxabi-11.0.1_rc2.ebuild | 6 +++++-
35 sys-libs/libcxxabi/libcxxabi-12.0.0.9999.ebuild | 6 +++++-
36 5 files changed, 26 insertions(+), 6 deletions(-)
37
38 diff --git a/sys-libs/libcxxabi/libcxxabi-11.0.0.ebuild b/sys-libs/libcxxabi/libcxxabi-11.0.0.ebuild
39 index 8b660d054c7..927f9e62f51 100644
40 --- a/sys-libs/libcxxabi/libcxxabi-11.0.0.ebuild
41 +++ b/sys-libs/libcxxabi/libcxxabi-11.0.0.ebuild
42 @@ -16,7 +16,7 @@ llvm.org_set_globals
43
44 LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )"
45 SLOT="0"
46 -KEYWORDS="amd64 arm arm64 ~riscv x86"
47 +KEYWORDS="amd64 arm arm64 ~riscv x86 ~x64-macos"
48 IUSE="+libunwind +static-libs test elibc_musl"
49 RESTRICT="!test? ( test )"
50
51 @@ -39,7 +39,11 @@ python_check_deps() {
52 }
53
54 pkg_setup() {
55 - llvm_pkg_setup
56 + # darwin prefix builds do not have llvm installed yet, so rely on bootstrap-prefix
57 + # to set the appropriate path vars to LLVM instead of using llvm_pkg_setup.
58 + if [[ ${CHOST} != *-darwin* ]] || has_version dev-lang/llvm; then
59 + llvm_pkg_setup
60 + fi
61 use test && python-any-r1_pkg_setup
62 }
63
64
65 diff --git a/sys-libs/libcxxabi/libcxxabi-11.0.1.9999.ebuild b/sys-libs/libcxxabi/libcxxabi-11.0.1.9999.ebuild
66 index c1992223348..954ae031580 100644
67 --- a/sys-libs/libcxxabi/libcxxabi-11.0.1.9999.ebuild
68 +++ b/sys-libs/libcxxabi/libcxxabi-11.0.1.9999.ebuild
69 @@ -41,7 +41,11 @@ python_check_deps() {
70 }
71
72 pkg_setup() {
73 - llvm_pkg_setup
74 + # darwin prefix builds do not have llvm installed yet, so rely on bootstrap-prefix
75 + # to set the appropriate path vars to LLVM instead of using llvm_pkg_setup.
76 + if [[ ${CHOST} != *-darwin* ]] || has_version dev-lang/llvm; then
77 + llvm_pkg_setup
78 + fi
79 use test && python-any-r1_pkg_setup
80 }
81
82
83 diff --git a/sys-libs/libcxxabi/libcxxabi-11.0.1_rc1.ebuild b/sys-libs/libcxxabi/libcxxabi-11.0.1_rc1.ebuild
84 index c1992223348..954ae031580 100644
85 --- a/sys-libs/libcxxabi/libcxxabi-11.0.1_rc1.ebuild
86 +++ b/sys-libs/libcxxabi/libcxxabi-11.0.1_rc1.ebuild
87 @@ -41,7 +41,11 @@ python_check_deps() {
88 }
89
90 pkg_setup() {
91 - llvm_pkg_setup
92 + # darwin prefix builds do not have llvm installed yet, so rely on bootstrap-prefix
93 + # to set the appropriate path vars to LLVM instead of using llvm_pkg_setup.
94 + if [[ ${CHOST} != *-darwin* ]] || has_version dev-lang/llvm; then
95 + llvm_pkg_setup
96 + fi
97 use test && python-any-r1_pkg_setup
98 }
99
100
101 diff --git a/sys-libs/libcxxabi/libcxxabi-11.0.1_rc2.ebuild b/sys-libs/libcxxabi/libcxxabi-11.0.1_rc2.ebuild
102 index c1992223348..954ae031580 100644
103 --- a/sys-libs/libcxxabi/libcxxabi-11.0.1_rc2.ebuild
104 +++ b/sys-libs/libcxxabi/libcxxabi-11.0.1_rc2.ebuild
105 @@ -41,7 +41,11 @@ python_check_deps() {
106 }
107
108 pkg_setup() {
109 - llvm_pkg_setup
110 + # darwin prefix builds do not have llvm installed yet, so rely on bootstrap-prefix
111 + # to set the appropriate path vars to LLVM instead of using llvm_pkg_setup.
112 + if [[ ${CHOST} != *-darwin* ]] || has_version dev-lang/llvm; then
113 + llvm_pkg_setup
114 + fi
115 use test && python-any-r1_pkg_setup
116 }
117
118
119 diff --git a/sys-libs/libcxxabi/libcxxabi-12.0.0.9999.ebuild b/sys-libs/libcxxabi/libcxxabi-12.0.0.9999.ebuild
120 index c1992223348..954ae031580 100644
121 --- a/sys-libs/libcxxabi/libcxxabi-12.0.0.9999.ebuild
122 +++ b/sys-libs/libcxxabi/libcxxabi-12.0.0.9999.ebuild
123 @@ -41,7 +41,11 @@ python_check_deps() {
124 }
125
126 pkg_setup() {
127 - llvm_pkg_setup
128 + # darwin prefix builds do not have llvm installed yet, so rely on bootstrap-prefix
129 + # to set the appropriate path vars to LLVM instead of using llvm_pkg_setup.
130 + if [[ ${CHOST} != *-darwin* ]] || has_version dev-lang/llvm; then
131 + llvm_pkg_setup
132 + fi
133 use test && python-any-r1_pkg_setup
134 }