1 |
commit: 836ee9d2bd3100212b24b8cb5cd198086d3ecfc3 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 27 08:47:00 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 30 07:34:48 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=836ee9d2 |
7 |
|
8 |
sys-libs/llvm-libunwind: Bump to 14.0.3 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sys-libs/llvm-libunwind/Manifest | 1 + |
13 |
.../llvm-libunwind/llvm-libunwind-14.0.3.ebuild | 122 +++++++++++++++++++++ |
14 |
2 files changed, 123 insertions(+) |
15 |
|
16 |
diff --git a/sys-libs/llvm-libunwind/Manifest b/sys-libs/llvm-libunwind/Manifest |
17 |
index 16cbcf4e4908..e3c7f4055f48 100644 |
18 |
--- a/sys-libs/llvm-libunwind/Manifest |
19 |
+++ b/sys-libs/llvm-libunwind/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST llvm-gentoo-patchset-13.0.1.tar.xz 6288 BLAKE2B 899222b962486e924e4f8a2b574 |
21 |
DIST llvmorg-12.0.1.tar.gz 134259748 BLAKE2B f41de787bc73ff2edfda1b22cc8602be6f65f37dd9e4c8888533cfa8c3ccdcf4f108aaab9de23ab0ab987966eb160f2a553a0bdff99461e71ddd5bfcd086090d SHA512 6eb0dc18e2c25935fabfdfc48b0114be0939158dfdef7b85b395fe2e71042672446af0e68750aae003c9847d10d1f63316fe95d3df738d18f249174292b1b9e1 |
22 |
DIST llvmorg-13.0.1.tar.gz 147290251 BLAKE2B 2a44b012a672501761d0c27c6b3a315b69bfef0cd13b078a7e7d2fccc4a9c8c0f2bee0f164c4271c9106b0a99cb06e8b64986f66253b613336719fb86b82541b SHA512 9a8cb5d11964ba88b7624f19ec861fb28701f23956ea3c92f6ac644332d5f41fde97bd8933dd3ee70ed378058c252fa3a3887c8d1af90d219970c2b27691166f |
23 |
DIST llvmorg-14.0.1.tar.gz 158074615 BLAKE2B bf80366461580058494eb101646efcd1a8b55a66818a710c2eb8c649bf88c02fe4552cecf4c1c8637a64e7cee8d644bca31aafc804765ed18f2b5e2975dd6c92 SHA512 0a15aa9cfc978a7b03a1659a2affad65ede66d280f5c12bf0beaaf194cd7bdd57ff438b5f40e64c1e1b88f368de99be349e9d30b544d2bbe4a50f0ebed3307f2 |
24 |
+DIST llvmorg-14.0.3.tar.gz 158092596 BLAKE2B ef901df510ec6bc1242595ec330e9c9ee76e696b077d67a8d62b53608c3d18b2f2d7ea3150864e13d9b37a8ce899ebca946ebe72cbc4538700176e20859ddec2 SHA512 511e93fd9b1c414c38fe9e2649679ac0b16cb04f7f7838569d187b04c542a185e364d6db73e96465026e3b2533649eb75ac95507d12514af32b28bdfb66f2646 |
25 |
|
26 |
diff --git a/sys-libs/llvm-libunwind/llvm-libunwind-14.0.3.ebuild b/sys-libs/llvm-libunwind/llvm-libunwind-14.0.3.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..b1b3c2dc140d |
29 |
--- /dev/null |
30 |
+++ b/sys-libs/llvm-libunwind/llvm-libunwind-14.0.3.ebuild |
31 |
@@ -0,0 +1,122 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+CMAKE_ECLASS=cmake |
38 |
+PYTHON_COMPAT=( python3_{8..10} ) |
39 |
+inherit cmake-multilib llvm llvm.org python-any-r1 toolchain-funcs |
40 |
+ |
41 |
+DESCRIPTION="C++ runtime stack unwinder from LLVM" |
42 |
+HOMEPAGE="https://github.com/llvm-mirror/libunwind" |
43 |
+ |
44 |
+LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" |
47 |
+IUSE="debug static-libs test" |
48 |
+RESTRICT="!test? ( test )" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ !sys-libs/libunwind |
52 |
+" |
53 |
+# llvm-6 for new lit options |
54 |
+DEPEND=" |
55 |
+ >=sys-devel/llvm-6 |
56 |
+" |
57 |
+BDEPEND=" |
58 |
+ !test? ( |
59 |
+ ${PYTHON_DEPS} |
60 |
+ ) |
61 |
+ test? ( |
62 |
+ >=sys-devel/clang-3.9.0 |
63 |
+ $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') |
64 |
+ ) |
65 |
+" |
66 |
+ |
67 |
+LLVM_COMPONENTS=( runtimes libunwind libcxx llvm/cmake cmake ) |
68 |
+LLVM_TEST_COMPONENTS=( libcxxabi llvm/utils/llvm-lit ) |
69 |
+llvm.org_set_globals |
70 |
+ |
71 |
+python_check_deps() { |
72 |
+ use test || return 0 |
73 |
+ has_version "dev-python/lit[${PYTHON_USEDEP}]" |
74 |
+} |
75 |
+ |
76 |
+multilib_src_configure() { |
77 |
+ local use_compiler_rt=OFF |
78 |
+ local libdir=$(get_libdir) |
79 |
+ |
80 |
+ # link to compiler-rt |
81 |
+ # https://github.com/gentoo/gentoo/pull/21516 |
82 |
+ if tc-is-clang; then |
83 |
+ local compiler_rt=$($(tc-getCC) ${CFLAGS} ${CPPFLAGS} \ |
84 |
+ ${LD_FLAGS} -print-libgcc-file-name) |
85 |
+ if [[ ${compiler_rt} == *libclang_rt* ]]; then |
86 |
+ use_compiler_rt=ON |
87 |
+ fi |
88 |
+ fi |
89 |
+ |
90 |
+ local mycmakeargs=( |
91 |
+ -DPython3_EXECUTABLE="${PYTHON}" |
92 |
+ -DLLVM_ENABLE_RUNTIMES="libunwind" |
93 |
+ -DLLVM_LIBDIR_SUFFIX=${libdir#lib} |
94 |
+ -DLLVM_INCLUDE_TESTS=OFF |
95 |
+ -DLIBUNWIND_ENABLE_ASSERTIONS=$(usex debug) |
96 |
+ -DLIBUNWIND_ENABLE_STATIC=$(usex static-libs) |
97 |
+ -DLIBUNWIND_INCLUDE_TESTS=$(usex test) |
98 |
+ -DLIBUNWIND_INSTALL_HEADERS=ON |
99 |
+ -DLIBUNWIND_TARGET_TRIPLE="${CHOST}" |
100 |
+ |
101 |
+ # support non-native unwinding; given it's small enough, |
102 |
+ # enable it unconditionally |
103 |
+ -DLIBUNWIND_ENABLE_CROSS_UNWINDING=ON |
104 |
+ |
105 |
+ # avoid dependency on libgcc_s if compiler-rt is used |
106 |
+ -DLIBUNWIND_USE_COMPILER_RT=${use_compiler_rt} |
107 |
+ ) |
108 |
+ if use test; then |
109 |
+ mycmakeargs+=( |
110 |
+ -DLLVM_ENABLE_RUNTIMES="libunwind;libcxxabi;libcxx" |
111 |
+ -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" |
112 |
+ -DLLVM_LIT_ARGS="$(get_lit_flags)" |
113 |
+ -DLIBUNWIND_LIBCXX_PATH="${WORKDIR}/libcxx" |
114 |
+ |
115 |
+ -DLIBCXXABI_LIBDIR_SUFFIX= |
116 |
+ -DLIBCXXABI_ENABLE_SHARED=OFF |
117 |
+ -DLIBCXXABI_ENABLE_STATIC=ON |
118 |
+ -DLIBCXXABI_USE_LLVM_UNWINDER=ON |
119 |
+ -DLIBCXXABI_INCLUDE_TESTS=OFF |
120 |
+ |
121 |
+ -DLIBCXX_LIBDIR_SUFFIX= |
122 |
+ -DLIBCXX_ENABLE_SHARED=OFF |
123 |
+ -DLIBCXX_ENABLE_STATIC=ON |
124 |
+ -DLIBCXX_ENABLE_EXPERIMENTAL_LIBRARY=OFF |
125 |
+ -DLIBCXX_CXX_ABI=libcxxabi |
126 |
+ -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=OFF |
127 |
+ -DLIBCXX_HAS_MUSL_LIBC=$(usex elibc_musl) |
128 |
+ -DLIBCXX_HAS_GCC_S_LIB=OFF |
129 |
+ -DLIBCXX_INCLUDE_TESTS=OFF |
130 |
+ -DLIBCXX_INCLUDE_BENCHMARKS=OFF |
131 |
+ ) |
132 |
+ fi |
133 |
+ |
134 |
+ cmake_src_configure |
135 |
+ |
136 |
+ if use test; then |
137 |
+ local clang_path=$(type -P "${CHOST:+${CHOST}-}clang" 2>/dev/null) |
138 |
+ [[ -n ${clang_path} ]] || die "Unable to find ${CHOST}-clang for tests" |
139 |
+ |
140 |
+ # meh, we need to override the compiler explicitly |
141 |
+ sed -e "/%{cxx}/s@, '.*'@, '${clang_path}'@" \ |
142 |
+ -i "${BUILD_DIR}"/libunwind/test/lit.site.cfg || die |
143 |
+ fi |
144 |
+} |
145 |
+ |
146 |
+multilib_src_test() { |
147 |
+ local -x LIT_PRESERVES_TMP=1 |
148 |
+ cmake_build check-unwind |
149 |
+} |
150 |
+ |
151 |
+multilib_src_install() { |
152 |
+ DESTDIR=${D} cmake_build install-unwind |
153 |
+} |