1 |
commit: 9dc1348f543e60df0426699b4716b5d01842fafc |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 1 12:37:18 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 1 13:27:02 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9dc1348f |
7 |
|
8 |
sys-libs/libcxx: Remove 13.0.0 RCs |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sys-libs/libcxx/Manifest | 6 - |
13 |
sys-libs/libcxx/libcxx-13.0.0_rc2.ebuild | 213 ------------------------------- |
14 |
sys-libs/libcxx/libcxx-13.0.0_rc3.ebuild | 213 ------------------------------- |
15 |
sys-libs/libcxx/libcxx-13.0.0_rc4.ebuild | 213 ------------------------------- |
16 |
4 files changed, 645 deletions(-) |
17 |
|
18 |
diff --git a/sys-libs/libcxx/Manifest b/sys-libs/libcxx/Manifest |
19 |
index d6bfb17462e..3637647d0da 100644 |
20 |
--- a/sys-libs/libcxx/Manifest |
21 |
+++ b/sys-libs/libcxx/Manifest |
22 |
@@ -1,15 +1,9 @@ |
23 |
DIST llvm-gentoo-patchset-10.0.1-1.tar.xz 8320 BLAKE2B 1b7ea7669586e08fece0efcf02b392feed4b7f3e6e9cdd10ab7dcc30082cae5bb1daa6d3314a7b0329c4d70f3c736d0c57ed408c838601dc737d558d2a0a0f26 SHA512 75898a8d719657177bbf587d848be8e53135c09e50603660c19edab00f80b6c2f29e7b6fda2bef381b38df6e24a690d694029a38c525763408322573275fc9f0 |
24 |
DIST llvm-gentoo-patchset-11.1.0-1.tar.xz 4032 BLAKE2B e69138a422e315b31a3d9c11faa4ae1ddf1bf9092cee2db0de4d2adef81fd802973488293aab48b764402b51996893b17ca03249ef4620848a576d1f6cdb9698 SHA512 e1c5504dab6c5db9fdf4addfeb12316f22d0258717ba551a9b7b3ba37919491fb6011ac5cca1e793b7509d5c1c186bc6bc4213f7d6155d190612492b216f979b |
25 |
DIST llvm-gentoo-patchset-12.0.1.tar.xz 5280 BLAKE2B 963d005bc7b636570be90eb841ac5bcaeb927538cc7de27683167111a17d6496677c7517de2ecfaf14b5d8ac22bad357be490b8a2ed9aba502fd5f447ecc99e9 SHA512 fc7c38e671555751650299c3a8bee44d5c7f26e11b68d5538c507fb7fe9ff2d349bdcd43bce90a448a747f082d523b3849d6bcda5e3ae2e998edcb926d6aa249 |
26 |
-DIST llvm-gentoo-patchset-13.0.0-rc2.tar.xz 5556 BLAKE2B e6c7ecfe8f842edc4d4f30a20c66973519182ecb46e21fb20b6c5fcb6d54cdef830fcb120a405b77f1332e3557acbbbbfa99170b20d17f137e0a63b2d0dc1258 SHA512 ddeaf1d07f0ba893ce93e5fe1eff1c0716769a7879fc503c397f4db7becb363f94747f59b6d53c204df73a93954fb0ca5aae6ad544ce55c964c4bf441a410cd2 |
27 |
-DIST llvm-gentoo-patchset-13.0.0-rc3.tar.xz 5012 BLAKE2B 5399feeffe73e8fbd099c8058f1cc41e2fcb2feb446acc1394589c0397167786895d328d45ff481fb30605f215774b9e51e332124c0b071e969a2f01c5943c04 SHA512 d4fb2b08e253d9fa89070045282b4309ca9938011bf7f9b5364cc69c5030ff9353abb1624895b4bfeef2cd8e2f8c9b9f93fc8196f98dc0970457bca7787270c9 |
28 |
-DIST llvm-gentoo-patchset-13.0.0-rc4.tar.xz 5016 BLAKE2B 021ba4e67904e4cf4dfdf1ecfc1cd1cc860c2f43db97e04c40ca7d95567f6235a27a2a919083c58b89b269eefa2d751cb9c324bda6518c22e9fc01007936a520 SHA512 dce61179dffafc5992fb0e18314bba2d5fbf2f0470a491bc1ffc036274b65d0a1de741b23e2de32e873250c856a53707e06f8c560bd29f8a54a6ae0c74267f43 |
29 |
DIST llvm-gentoo-patchset-13.0.0.tar.xz 5012 BLAKE2B 6760c78c086aaf6629143fd920b0a2c68cad9278628fbea8164dfeb59db95984a5b5d6b3505b510c697e8c95bf8d2be782c6b73c01622d52f2da9b07ecff39e0 SHA512 7764d49343b795b6bebae64f646ba27e3e6cc2a20b8a1aee645ce0d8474633c34acfbb73c08546fee415755dd4ea5a98c1d84db5e394cf5f4fc802eb61148ab6 |
30 |
DIST llvm-gentoo-patchset-9999-1.tar.xz 4032 BLAKE2B b9413484dafed8ae0c68c2c164b45fd07bb8d5d0898f03abe118fd2120ffcb1fb6c949de9649a97c2e8105f24b9d131a725c67c0a502ca4d4d192c1a0d65f49d SHA512 e64449eeaf756c5bd945109937b84ba4bd8a015222bd792d39cf3947871e87571a4ca57814790e51544cb05ad4c2d1f044e818e4caaac7c2e2a02cb1aa290fcc |
31 |
DIST llvmorg-10.0.1.tar.gz 120880730 BLAKE2B 30f19f56c4d1f6abcda5fec76256219d1e3c8a6ff1a1f152f94bfe362c07884339fe571ff7fe903ed3b3deb150b2fa868c387887a0dea2930dc08b81db71a5b1 SHA512 48078fff9293a87f1a973f3348f79506f04c3da774295f5eb67d74dd2d1aa94f0973f8ced3f4ab9e8339902071f82c603b43d5608ad7227046c4da769c5d2151 |
32 |
DIST llvmorg-11.1.0.tar.gz 122776532 BLAKE2B ca842ff4afff8f44c82b5e7383962a9c45ca1c93b64fa4c6ebcd70a1d3849dbad2b8e4e24fba02d144c6266d7fab3607ebc6999b28c229cb35256cf40f26a985 SHA512 9a8ce022a935eed42fa71a224f2a207122aadcbef58ee855fdb4825f879e7d028e4dcff22c19b9d336db1c8bf63fb84372d44981acf84615f757e54306c92b81 |
33 |
DIST llvmorg-12.0.1.tar.gz 134259748 BLAKE2B f41de787bc73ff2edfda1b22cc8602be6f65f37dd9e4c8888533cfa8c3ccdcf4f108aaab9de23ab0ab987966eb160f2a553a0bdff99461e71ddd5bfcd086090d SHA512 6eb0dc18e2c25935fabfdfc48b0114be0939158dfdef7b85b395fe2e71042672446af0e68750aae003c9847d10d1f63316fe95d3df738d18f249174292b1b9e1 |
34 |
-DIST llvmorg-13.0.0-rc2.tar.gz 147267736 BLAKE2B 153bf7320f2aa911112d366ffc79f7110cb04f135c2a8b176c263f0a75eb768206d9bd462893d45504b0e58aa9e127fdcafb02300eab1666e4616aa654d457dd SHA512 a01baf3eaa02f02af42bfcf6dcf24f166351bf1c09601495617c81e41def23210573bad40a344270f40c5deb881d06863536abac2a6481930766a6a56335fb44 |
35 |
-DIST llvmorg-13.0.0-rc3.tar.gz 147281901 BLAKE2B 640065a2f32dc48edf084d776cb6b950fae86c2a204999e2eec67f93b57615df40adec19785099b0ef2fe11837c3304794ec3585289a5b5051a557618c63c749 SHA512 1401d5a4d6bb5c930d74b9cfbc8e792872f721aab7d7f0c819e2ba5cf47fb818d160c1f71784fba69827f3c9b7414aa91a585d2b813c1851b4799f9d62cebc46 |
36 |
-DIST llvmorg-13.0.0-rc4.tar.gz 147286367 BLAKE2B a43c54b8bb379b0374f99ae07066d7ba4ae2a83dfdb61390101c736f91dc44aa07a88778551aaaf903033562b2a0a863ea6b27392b700c9cddc74e2c7899cad1 SHA512 8ccaaea21ec4fe3c4b4446d3a7cae36a47ed196f407d341da45824bcefefffd3c412c0c5c27670ceaba1458bc53107273f9d3aec2de261b6b82c6d209b45b14d |
37 |
DIST llvmorg-13.0.0.tar.gz 147270176 BLAKE2B 628f316b580e1edf3a58d4825b724df759e6ed2a4116802470c04562caefc392fa325c91f388036365a2e45a9595cca6d3557fab12984fc8bcfef29c9116d822 SHA512 8004c05d32b9720fb3391783621690c1df9bd1e97e72cbff9192ed88a84b0acd303b61432145fa917b5b5e548c8cee29b24ef8547dcc8677adf4816e7a8a0eb2 |
38 |
|
39 |
diff --git a/sys-libs/libcxx/libcxx-13.0.0_rc2.ebuild b/sys-libs/libcxx/libcxx-13.0.0_rc2.ebuild |
40 |
deleted file mode 100644 |
41 |
index bd52b554403..00000000000 |
42 |
--- a/sys-libs/libcxx/libcxx-13.0.0_rc2.ebuild |
43 |
+++ /dev/null |
44 |
@@ -1,213 +0,0 @@ |
45 |
-# Copyright 1999-2021 Gentoo Authors |
46 |
-# Distributed under the terms of the GNU General Public License v2 |
47 |
- |
48 |
-EAPI=7 |
49 |
- |
50 |
-CMAKE_ECLASS=cmake |
51 |
-PYTHON_COMPAT=( python3_{8..10} ) |
52 |
-inherit cmake-multilib llvm llvm.org python-any-r1 toolchain-funcs |
53 |
- |
54 |
-DESCRIPTION="New implementation of the C++ standard library, targeting C++11" |
55 |
-HOMEPAGE="https://libcxx.llvm.org/" |
56 |
- |
57 |
-LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )" |
58 |
-SLOT="0" |
59 |
-KEYWORDS="" |
60 |
-IUSE="elibc_glibc elibc_musl +libcxxabi +libunwind static-libs test" |
61 |
-REQUIRED_USE="libunwind? ( libcxxabi )" |
62 |
-RESTRICT="!test? ( test )" |
63 |
- |
64 |
-RDEPEND=" |
65 |
- libcxxabi? ( ~sys-libs/libcxxabi-${PV}[libunwind=,static-libs?,${MULTILIB_USEDEP}] ) |
66 |
- !libcxxabi? ( >=sys-devel/gcc-4.7:=[cxx] )" |
67 |
-# llvm-6 for new lit options |
68 |
-# clang-3.9.0 installs necessary target symlinks unconditionally |
69 |
-# which removes the need for MULTILIB_USEDEP |
70 |
-DEPEND="${RDEPEND} |
71 |
- >=sys-devel/llvm-6" |
72 |
-BDEPEND=" |
73 |
- test? ( |
74 |
- >=dev-util/cmake-3.16 |
75 |
- >=sys-devel/clang-3.9.0 |
76 |
- $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') |
77 |
- )" |
78 |
- |
79 |
-DOCS=( CREDITS.TXT ) |
80 |
- |
81 |
-LLVM_COMPONENTS=( libcxx{,abi} llvm/{cmake,utils/llvm-lit} ) |
82 |
-LLVM_PATCHSET=13.0.0-rc2 |
83 |
-llvm.org_set_globals |
84 |
- |
85 |
-python_check_deps() { |
86 |
- has_version "dev-python/lit[${PYTHON_USEDEP}]" |
87 |
-} |
88 |
- |
89 |
-pkg_setup() { |
90 |
- # Darwin Prefix builds do not have llvm installed yet, so rely on |
91 |
- # bootstrap-prefix to set the appropriate path vars to LLVM instead |
92 |
- # of using llvm_pkg_setup. |
93 |
- if [[ ${CHOST} != *-darwin* ]] || has_version dev-lang/llvm; then |
94 |
- llvm_pkg_setup |
95 |
- fi |
96 |
- use test && python-any-r1_pkg_setup |
97 |
- |
98 |
- if ! use libcxxabi && ! tc-is-gcc ; then |
99 |
- eerror "To build ${PN} against libsupc++, you have to use gcc. Other" |
100 |
- eerror "compilers are not supported. Please set CC=gcc and CXX=g++" |
101 |
- eerror "and try again." |
102 |
- die |
103 |
- fi |
104 |
-} |
105 |
- |
106 |
-test_compiler() { |
107 |
- $(tc-getCXX) ${CXXFLAGS} ${LDFLAGS} "${@}" -o /dev/null -x c++ - \ |
108 |
- <<<'int main() { return 0; }' &>/dev/null |
109 |
-} |
110 |
- |
111 |
-src_configure() { |
112 |
- # note: we need to do this before multilib kicks in since it will |
113 |
- # alter the CHOST |
114 |
- local cxxabi cxxabi_incs |
115 |
- if use libcxxabi; then |
116 |
- cxxabi=libcxxabi |
117 |
- cxxabi_incs="${EPREFIX}/usr/include/libcxxabi" |
118 |
- else |
119 |
- local gcc_inc="${EPREFIX}/usr/lib/gcc/${CHOST}/$(gcc-fullversion)/include/g++-v$(gcc-major-version)" |
120 |
- cxxabi=libsupc++ |
121 |
- cxxabi_incs="${gcc_inc};${gcc_inc}/${CHOST}" |
122 |
- fi |
123 |
- |
124 |
- multilib-minimal_src_configure |
125 |
-} |
126 |
- |
127 |
-multilib_src_configure() { |
128 |
- # we want -lgcc_s for unwinder, and for compiler runtime when using |
129 |
- # gcc, clang with gcc runtime (or any unknown compiler) |
130 |
- local extra_libs=() want_gcc_s=ON want_compiler_rt=OFF |
131 |
- if use libunwind; then |
132 |
- # work-around missing -lunwind upstream |
133 |
- extra_libs+=( -lunwind ) |
134 |
- # if we're using libunwind and clang with compiler-rt, we want |
135 |
- # to link to compiler-rt instead of -lgcc_s |
136 |
- if tc-is-clang; then |
137 |
- local compiler_rt=$($(tc-getCC) ${CFLAGS} ${CPPFLAGS} \ |
138 |
- ${LDFLAGS} -print-libgcc-file-name) |
139 |
- if [[ ${compiler_rt} == *libclang_rt* ]]; then |
140 |
- want_gcc_s=OFF |
141 |
- want_compiler_rt=ON |
142 |
- extra_libs+=( "${compiler_rt}" ) |
143 |
- fi |
144 |
- fi |
145 |
- elif [[ ${CHOST} == *-darwin* ]] && tc-is-clang; then |
146 |
- # clang-based darwin prefix disables libunwind useflag during |
147 |
- # bootstrap, because libunwind is not in the prefix yet. |
148 |
- # override the default, though, because clang based libcxx |
149 |
- # should never use gcc_s on Darwin. |
150 |
- want_gcc_s=OFF |
151 |
- # compiler_rt is not available in EPREFIX during bootstrap, |
152 |
- # so we cannot link to it yet anyway, so keep the defaults |
153 |
- # of want_compiler_rt=OFF and extra_libs=() |
154 |
- fi |
155 |
- |
156 |
- # bootstrap: cmake is unhappy if compiler can't link to stdlib |
157 |
- local nolib_flags=( -nodefaultlibs -lc ) |
158 |
- if ! test_compiler; then |
159 |
- if test_compiler "${nolib_flags[@]}"; then |
160 |
- local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}" |
161 |
- ewarn "${CXX} seems to lack runtime, trying with ${nolib_flags[*]}" |
162 |
- fi |
163 |
- fi |
164 |
- |
165 |
- local libdir=$(get_libdir) |
166 |
- local mycmakeargs=( |
167 |
- -DLIBCXX_LIBDIR_SUFFIX=${libdir#lib} |
168 |
- -DLIBCXX_ENABLE_SHARED=ON |
169 |
- -DLIBCXX_ENABLE_STATIC=$(usex static-libs) |
170 |
- -DLIBCXX_CXX_ABI=${cxxabi} |
171 |
- -DLIBCXX_CXX_ABI_INCLUDE_PATHS=${cxxabi_incs} |
172 |
- # we're using our own mechanism for generating linker scripts |
173 |
- -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=OFF |
174 |
- -DLIBCXX_HAS_MUSL_LIBC=$(usex elibc_musl) |
175 |
- -DLIBCXX_HAS_GCC_S_LIB=${want_gcc_s} |
176 |
- -DLIBCXX_INCLUDE_TESTS=$(usex test) |
177 |
- -DLIBCXX_USE_COMPILER_RT=${want_compiler_rt} |
178 |
- -DLIBCXX_HAS_ATOMIC_LIB=${want_gcc_s} |
179 |
- -DCMAKE_SHARED_LINKER_FLAGS="${extra_libs[*]} ${LDFLAGS}" |
180 |
- ) |
181 |
- |
182 |
- if use test; then |
183 |
- local clang_path=$(type -P "${CHOST:+${CHOST}-}clang" 2>/dev/null) |
184 |
- [[ -n ${clang_path} ]] || die "Unable to find ${CHOST}-clang for tests" |
185 |
- |
186 |
- mycmakeargs+=( |
187 |
- -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" |
188 |
- -DLLVM_LIT_ARGS="$(get_lit_flags);--param=cxx_under_test=${clang_path}" |
189 |
- -DLIBCXX_LINK_TESTS_WITH_SHARED_LIBCXXABI=ON |
190 |
- -DPython3_EXECUTABLE="${PYTHON}" |
191 |
- ) |
192 |
- fi |
193 |
- cmake_src_configure |
194 |
-} |
195 |
- |
196 |
-multilib_src_test() { |
197 |
- local -x LIT_PRESERVES_TMP=1 |
198 |
- cmake_build check-cxx |
199 |
-} |
200 |
- |
201 |
-# Usage: deps |
202 |
-gen_ldscript() { |
203 |
- local output_format |
204 |
- output_format=$($(tc-getCC) ${CFLAGS} ${LDFLAGS} -Wl,--verbose 2>&1 | sed -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p') |
205 |
- [[ -n ${output_format} ]] && output_format="OUTPUT_FORMAT ( ${output_format} )" |
206 |
- |
207 |
- cat <<-END_LDSCRIPT |
208 |
-/* GNU ld script |
209 |
- Include missing dependencies |
210 |
-*/ |
211 |
-${output_format} |
212 |
-GROUP ( $@ ) |
213 |
-END_LDSCRIPT |
214 |
-} |
215 |
- |
216 |
-gen_static_ldscript() { |
217 |
- local libdir=$(get_libdir) |
218 |
- local cxxabi_lib=$(usex libcxxabi "libc++abi.a" "libsupc++.a") |
219 |
- |
220 |
- # Move it first. |
221 |
- mv "${ED}/usr/${libdir}/libc++.a" "${ED}/usr/${libdir}/libc++_static.a" || die |
222 |
- # Generate libc++.a ldscript for inclusion of its dependencies so that |
223 |
- # clang++ -stdlib=libc++ -static works out of the box. |
224 |
- local deps="libc++_static.a ${cxxabi_lib} $(usex libunwind libunwind.a libgcc_eh.a)" |
225 |
- # On Linux/glibc it does not link without libpthread or libdl. It is |
226 |
- # fine on FreeBSD. |
227 |
- use elibc_glibc && deps+=" libpthread.a libdl.a" |
228 |
- |
229 |
- gen_ldscript "${deps}" > "${ED}/usr/${libdir}/libc++.a" || die |
230 |
-} |
231 |
- |
232 |
-gen_shared_ldscript() { |
233 |
- local libdir=$(get_libdir) |
234 |
- # libsupc++ doesn't have a shared version |
235 |
- local cxxabi_lib=$(usex libcxxabi "libc++abi.so" "libsupc++.a") |
236 |
- |
237 |
- mv "${ED}/usr/${libdir}/libc++.so" "${ED}/usr/${libdir}/libc++_shared.so" || die |
238 |
- local deps="libc++_shared.so ${cxxabi_lib} $(usex libunwind libunwind.so libgcc_s.so)" |
239 |
- |
240 |
- gen_ldscript "${deps}" > "${ED}/usr/${libdir}/libc++.so" || die |
241 |
-} |
242 |
- |
243 |
-multilib_src_install() { |
244 |
- cmake_src_install |
245 |
- if [[ ${CHOST} != *-darwin* ]] ; then |
246 |
- gen_shared_ldscript |
247 |
- use static-libs && gen_static_ldscript |
248 |
- fi |
249 |
-} |
250 |
- |
251 |
-pkg_postinst() { |
252 |
- elog "This package (${PN}) is mainly intended as a replacement for the C++" |
253 |
- elog "standard library when using clang." |
254 |
- elog "To use it, instead of libstdc++, use:" |
255 |
- elog " clang++ -stdlib=libc++" |
256 |
- elog "to compile your C++ programs." |
257 |
-} |
258 |
|
259 |
diff --git a/sys-libs/libcxx/libcxx-13.0.0_rc3.ebuild b/sys-libs/libcxx/libcxx-13.0.0_rc3.ebuild |
260 |
deleted file mode 100644 |
261 |
index 5f8acf054c6..00000000000 |
262 |
--- a/sys-libs/libcxx/libcxx-13.0.0_rc3.ebuild |
263 |
+++ /dev/null |
264 |
@@ -1,213 +0,0 @@ |
265 |
-# Copyright 1999-2021 Gentoo Authors |
266 |
-# Distributed under the terms of the GNU General Public License v2 |
267 |
- |
268 |
-EAPI=7 |
269 |
- |
270 |
-CMAKE_ECLASS=cmake |
271 |
-PYTHON_COMPAT=( python3_{8..10} ) |
272 |
-inherit cmake-multilib llvm llvm.org python-any-r1 toolchain-funcs |
273 |
- |
274 |
-DESCRIPTION="New implementation of the C++ standard library, targeting C++11" |
275 |
-HOMEPAGE="https://libcxx.llvm.org/" |
276 |
- |
277 |
-LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )" |
278 |
-SLOT="0" |
279 |
-KEYWORDS="" |
280 |
-IUSE="elibc_glibc elibc_musl +libcxxabi +libunwind static-libs test" |
281 |
-REQUIRED_USE="libunwind? ( libcxxabi )" |
282 |
-RESTRICT="!test? ( test )" |
283 |
- |
284 |
-RDEPEND=" |
285 |
- libcxxabi? ( ~sys-libs/libcxxabi-${PV}[libunwind=,static-libs?,${MULTILIB_USEDEP}] ) |
286 |
- !libcxxabi? ( >=sys-devel/gcc-4.7:=[cxx] )" |
287 |
-# llvm-6 for new lit options |
288 |
-# clang-3.9.0 installs necessary target symlinks unconditionally |
289 |
-# which removes the need for MULTILIB_USEDEP |
290 |
-DEPEND="${RDEPEND} |
291 |
- >=sys-devel/llvm-6" |
292 |
-BDEPEND=" |
293 |
- test? ( |
294 |
- >=dev-util/cmake-3.16 |
295 |
- >=sys-devel/clang-3.9.0 |
296 |
- $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') |
297 |
- )" |
298 |
- |
299 |
-DOCS=( CREDITS.TXT ) |
300 |
- |
301 |
-LLVM_COMPONENTS=( libcxx{,abi} llvm/{cmake,utils/llvm-lit} ) |
302 |
-LLVM_PATCHSET=13.0.0-rc3 |
303 |
-llvm.org_set_globals |
304 |
- |
305 |
-python_check_deps() { |
306 |
- has_version "dev-python/lit[${PYTHON_USEDEP}]" |
307 |
-} |
308 |
- |
309 |
-pkg_setup() { |
310 |
- # Darwin Prefix builds do not have llvm installed yet, so rely on |
311 |
- # bootstrap-prefix to set the appropriate path vars to LLVM instead |
312 |
- # of using llvm_pkg_setup. |
313 |
- if [[ ${CHOST} != *-darwin* ]] || has_version dev-lang/llvm; then |
314 |
- llvm_pkg_setup |
315 |
- fi |
316 |
- use test && python-any-r1_pkg_setup |
317 |
- |
318 |
- if ! use libcxxabi && ! tc-is-gcc ; then |
319 |
- eerror "To build ${PN} against libsupc++, you have to use gcc. Other" |
320 |
- eerror "compilers are not supported. Please set CC=gcc and CXX=g++" |
321 |
- eerror "and try again." |
322 |
- die |
323 |
- fi |
324 |
-} |
325 |
- |
326 |
-test_compiler() { |
327 |
- $(tc-getCXX) ${CXXFLAGS} ${LDFLAGS} "${@}" -o /dev/null -x c++ - \ |
328 |
- <<<'int main() { return 0; }' &>/dev/null |
329 |
-} |
330 |
- |
331 |
-src_configure() { |
332 |
- # note: we need to do this before multilib kicks in since it will |
333 |
- # alter the CHOST |
334 |
- local cxxabi cxxabi_incs |
335 |
- if use libcxxabi; then |
336 |
- cxxabi=libcxxabi |
337 |
- cxxabi_incs="${EPREFIX}/usr/include/libcxxabi" |
338 |
- else |
339 |
- local gcc_inc="${EPREFIX}/usr/lib/gcc/${CHOST}/$(gcc-fullversion)/include/g++-v$(gcc-major-version)" |
340 |
- cxxabi=libsupc++ |
341 |
- cxxabi_incs="${gcc_inc};${gcc_inc}/${CHOST}" |
342 |
- fi |
343 |
- |
344 |
- multilib-minimal_src_configure |
345 |
-} |
346 |
- |
347 |
-multilib_src_configure() { |
348 |
- # we want -lgcc_s for unwinder, and for compiler runtime when using |
349 |
- # gcc, clang with gcc runtime (or any unknown compiler) |
350 |
- local extra_libs=() want_gcc_s=ON want_compiler_rt=OFF |
351 |
- if use libunwind; then |
352 |
- # work-around missing -lunwind upstream |
353 |
- extra_libs+=( -lunwind ) |
354 |
- # if we're using libunwind and clang with compiler-rt, we want |
355 |
- # to link to compiler-rt instead of -lgcc_s |
356 |
- if tc-is-clang; then |
357 |
- local compiler_rt=$($(tc-getCC) ${CFLAGS} ${CPPFLAGS} \ |
358 |
- ${LDFLAGS} -print-libgcc-file-name) |
359 |
- if [[ ${compiler_rt} == *libclang_rt* ]]; then |
360 |
- want_gcc_s=OFF |
361 |
- want_compiler_rt=ON |
362 |
- extra_libs+=( "${compiler_rt}" ) |
363 |
- fi |
364 |
- fi |
365 |
- elif [[ ${CHOST} == *-darwin* ]] && tc-is-clang; then |
366 |
- # clang-based darwin prefix disables libunwind useflag during |
367 |
- # bootstrap, because libunwind is not in the prefix yet. |
368 |
- # override the default, though, because clang based libcxx |
369 |
- # should never use gcc_s on Darwin. |
370 |
- want_gcc_s=OFF |
371 |
- # compiler_rt is not available in EPREFIX during bootstrap, |
372 |
- # so we cannot link to it yet anyway, so keep the defaults |
373 |
- # of want_compiler_rt=OFF and extra_libs=() |
374 |
- fi |
375 |
- |
376 |
- # bootstrap: cmake is unhappy if compiler can't link to stdlib |
377 |
- local nolib_flags=( -nodefaultlibs -lc ) |
378 |
- if ! test_compiler; then |
379 |
- if test_compiler "${nolib_flags[@]}"; then |
380 |
- local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}" |
381 |
- ewarn "${CXX} seems to lack runtime, trying with ${nolib_flags[*]}" |
382 |
- fi |
383 |
- fi |
384 |
- |
385 |
- local libdir=$(get_libdir) |
386 |
- local mycmakeargs=( |
387 |
- -DLIBCXX_LIBDIR_SUFFIX=${libdir#lib} |
388 |
- -DLIBCXX_ENABLE_SHARED=ON |
389 |
- -DLIBCXX_ENABLE_STATIC=$(usex static-libs) |
390 |
- -DLIBCXX_CXX_ABI=${cxxabi} |
391 |
- -DLIBCXX_CXX_ABI_INCLUDE_PATHS=${cxxabi_incs} |
392 |
- # we're using our own mechanism for generating linker scripts |
393 |
- -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=OFF |
394 |
- -DLIBCXX_HAS_MUSL_LIBC=$(usex elibc_musl) |
395 |
- -DLIBCXX_HAS_GCC_S_LIB=${want_gcc_s} |
396 |
- -DLIBCXX_INCLUDE_TESTS=$(usex test) |
397 |
- -DLIBCXX_USE_COMPILER_RT=${want_compiler_rt} |
398 |
- -DLIBCXX_HAS_ATOMIC_LIB=${want_gcc_s} |
399 |
- -DCMAKE_SHARED_LINKER_FLAGS="${extra_libs[*]} ${LDFLAGS}" |
400 |
- ) |
401 |
- |
402 |
- if use test; then |
403 |
- local clang_path=$(type -P "${CHOST:+${CHOST}-}clang" 2>/dev/null) |
404 |
- [[ -n ${clang_path} ]] || die "Unable to find ${CHOST}-clang for tests" |
405 |
- |
406 |
- mycmakeargs+=( |
407 |
- -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" |
408 |
- -DLLVM_LIT_ARGS="$(get_lit_flags);--param=cxx_under_test=${clang_path}" |
409 |
- -DLIBCXX_LINK_TESTS_WITH_SHARED_LIBCXXABI=ON |
410 |
- -DPython3_EXECUTABLE="${PYTHON}" |
411 |
- ) |
412 |
- fi |
413 |
- cmake_src_configure |
414 |
-} |
415 |
- |
416 |
-multilib_src_test() { |
417 |
- local -x LIT_PRESERVES_TMP=1 |
418 |
- cmake_build check-cxx |
419 |
-} |
420 |
- |
421 |
-# Usage: deps |
422 |
-gen_ldscript() { |
423 |
- local output_format |
424 |
- output_format=$($(tc-getCC) ${CFLAGS} ${LDFLAGS} -Wl,--verbose 2>&1 | sed -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p') |
425 |
- [[ -n ${output_format} ]] && output_format="OUTPUT_FORMAT ( ${output_format} )" |
426 |
- |
427 |
- cat <<-END_LDSCRIPT |
428 |
-/* GNU ld script |
429 |
- Include missing dependencies |
430 |
-*/ |
431 |
-${output_format} |
432 |
-GROUP ( $@ ) |
433 |
-END_LDSCRIPT |
434 |
-} |
435 |
- |
436 |
-gen_static_ldscript() { |
437 |
- local libdir=$(get_libdir) |
438 |
- local cxxabi_lib=$(usex libcxxabi "libc++abi.a" "libsupc++.a") |
439 |
- |
440 |
- # Move it first. |
441 |
- mv "${ED}/usr/${libdir}/libc++.a" "${ED}/usr/${libdir}/libc++_static.a" || die |
442 |
- # Generate libc++.a ldscript for inclusion of its dependencies so that |
443 |
- # clang++ -stdlib=libc++ -static works out of the box. |
444 |
- local deps="libc++_static.a ${cxxabi_lib} $(usex libunwind libunwind.a libgcc_eh.a)" |
445 |
- # On Linux/glibc it does not link without libpthread or libdl. It is |
446 |
- # fine on FreeBSD. |
447 |
- use elibc_glibc && deps+=" libpthread.a libdl.a" |
448 |
- |
449 |
- gen_ldscript "${deps}" > "${ED}/usr/${libdir}/libc++.a" || die |
450 |
-} |
451 |
- |
452 |
-gen_shared_ldscript() { |
453 |
- local libdir=$(get_libdir) |
454 |
- # libsupc++ doesn't have a shared version |
455 |
- local cxxabi_lib=$(usex libcxxabi "libc++abi.so" "libsupc++.a") |
456 |
- |
457 |
- mv "${ED}/usr/${libdir}/libc++.so" "${ED}/usr/${libdir}/libc++_shared.so" || die |
458 |
- local deps="libc++_shared.so ${cxxabi_lib} $(usex libunwind libunwind.so libgcc_s.so)" |
459 |
- |
460 |
- gen_ldscript "${deps}" > "${ED}/usr/${libdir}/libc++.so" || die |
461 |
-} |
462 |
- |
463 |
-multilib_src_install() { |
464 |
- cmake_src_install |
465 |
- if [[ ${CHOST} != *-darwin* ]] ; then |
466 |
- gen_shared_ldscript |
467 |
- use static-libs && gen_static_ldscript |
468 |
- fi |
469 |
-} |
470 |
- |
471 |
-pkg_postinst() { |
472 |
- elog "This package (${PN}) is mainly intended as a replacement for the C++" |
473 |
- elog "standard library when using clang." |
474 |
- elog "To use it, instead of libstdc++, use:" |
475 |
- elog " clang++ -stdlib=libc++" |
476 |
- elog "to compile your C++ programs." |
477 |
-} |
478 |
|
479 |
diff --git a/sys-libs/libcxx/libcxx-13.0.0_rc4.ebuild b/sys-libs/libcxx/libcxx-13.0.0_rc4.ebuild |
480 |
deleted file mode 100644 |
481 |
index f342357254b..00000000000 |
482 |
--- a/sys-libs/libcxx/libcxx-13.0.0_rc4.ebuild |
483 |
+++ /dev/null |
484 |
@@ -1,213 +0,0 @@ |
485 |
-# Copyright 1999-2021 Gentoo Authors |
486 |
-# Distributed under the terms of the GNU General Public License v2 |
487 |
- |
488 |
-EAPI=7 |
489 |
- |
490 |
-CMAKE_ECLASS=cmake |
491 |
-PYTHON_COMPAT=( python3_{8..10} ) |
492 |
-inherit cmake-multilib llvm llvm.org python-any-r1 toolchain-funcs |
493 |
- |
494 |
-DESCRIPTION="New implementation of the C++ standard library, targeting C++11" |
495 |
-HOMEPAGE="https://libcxx.llvm.org/" |
496 |
- |
497 |
-LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )" |
498 |
-SLOT="0" |
499 |
-KEYWORDS="" |
500 |
-IUSE="elibc_glibc elibc_musl +libcxxabi +libunwind static-libs test" |
501 |
-REQUIRED_USE="libunwind? ( libcxxabi )" |
502 |
-RESTRICT="!test? ( test )" |
503 |
- |
504 |
-RDEPEND=" |
505 |
- libcxxabi? ( ~sys-libs/libcxxabi-${PV}[libunwind=,static-libs?,${MULTILIB_USEDEP}] ) |
506 |
- !libcxxabi? ( >=sys-devel/gcc-4.7:=[cxx] )" |
507 |
-# llvm-6 for new lit options |
508 |
-# clang-3.9.0 installs necessary target symlinks unconditionally |
509 |
-# which removes the need for MULTILIB_USEDEP |
510 |
-DEPEND="${RDEPEND} |
511 |
- >=sys-devel/llvm-6" |
512 |
-BDEPEND=" |
513 |
- test? ( |
514 |
- >=dev-util/cmake-3.16 |
515 |
- >=sys-devel/clang-3.9.0 |
516 |
- $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') |
517 |
- )" |
518 |
- |
519 |
-DOCS=( CREDITS.TXT ) |
520 |
- |
521 |
-LLVM_COMPONENTS=( libcxx{,abi} llvm/{cmake,utils/llvm-lit} ) |
522 |
-LLVM_PATCHSET=${PV/_/-} |
523 |
-llvm.org_set_globals |
524 |
- |
525 |
-python_check_deps() { |
526 |
- has_version "dev-python/lit[${PYTHON_USEDEP}]" |
527 |
-} |
528 |
- |
529 |
-pkg_setup() { |
530 |
- # Darwin Prefix builds do not have llvm installed yet, so rely on |
531 |
- # bootstrap-prefix to set the appropriate path vars to LLVM instead |
532 |
- # of using llvm_pkg_setup. |
533 |
- if [[ ${CHOST} != *-darwin* ]] || has_version dev-lang/llvm; then |
534 |
- llvm_pkg_setup |
535 |
- fi |
536 |
- use test && python-any-r1_pkg_setup |
537 |
- |
538 |
- if ! use libcxxabi && ! tc-is-gcc ; then |
539 |
- eerror "To build ${PN} against libsupc++, you have to use gcc. Other" |
540 |
- eerror "compilers are not supported. Please set CC=gcc and CXX=g++" |
541 |
- eerror "and try again." |
542 |
- die |
543 |
- fi |
544 |
-} |
545 |
- |
546 |
-test_compiler() { |
547 |
- $(tc-getCXX) ${CXXFLAGS} ${LDFLAGS} "${@}" -o /dev/null -x c++ - \ |
548 |
- <<<'int main() { return 0; }' &>/dev/null |
549 |
-} |
550 |
- |
551 |
-src_configure() { |
552 |
- # note: we need to do this before multilib kicks in since it will |
553 |
- # alter the CHOST |
554 |
- local cxxabi cxxabi_incs |
555 |
- if use libcxxabi; then |
556 |
- cxxabi=libcxxabi |
557 |
- cxxabi_incs="${EPREFIX}/usr/include/libcxxabi" |
558 |
- else |
559 |
- local gcc_inc="${EPREFIX}/usr/lib/gcc/${CHOST}/$(gcc-fullversion)/include/g++-v$(gcc-major-version)" |
560 |
- cxxabi=libsupc++ |
561 |
- cxxabi_incs="${gcc_inc};${gcc_inc}/${CHOST}" |
562 |
- fi |
563 |
- |
564 |
- multilib-minimal_src_configure |
565 |
-} |
566 |
- |
567 |
-multilib_src_configure() { |
568 |
- # we want -lgcc_s for unwinder, and for compiler runtime when using |
569 |
- # gcc, clang with gcc runtime (or any unknown compiler) |
570 |
- local extra_libs=() want_gcc_s=ON want_compiler_rt=OFF |
571 |
- if use libunwind; then |
572 |
- # work-around missing -lunwind upstream |
573 |
- extra_libs+=( -lunwind ) |
574 |
- # if we're using libunwind and clang with compiler-rt, we want |
575 |
- # to link to compiler-rt instead of -lgcc_s |
576 |
- if tc-is-clang; then |
577 |
- local compiler_rt=$($(tc-getCC) ${CFLAGS} ${CPPFLAGS} \ |
578 |
- ${LDFLAGS} -print-libgcc-file-name) |
579 |
- if [[ ${compiler_rt} == *libclang_rt* ]]; then |
580 |
- want_gcc_s=OFF |
581 |
- want_compiler_rt=ON |
582 |
- extra_libs+=( "${compiler_rt}" ) |
583 |
- fi |
584 |
- fi |
585 |
- elif [[ ${CHOST} == *-darwin* ]] && tc-is-clang; then |
586 |
- # clang-based darwin prefix disables libunwind useflag during |
587 |
- # bootstrap, because libunwind is not in the prefix yet. |
588 |
- # override the default, though, because clang based libcxx |
589 |
- # should never use gcc_s on Darwin. |
590 |
- want_gcc_s=OFF |
591 |
- # compiler_rt is not available in EPREFIX during bootstrap, |
592 |
- # so we cannot link to it yet anyway, so keep the defaults |
593 |
- # of want_compiler_rt=OFF and extra_libs=() |
594 |
- fi |
595 |
- |
596 |
- # bootstrap: cmake is unhappy if compiler can't link to stdlib |
597 |
- local nolib_flags=( -nodefaultlibs -lc ) |
598 |
- if ! test_compiler; then |
599 |
- if test_compiler "${nolib_flags[@]}"; then |
600 |
- local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}" |
601 |
- ewarn "${CXX} seems to lack runtime, trying with ${nolib_flags[*]}" |
602 |
- fi |
603 |
- fi |
604 |
- |
605 |
- local libdir=$(get_libdir) |
606 |
- local mycmakeargs=( |
607 |
- -DLIBCXX_LIBDIR_SUFFIX=${libdir#lib} |
608 |
- -DLIBCXX_ENABLE_SHARED=ON |
609 |
- -DLIBCXX_ENABLE_STATIC=$(usex static-libs) |
610 |
- -DLIBCXX_CXX_ABI=${cxxabi} |
611 |
- -DLIBCXX_CXX_ABI_INCLUDE_PATHS=${cxxabi_incs} |
612 |
- # we're using our own mechanism for generating linker scripts |
613 |
- -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=OFF |
614 |
- -DLIBCXX_HAS_MUSL_LIBC=$(usex elibc_musl) |
615 |
- -DLIBCXX_HAS_GCC_S_LIB=${want_gcc_s} |
616 |
- -DLIBCXX_INCLUDE_TESTS=$(usex test) |
617 |
- -DLIBCXX_USE_COMPILER_RT=${want_compiler_rt} |
618 |
- -DLIBCXX_HAS_ATOMIC_LIB=${want_gcc_s} |
619 |
- -DCMAKE_SHARED_LINKER_FLAGS="${extra_libs[*]} ${LDFLAGS}" |
620 |
- ) |
621 |
- |
622 |
- if use test; then |
623 |
- local clang_path=$(type -P "${CHOST:+${CHOST}-}clang" 2>/dev/null) |
624 |
- [[ -n ${clang_path} ]] || die "Unable to find ${CHOST}-clang for tests" |
625 |
- |
626 |
- mycmakeargs+=( |
627 |
- -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" |
628 |
- -DLLVM_LIT_ARGS="$(get_lit_flags);--param=cxx_under_test=${clang_path}" |
629 |
- -DLIBCXX_LINK_TESTS_WITH_SHARED_LIBCXXABI=ON |
630 |
- -DPython3_EXECUTABLE="${PYTHON}" |
631 |
- ) |
632 |
- fi |
633 |
- cmake_src_configure |
634 |
-} |
635 |
- |
636 |
-multilib_src_test() { |
637 |
- local -x LIT_PRESERVES_TMP=1 |
638 |
- cmake_build check-cxx |
639 |
-} |
640 |
- |
641 |
-# Usage: deps |
642 |
-gen_ldscript() { |
643 |
- local output_format |
644 |
- output_format=$($(tc-getCC) ${CFLAGS} ${LDFLAGS} -Wl,--verbose 2>&1 | sed -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p') |
645 |
- [[ -n ${output_format} ]] && output_format="OUTPUT_FORMAT ( ${output_format} )" |
646 |
- |
647 |
- cat <<-END_LDSCRIPT |
648 |
-/* GNU ld script |
649 |
- Include missing dependencies |
650 |
-*/ |
651 |
-${output_format} |
652 |
-GROUP ( $@ ) |
653 |
-END_LDSCRIPT |
654 |
-} |
655 |
- |
656 |
-gen_static_ldscript() { |
657 |
- local libdir=$(get_libdir) |
658 |
- local cxxabi_lib=$(usex libcxxabi "libc++abi.a" "libsupc++.a") |
659 |
- |
660 |
- # Move it first. |
661 |
- mv "${ED}/usr/${libdir}/libc++.a" "${ED}/usr/${libdir}/libc++_static.a" || die |
662 |
- # Generate libc++.a ldscript for inclusion of its dependencies so that |
663 |
- # clang++ -stdlib=libc++ -static works out of the box. |
664 |
- local deps="libc++_static.a ${cxxabi_lib} $(usex libunwind libunwind.a libgcc_eh.a)" |
665 |
- # On Linux/glibc it does not link without libpthread or libdl. It is |
666 |
- # fine on FreeBSD. |
667 |
- use elibc_glibc && deps+=" libpthread.a libdl.a" |
668 |
- |
669 |
- gen_ldscript "${deps}" > "${ED}/usr/${libdir}/libc++.a" || die |
670 |
-} |
671 |
- |
672 |
-gen_shared_ldscript() { |
673 |
- local libdir=$(get_libdir) |
674 |
- # libsupc++ doesn't have a shared version |
675 |
- local cxxabi_lib=$(usex libcxxabi "libc++abi.so" "libsupc++.a") |
676 |
- |
677 |
- mv "${ED}/usr/${libdir}/libc++.so" "${ED}/usr/${libdir}/libc++_shared.so" || die |
678 |
- local deps="libc++_shared.so ${cxxabi_lib} $(usex libunwind libunwind.so libgcc_s.so)" |
679 |
- |
680 |
- gen_ldscript "${deps}" > "${ED}/usr/${libdir}/libc++.so" || die |
681 |
-} |
682 |
- |
683 |
-multilib_src_install() { |
684 |
- cmake_src_install |
685 |
- if [[ ${CHOST} != *-darwin* ]] ; then |
686 |
- gen_shared_ldscript |
687 |
- use static-libs && gen_static_ldscript |
688 |
- fi |
689 |
-} |
690 |
- |
691 |
-pkg_postinst() { |
692 |
- elog "This package (${PN}) is mainly intended as a replacement for the C++" |
693 |
- elog "standard library when using clang." |
694 |
- elog "To use it, instead of libstdc++, use:" |
695 |
- elog " clang++ -stdlib=libc++" |
696 |
- elog "to compile your C++ programs." |
697 |
-} |