1 |
commit: 664da4b51c499b8b9b349cc5744f1e6579f44bf7 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 2 19:55:14 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 3 14:49:54 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=664da4b5 |
7 |
|
8 |
dev-util/lldb: Bump to 15.0.4 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-util/lldb/Manifest | 3 + |
13 |
dev-util/lldb/lldb-15.0.4.ebuild | 116 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 119 insertions(+) |
15 |
|
16 |
diff --git a/dev-util/lldb/Manifest b/dev-util/lldb/Manifest |
17 |
index dcf3211a5ba1..220b0cbac58e 100644 |
18 |
--- a/dev-util/lldb/Manifest |
19 |
+++ b/dev-util/lldb/Manifest |
20 |
@@ -1,8 +1,11 @@ |
21 |
+DIST llvm-gentoo-patchset-15.0.4.tar.xz 16972 BLAKE2B 39cf8a7112d05e50bab8fd54b7559b5bbb4698d9c1adf97f9b4ef93b37d1c342a1e6fd0e85633369f049c9cbf930b50debb2e476c9a348c53943378a0f77d892 SHA512 a99a31dd6db384a3a896d101e148acb028c837bbc9c4b0239606fd6ef0f365312721eb6b209747024c264c2a9dcf81ee7f1cd1a9f372a7ac741a2456d8356e62 |
22 |
DIST llvm-gentoo-patchset-16.0.0_pre20221023.tar.xz 5876 BLAKE2B 496f2db3dd9b4c8d3a87bb098f0c995124c594a24095abc351ba3f13652ff2ee7a988dfb49652ab7780a5107f16509f56531375ab46f330797b0df562b6541d8 SHA512 518aca413537ce2e1aee8252692bc008e520c94fccc6c1b4a106decd4042cf21bbae95e3520a0c76cb7be81ad7a6a705734117ecaa254725dbc1f597f8ec6172 |
23 |
DIST llvm-project-14.0.6.src.tar.xz 105618228 BLAKE2B ee67c5407df8cef493b9c0004f15e428f22a536a17e5f4e3eb29a003b8a8ec0abe0fa3e072591161d5f30ef7d8867c1ce34d1b341ad858e93c00263499941a99 SHA512 6fc6eeb60fac698702d1aac495fc0161eb7216a1f8db2020af8fccec5837831f7cc20dc2a169bf4f0b5f520748280b4a86621f3697d622aa58faaa45dbfaad13 |
24 |
DIST llvm-project-14.0.6.src.tar.xz.sig 566 BLAKE2B cb658ad43d8ab6c43a5773aedadf0569c97b5ee4b1bd58eceb10e1879a30880c741c3d66bedd462c892309b688fb7b2673115a62d1f74d71ee375a578de9547f SHA512 b4a7b368532a7a4a24376cfa7db8f6d3478f6d4446474342fc00b474ecf466330cd0f16783209263c4c72d5fc7ddedfb11b95578842e700cfb7ee0bb34cc95d6 |
25 |
DIST llvm-project-14f996dca8a2b5b17d6917528bfd9ee71ba6192a.tar.gz 169054148 BLAKE2B a23af6658a6ea8a7cb4272faef151937da229e39383ec068d7ef81e72a25d2a46dc2a86255a7f1148b7385b339d1c17e62f627df834d8eccc39be8921575f88d SHA512 e719d296016e7af718d022424c337a5df8d7124fdb49b9f219ab2a5dc592e6a59f6c09064775ea9349bcf4eed9d72214abb648de649ab872174c35635c945c04 |
26 |
DIST llvm-project-15.0.3.src.tar.xz 112069972 BLAKE2B 3d29bab890467ba87fedcc4e76522f444e63e3dfbe546793f8e67821bcd403bad460ea176254c9e0b72d60ea56b8480e498a7f610477c1108732d178804c26cd SHA512 d378d417f01c56534f301cfe6cb4958d811c04ae22acaacc917e7e5f0380859d40ce19dffb265d046b70fff95dbc2e759f492e4d5af0ade52f21ebaa8da65856 |
27 |
DIST llvm-project-15.0.3.src.tar.xz.sig 438 BLAKE2B e7e0614e144eb878f694c12e97cf42ff8476e47cb55e8f259eb2ec52e303463ad753771271512e89baf0137c1382b11cfa028c85324174ebcd054a124000f537 SHA512 41229bebdb0c2df9a5e3a4d6f02d39fac7dc91f21895a659523beab4fa3ef99ff06eff5e4386221369b6e2b6f8fe974d67b7d8496d5911ce484d09ae0db8b916 |
28 |
+DIST llvm-project-15.0.4.src.tar.xz 110936424 BLAKE2B a02b76ad161e352b4d3d84baffdada9c6a0e704de7a2c4017df4d4d05a9e9d02113791cd7d91c3edfa1f5bcb7ab95e1772d60f7061514928c6828600f41a8322 SHA512 9d5b664dd77c08130601636f9d6c006b257f369470ce823aa56d06698a9f0edfec42f2c90da934b9ad52c4d7960d9a024ea46dc9640275be6d191b1ba9869459 |
29 |
+DIST llvm-project-15.0.4.src.tar.xz.sig 566 BLAKE2B f1a7be65fcce932dc125ae2b498f68a14e68dad0d7a1e031343c52c5dafb7b123e346f3efa50a7693584361abf01efe9401b1b5781dee6b92dc1045e538e9b7b SHA512 35899ffbd13fc44cade54246a423450571cb4b62b8d706864daa3eef2377c48e24ef3113218e39e29de995b7f7fa307f9187552766576c9050fd924beb517f6e |
30 |
DIST llvm-project-b34ea582774c057d9bf5591174d683fd3d8aa02b.tar.gz 169735900 BLAKE2B d3a82a07f855b038071fc8eb3f41a88b4c220a577219985ecddeb9a535ea8b159dbad575699997d90a49db74c074b5f4354ad707e91d6934daaa7319e0d8ee9b SHA512 3f5525c7d893bdac701cff4cf82dafc31608920d788d9b7401654f320b2432528cf4ae8ef013182807b3dc0c5b758c71f1efeedb672dd47fdb8aa6f434dfb583 |
31 |
DIST llvmorg-13.0.1.tar.gz 147290251 BLAKE2B 2a44b012a672501761d0c27c6b3a315b69bfef0cd13b078a7e7d2fccc4a9c8c0f2bee0f164c4271c9106b0a99cb06e8b64986f66253b613336719fb86b82541b SHA512 9a8cb5d11964ba88b7624f19ec861fb28701f23956ea3c92f6ac644332d5f41fde97bd8933dd3ee70ed378058c252fa3a3887c8d1af90d219970c2b27691166f |
32 |
|
33 |
diff --git a/dev-util/lldb/lldb-15.0.4.ebuild b/dev-util/lldb/lldb-15.0.4.ebuild |
34 |
new file mode 100644 |
35 |
index 000000000000..ac755ba28f74 |
36 |
--- /dev/null |
37 |
+++ b/dev-util/lldb/lldb-15.0.4.ebuild |
38 |
@@ -0,0 +1,116 @@ |
39 |
+# Copyright 1999-2022 Gentoo Authors |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+ |
42 |
+EAPI=8 |
43 |
+ |
44 |
+PYTHON_COMPAT=( python3_{8..11} ) |
45 |
+inherit cmake llvm llvm.org python-single-r1 |
46 |
+ |
47 |
+DESCRIPTION="The LLVM debugger" |
48 |
+HOMEPAGE="https://llvm.org/" |
49 |
+ |
50 |
+LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" |
51 |
+SLOT="0/${LLVM_SOABI}" |
52 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
53 |
+IUSE="debug +libedit lzma ncurses +python test +xml" |
54 |
+RESTRICT="test" |
55 |
+REQUIRED_USE=${PYTHON_REQUIRED_USE} |
56 |
+ |
57 |
+DEPEND=" |
58 |
+ libedit? ( dev-libs/libedit:0= ) |
59 |
+ lzma? ( app-arch/xz-utils:= ) |
60 |
+ ncurses? ( >=sys-libs/ncurses-5.9-r3:0= ) |
61 |
+ xml? ( dev-libs/libxml2:= ) |
62 |
+ ~sys-devel/clang-${PV} |
63 |
+ ~sys-devel/llvm-${PV} |
64 |
+" |
65 |
+RDEPEND=" |
66 |
+ ${DEPEND} |
67 |
+ python? ( |
68 |
+ $(python_gen_cond_dep ' |
69 |
+ dev-python/six[${PYTHON_USEDEP}] |
70 |
+ ') |
71 |
+ ${PYTHON_DEPS} |
72 |
+ ) |
73 |
+" |
74 |
+BDEPEND=" |
75 |
+ ${PYTHON_DEPS} |
76 |
+ >=dev-util/cmake-3.16 |
77 |
+ python? ( |
78 |
+ >=dev-lang/swig-3.0.11 |
79 |
+ $(python_gen_cond_dep ' |
80 |
+ dev-python/six[${PYTHON_USEDEP}] |
81 |
+ ') |
82 |
+ ) |
83 |
+ test? ( |
84 |
+ $(python_gen_cond_dep " |
85 |
+ ~dev-python/lit-${PV}[\${PYTHON_USEDEP}] |
86 |
+ dev-python/psutil[\${PYTHON_USEDEP}] |
87 |
+ ") |
88 |
+ sys-devel/lld |
89 |
+ ) |
90 |
+" |
91 |
+ |
92 |
+LLVM_COMPONENTS=( lldb cmake ) |
93 |
+LLVM_TEST_COMPONENTS=( llvm/lib/Testing/Support llvm/utils/unittest ) |
94 |
+LLVM_PATCHSET=${PV} |
95 |
+llvm.org_set_globals |
96 |
+ |
97 |
+pkg_setup() { |
98 |
+ LLVM_MAX_SLOT=${LLVM_MAJOR} llvm_pkg_setup |
99 |
+ python-single-r1_pkg_setup |
100 |
+} |
101 |
+ |
102 |
+src_configure() { |
103 |
+ # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 |
104 |
+ use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" |
105 |
+ |
106 |
+ local mycmakeargs=( |
107 |
+ -DLLDB_ENABLE_CURSES=$(usex ncurses) |
108 |
+ -DLLDB_ENABLE_LIBEDIT=$(usex libedit) |
109 |
+ -DLLDB_ENABLE_PYTHON=$(usex python) |
110 |
+ -DLLDB_ENABLE_LZMA=$(usex lzma) |
111 |
+ -DLLDB_ENABLE_LIBXML2=$(usex xml) |
112 |
+ -DLLDB_USE_SYSTEM_SIX=1 |
113 |
+ -DLLVM_ENABLE_TERMINFO=$(usex ncurses) |
114 |
+ |
115 |
+ -DLLDB_INCLUDE_TESTS=$(usex test) |
116 |
+ |
117 |
+ -DCLANG_LINK_CLANG_DYLIB=ON |
118 |
+ # TODO: fix upstream to detect this properly |
119 |
+ -DHAVE_LIBDL=ON |
120 |
+ -DHAVE_LIBPTHREAD=ON |
121 |
+ |
122 |
+ # normally we'd have to set LLVM_ENABLE_TERMINFO, HAVE_TERMINFO |
123 |
+ # and TERMINFO_LIBS... so just force FindCurses.cmake to use |
124 |
+ # ncurses with complete library set (including autodetection |
125 |
+ # of -ltinfo) |
126 |
+ -DCURSES_NEED_NCURSES=ON |
127 |
+ |
128 |
+ -DLLDB_EXTERNAL_CLANG_RESOURCE_DIR="${BROOT}/usr/lib/clang/${LLVM_VERSION}" |
129 |
+ |
130 |
+ -DPython3_EXECUTABLE="${PYTHON}" |
131 |
+ ) |
132 |
+ use test && mycmakeargs+=( |
133 |
+ -DLLVM_BUILD_TESTS=$(usex test) |
134 |
+ -DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm" |
135 |
+ -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" |
136 |
+ -DLLVM_LIT_ARGS="$(get_lit_flags)" |
137 |
+ ) |
138 |
+ |
139 |
+ cmake_src_configure |
140 |
+} |
141 |
+ |
142 |
+src_test() { |
143 |
+ local -x LIT_PRESERVES_TMP=1 |
144 |
+ cmake_build check-lldb-{shell,unit} |
145 |
+ # failures + hangs |
146 |
+ #use python && cmake_build check-lldb-api |
147 |
+} |
148 |
+ |
149 |
+src_install() { |
150 |
+ cmake_src_install |
151 |
+ find "${D}" -name '*.a' -delete || die |
152 |
+ |
153 |
+ use python && python_optimize |
154 |
+} |