commit:     b0202ef729125c3a82a8d8a53bef64a5523c873d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 13 16:16:01 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jan 13 17:49:51 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0202ef7

dev-debug/lldb: Add 18.0.0_pre20240113 snapshot

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-debug/lldb/Manifest                       |   1 +
 dev-debug/lldb/lldb-18.0.0_pre20240113.ebuild | 115 ++++++++++++++++++++++++++
 2 files changed, 116 insertions(+)

diff --git a/dev-debug/lldb/Manifest b/dev-debug/lldb/Manifest
index 216581af7dd4..8ddfd7e4f2e8 100644
--- a/dev-debug/lldb/Manifest
+++ b/dev-debug/lldb/Manifest
@@ -4,4 +4,5 @@ DIST llvm-project-16.0.6.src.tar.xz 118013488 BLAKE2B 
95192d39cbd2914e5609db3659
 DIST llvm-project-16.0.6.src.tar.xz.sig 566 BLAKE2B 
2060cebd5ed57cb8a86a44238c43dfd4b921649298b10c3d19da308374c1e49869174294e29943c2af459fe06428264e26881d6c1288ebbc48686cc2cf467c7a
 SHA512 
ca249262c7102e0889ec1bdc6f71a3a6f0e7e5d5fbab8abcd6fccd2871e7955eff7af5b055a76006097baf0dfaf2f5069eff3035b3107fc552abdb2481b21447
 DIST llvm-project-17.0.6.src.tar.xz 127838860 BLAKE2B 
d6ede1a9fda8756995c3e0654111941649e15794179641806f18919f1dc68c41ca0cabd5693b5096d05dccc3a391cd20d34af1137bf8af92ed3117a1ce84d1b2
 SHA512 
6d85bf749e0d77553cc215cbfa61cec4ac4f4f652847f56f946b6a892a99a5ea40b6ab8b39a9708a035001f007986941ccf17e4635260a8b0c1fa59e78d41e30
 DIST llvm-project-17.0.6.src.tar.xz.sig 438 BLAKE2B 
186e75b6a0fbfe1e85408589c149e1800fcc47d685b74e4260018e05cd08bc793d1d1197c9c50e177eea941a3d0c65cb0c583ce6dae449099b920adf8a508ef7
 SHA512 
f78c55053a6450625f3e95f52c305110b4468a9854fec75831b65b8d6ceee3c9206ab9e63c4b5fda8be9bd344f72cfbdaae0520ed240abd505e08ebeaa25d340
+DIST llvm-project-8d817f6479a5df874028a8b40fd30aecd3479005.tar.gz 204890108 
BLAKE2B 
8c57c556371b37d00cda753a40f1162e678d89fa40e8f2b90a38aab7e17f9debfb2ebad53a3a95aa530a9e3e2b4b735828e404e576c8f2738370ec41c28badce
 SHA512 
a38ce082ca1b999888ee0a633b94a02258579591e6ce73ba4722eafb9f0610f9624887eca43e4a6ae567c07ffc014f4ea4137e905899407951265d7c93785f18
 DIST llvm-project-a085402ef54379758e6c996dbaedfcb92ad222b5.tar.gz 204569231 
BLAKE2B 
75403225fbe54f0921b279b237a90f1922b16997d1538fa5f225e04451fa2fc4a28e886efb7460ef0c26a3a964f0c57084e331b0736fa223926259c76d873200
 SHA512 
b8c6b0c7c0a4c369ecfa7ac71cf96549a19853e14bdf061b6b54429ce7ed998b236bb9ed3adbd6bf1c70c7e975508f751ebd0031ac2ff474d32216048a1c5f2d

diff --git a/dev-debug/lldb/lldb-18.0.0_pre20240113.ebuild 
b/dev-debug/lldb/lldb-18.0.0_pre20240113.ebuild
new file mode 100644
index 000000000000..55e6b76df4ae
--- /dev/null
+++ b/dev-debug/lldb/lldb-18.0.0_pre20240113.ebuild
@@ -0,0 +1,115 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+inherit cmake llvm llvm.org python-single-r1
+
+DESCRIPTION="The LLVM debugger"
+HOMEPAGE="https://llvm.org/";
+
+LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
+SLOT="0/${LLVM_SOABI}"
+IUSE="+debug +libedit lzma ncurses +python test +xml"
+RESTRICT="test"
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+DEPEND="
+       libedit? ( dev-libs/libedit:0= )
+       lzma? ( app-arch/xz-utils:= )
+       ncurses? ( >=sys-libs/ncurses-5.9-r3:0= )
+       xml? ( dev-libs/libxml2:= )
+       ~sys-devel/clang-${PV}
+       ~sys-devel/llvm-${PV}
+"
+RDEPEND="
+       ${DEPEND}
+       python? (
+               ${PYTHON_DEPS}
+       )
+"
+BDEPEND="
+       ${PYTHON_DEPS}
+       python? (
+               >=dev-lang/swig-3.0.11
+       )
+       test? (
+               $(python_gen_cond_dep "
+                       ~dev-python/lit-${PV}[\${PYTHON_USEDEP}]
+                       dev-python/psutil[\${PYTHON_USEDEP}]
+               ")
+               sys-devel/lld
+       )
+"
+
+LLVM_COMPONENTS=( lldb cmake llvm/utils )
+LLVM_TEST_COMPONENTS=( llvm/lib/Testing/Support third-party )
+llvm.org_set_globals
+
+pkg_setup() {
+       LLVM_MAX_SLOT=${LLVM_MAJOR} llvm_pkg_setup
+       python-single-r1_pkg_setup
+}
+
+src_prepare() {
+       # broken in standalone build
+       # 
https://github.com/llvm/llvm-project/pull/70996#issuecomment-1843275813
+       sed -e '/Debuginfod/d' \
+               -i source/Plugins/SymbolLocator/CMakeLists.txt || die
+
+       llvm.org_src_prepare
+}
+
+src_configure() {
+       # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
+       use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
+
+       local mycmakeargs=(
+               -DLLDB_ENABLE_CURSES=$(usex ncurses)
+               -DLLDB_ENABLE_LIBEDIT=$(usex libedit)
+               -DLLDB_ENABLE_PYTHON=$(usex python)
+               -DLLDB_ENABLE_LUA=OFF
+               -DLLDB_ENABLE_LZMA=$(usex lzma)
+               -DLLDB_ENABLE_LIBXML2=$(usex xml)
+               -DLLVM_ENABLE_TERMINFO=$(usex ncurses)
+
+               -DLLDB_INCLUDE_TESTS=$(usex test)
+
+               -DCLANG_LINK_CLANG_DYLIB=ON
+               # TODO: fix upstream to detect this properly
+               -DHAVE_LIBDL=ON
+               -DHAVE_LIBPTHREAD=ON
+
+               # normally we'd have to set LLVM_ENABLE_TERMINFO, HAVE_TERMINFO
+               # and TERMINFO_LIBS... so just force FindCurses.cmake to use
+               # ncurses with complete library set (including autodetection
+               # of -ltinfo)
+               -DCURSES_NEED_NCURSES=ON
+
+               -DCLANG_RESOURCE_DIR="../../../clang/${LLVM_MAJOR}"
+
+               -DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm"
+               -DPython3_EXECUTABLE="${PYTHON}"
+       )
+       use test && mycmakeargs+=(
+               -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit"
+               -DLLVM_LIT_ARGS="$(get_lit_flags)"
+       )
+
+       cmake_src_configure
+}
+
+src_test() {
+       local -x LIT_PRESERVES_TMP=1
+       cmake_build check-lldb-{shell,unit}
+       # failures + hangs
+       #use python && cmake_build check-lldb-api
+}
+
+src_install() {
+       cmake_src_install
+       find "${D}" -name '*.a' -delete || die
+
+       use python && python_optimize
+}

Reply via email to