1 |
commit: a2d6d4b7bf417d6386f16750aafc25e81a3f9dd9 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 1 08:53:42 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 1 16:17:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2d6d4b7 |
7 |
|
8 |
sys-libs/libcxxabi: Bump to 12.0.0-rc4 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sys-libs/libcxxabi/Manifest | 1 + |
13 |
sys-libs/libcxxabi/libcxxabi-12.0.0_rc4.ebuild | 122 +++++++++++++++++++++++++ |
14 |
2 files changed, 123 insertions(+) |
15 |
|
16 |
diff --git a/sys-libs/libcxxabi/Manifest b/sys-libs/libcxxabi/Manifest |
17 |
index 9f09664b63b..61b8e259f34 100644 |
18 |
--- a/sys-libs/libcxxabi/Manifest |
19 |
+++ b/sys-libs/libcxxabi/Manifest |
20 |
@@ -4,3 +4,4 @@ DIST llvmorg-11.0.1.tar.gz 122790338 BLAKE2B 0130996b4a8c4d9f757136fd7fb318068c9 |
21 |
DIST llvmorg-11.1.0.tar.gz 122776532 BLAKE2B ca842ff4afff8f44c82b5e7383962a9c45ca1c93b64fa4c6ebcd70a1d3849dbad2b8e4e24fba02d144c6266d7fab3607ebc6999b28c229cb35256cf40f26a985 SHA512 9a8ce022a935eed42fa71a224f2a207122aadcbef58ee855fdb4825f879e7d028e4dcff22c19b9d336db1c8bf63fb84372d44981acf84615f757e54306c92b81 |
22 |
DIST llvmorg-12.0.0-rc2.tar.gz 134242619 BLAKE2B bb741a311db608fc2ba7eeaab71c5c9f2a430f7fee3f0c5c4334e5c14caa19738d18c87b568de963d57d9b53e808ac412cf8554eca7fcae9ecca65aa4442e197 SHA512 d8f9b3dfeb0fe9b91eb7f49da393784333044db2653373fbb168afd3c8d50f3e3ec7a7b8f44df522d0facafbfe4cfc4d9e2906d19f1e6feb0bdc569b6c10a17d |
23 |
DIST llvmorg-12.0.0-rc3.tar.gz 134244008 BLAKE2B ed09aa361b264387711ba1ee2e4b01c0c78ad97391df95e2542d4edc31f657cc33c8a2a45de63eb421908d5dadd9392a736610fbb04b3ecbd336d6514a649da8 SHA512 1fae53c6f255160cf4be53848b8b92c8b162ddcfbddf1bf0017faf249859040c15c862c4b52bc3ba894149139afb814e0674da88793ddebfc0756ba3aa7626ce |
24 |
+DIST llvmorg-12.0.0-rc4.tar.gz 134245842 BLAKE2B 860a0551a42e2c6a28f213c151076c5ae64a9d85f7bfb2e2df4737acd5fe968f29d368a689d9a857e01038587e872722d216f044b3f665857d7ed71122fe334e SHA512 20e4440664227c9ea7af84df3643599cd7c96f5e2b6404c42be0ce0f0d7f989f5c7b8df1f1ba93d1473d3a30325cda5a53d3900c0229ccb042b365583b5aa846 |
25 |
|
26 |
diff --git a/sys-libs/libcxxabi/libcxxabi-12.0.0_rc4.ebuild b/sys-libs/libcxxabi/libcxxabi-12.0.0_rc4.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..8c24d969111 |
29 |
--- /dev/null |
30 |
+++ b/sys-libs/libcxxabi/libcxxabi-12.0.0_rc4.ebuild |
31 |
@@ -0,0 +1,122 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+CMAKE_ECLASS=cmake |
38 |
+PYTHON_COMPAT=( python3_{7..9} ) |
39 |
+inherit cmake-multilib llvm llvm.org python-any-r1 toolchain-funcs |
40 |
+ |
41 |
+DESCRIPTION="Low level support for a standard C++ library" |
42 |
+HOMEPAGE="https://libcxxabi.llvm.org/" |
43 |
+ |
44 |
+LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="" |
47 |
+IUSE="+libunwind static-libs test elibc_musl" |
48 |
+RESTRICT="!test? ( test )" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ libunwind? ( |
52 |
+ || ( |
53 |
+ >=sys-libs/libunwind-1.0.1-r1[static-libs?,${MULTILIB_USEDEP}] |
54 |
+ >=sys-libs/llvm-libunwind-3.9.0-r1[static-libs?,${MULTILIB_USEDEP}] |
55 |
+ ) |
56 |
+ )" |
57 |
+# llvm-6 for new lit options |
58 |
+DEPEND="${RDEPEND} |
59 |
+ >=sys-devel/llvm-6" |
60 |
+BDEPEND=" |
61 |
+ test? ( >=sys-devel/clang-3.9.0 |
62 |
+ $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') |
63 |
+ )" |
64 |
+ |
65 |
+# libcxx is needed uncondtionally for the headers |
66 |
+LLVM_COMPONENTS=( libcxx{abi,} llvm/cmake/modules ) |
67 |
+llvm.org_set_globals |
68 |
+ |
69 |
+python_check_deps() { |
70 |
+ has_version "dev-python/lit[${PYTHON_USEDEP}]" |
71 |
+} |
72 |
+ |
73 |
+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 |
+multilib_src_configure() { |
83 |
+ # link against compiler-rt instead of libgcc if we are using clang with libunwind |
84 |
+ local want_compiler_rt=OFF |
85 |
+ if use libunwind && tc-is-clang; then |
86 |
+ local compiler_rt=$($(tc-getCC) ${CFLAGS} ${CPPFLAGS} \ |
87 |
+ ${LDFLAGS} -print-libgcc-file-name) |
88 |
+ if [[ ${compiler_rt} == *libclang_rt* ]]; then |
89 |
+ want_compiler_rt=ON |
90 |
+ fi |
91 |
+ fi |
92 |
+ |
93 |
+ local libdir=$(get_libdir) |
94 |
+ local mycmakeargs=( |
95 |
+ -DLIBCXXABI_LIBDIR_SUFFIX=${libdir#lib} |
96 |
+ -DLIBCXXABI_ENABLE_SHARED=ON |
97 |
+ -DLIBCXXABI_ENABLE_STATIC=$(usex static-libs) |
98 |
+ -DLIBCXXABI_USE_LLVM_UNWINDER=$(usex libunwind) |
99 |
+ -DLIBCXXABI_INCLUDE_TESTS=$(usex test) |
100 |
+ -DLIBCXXABI_USE_COMPILER_RT=${want_compiler_rt} |
101 |
+ |
102 |
+ -DLIBCXXABI_LIBCXX_INCLUDES="${WORKDIR}"/libcxx/include |
103 |
+ # upstream is omitting standard search path for this |
104 |
+ # probably because gcc & clang are bundling their own unwind.h |
105 |
+ -DLIBCXXABI_LIBUNWIND_INCLUDES="${EPREFIX}"/usr/include |
106 |
+ ) |
107 |
+ if use test; then |
108 |
+ local clang_path=$(type -P "${CHOST:+${CHOST}-}clang" 2>/dev/null) |
109 |
+ [[ -n ${clang_path} ]] || die "Unable to find ${CHOST}-clang for tests" |
110 |
+ |
111 |
+ mycmakeargs+=( |
112 |
+ -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" |
113 |
+ -DLLVM_LIT_ARGS="$(get_lit_flags);--param=cxx_under_test=${clang_path}" |
114 |
+ -DPython3_EXECUTABLE="${PYTHON}" |
115 |
+ ) |
116 |
+ fi |
117 |
+ cmake_src_configure |
118 |
+} |
119 |
+ |
120 |
+build_libcxx() { |
121 |
+ local -x LDFLAGS="${LDFLAGS} -L${BUILD_DIR}/$(get_libdir)" |
122 |
+ local CMAKE_USE_DIR=${WORKDIR}/libcxx |
123 |
+ local BUILD_DIR=${BUILD_DIR}/libcxx |
124 |
+ local mycmakeargs=( |
125 |
+ -DLIBCXX_LIBDIR_SUFFIX= |
126 |
+ -DLIBCXX_ENABLE_SHARED=OFF |
127 |
+ -DLIBCXX_ENABLE_STATIC=ON |
128 |
+ -DLIBCXX_ENABLE_EXPERIMENTAL_LIBRARY=OFF |
129 |
+ -DLIBCXX_CXX_ABI=libcxxabi |
130 |
+ -DLIBCXX_CXX_ABI_INCLUDE_PATHS="${S}"/include |
131 |
+ -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=OFF |
132 |
+ -DLIBCXX_HAS_MUSL_LIBC=$(usex elibc_musl) |
133 |
+ -DLIBCXX_HAS_GCC_S_LIB=OFF |
134 |
+ -DLIBCXX_INCLUDE_TESTS=OFF |
135 |
+ ) |
136 |
+ |
137 |
+ cmake_src_configure |
138 |
+ cmake_src_compile |
139 |
+} |
140 |
+ |
141 |
+multilib_src_test() { |
142 |
+ # build a local copy of libc++ for testing to avoid circular dep |
143 |
+ build_libcxx |
144 |
+ mv "${BUILD_DIR}"/libcxx/lib/libc++* "${BUILD_DIR}/$(get_libdir)/" || die |
145 |
+ |
146 |
+ local -x LIT_PRESERVES_TMP=1 |
147 |
+ cmake_build check-cxxabi |
148 |
+} |
149 |
+ |
150 |
+multilib_src_install_all() { |
151 |
+ insinto /usr/include/libcxxabi |
152 |
+ doins -r include/. |
153 |
+} |