commit:     23d88d75bca4270e162dbfbf84878a77c5535a75
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  4 13:50:57 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Feb  4 14:47:10 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23d88d75

dev-debug/lldb: Add USE=debuginfod to expose transitive deps

Add USE=debuginfod to expose the transitive dependencies
on dev-cpp/cpp-httplib and net-misc/curl from sys-devel/llvm.  Static
linking is such a great idea, right?

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

 dev-debug/lldb/lldb-18.1.0_rc1.ebuild         | 8 ++++++--
 dev-debug/lldb/lldb-19.0.0.9999.ebuild        | 8 ++++++--
 dev-debug/lldb/lldb-19.0.0_pre20240203.ebuild | 8 ++++++--
 dev-debug/lldb/metadata.xml                   | 7 +++++++
 4 files changed, 25 insertions(+), 6 deletions(-)

diff --git a/dev-debug/lldb/lldb-18.1.0_rc1.ebuild 
b/dev-debug/lldb/lldb-18.1.0_rc1.ebuild
index caf23a9a38ee..eb67407b87fc 100644
--- a/dev-debug/lldb/lldb-18.1.0_rc1.ebuild
+++ b/dev-debug/lldb/lldb-18.1.0_rc1.ebuild
@@ -11,17 +11,21 @@ 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"
+IUSE="+debug debuginfod +libedit lzma ncurses +python test +xml"
 RESTRICT="test"
 REQUIRED_USE=${PYTHON_REQUIRED_USE}
 
 DEPEND="
+       debuginfod? (
+               net-misc/curl:=
+               dev-cpp/cpp-httplib:=
+       )
        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}
+       ~sys-devel/llvm-${PV}[debuginfod=]
 "
 RDEPEND="
        ${DEPEND}

diff --git a/dev-debug/lldb/lldb-19.0.0.9999.ebuild 
b/dev-debug/lldb/lldb-19.0.0.9999.ebuild
index caf23a9a38ee..eb67407b87fc 100644
--- a/dev-debug/lldb/lldb-19.0.0.9999.ebuild
+++ b/dev-debug/lldb/lldb-19.0.0.9999.ebuild
@@ -11,17 +11,21 @@ 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"
+IUSE="+debug debuginfod +libedit lzma ncurses +python test +xml"
 RESTRICT="test"
 REQUIRED_USE=${PYTHON_REQUIRED_USE}
 
 DEPEND="
+       debuginfod? (
+               net-misc/curl:=
+               dev-cpp/cpp-httplib:=
+       )
        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}
+       ~sys-devel/llvm-${PV}[debuginfod=]
 "
 RDEPEND="
        ${DEPEND}

diff --git a/dev-debug/lldb/lldb-19.0.0_pre20240203.ebuild 
b/dev-debug/lldb/lldb-19.0.0_pre20240203.ebuild
index caf23a9a38ee..eb67407b87fc 100644
--- a/dev-debug/lldb/lldb-19.0.0_pre20240203.ebuild
+++ b/dev-debug/lldb/lldb-19.0.0_pre20240203.ebuild
@@ -11,17 +11,21 @@ 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"
+IUSE="+debug debuginfod +libedit lzma ncurses +python test +xml"
 RESTRICT="test"
 REQUIRED_USE=${PYTHON_REQUIRED_USE}
 
 DEPEND="
+       debuginfod? (
+               net-misc/curl:=
+               dev-cpp/cpp-httplib:=
+       )
        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}
+       ~sys-devel/llvm-${PV}[debuginfod=]
 "
 RDEPEND="
        ${DEPEND}

diff --git a/dev-debug/lldb/metadata.xml b/dev-debug/lldb/metadata.xml
index 072910296ca3..964390cac7fe 100644
--- a/dev-debug/lldb/metadata.xml
+++ b/dev-debug/lldb/metadata.xml
@@ -7,4 +7,11 @@
        <upstream>
                <remote-id type="github">llvm/llvm-project</remote-id>
        </upstream>
+       <use>
+               <flag name="debuginfod">
+                       Expose the transitive dependencies on 
<pkg>net-misc/curl</pkg>
+                       and <pkg>dev-cpp/cpp-httplib</pkg>) to match
+                       <pkg>sys-devel/llvm</pkg>.
+               </flag>
+       </use>
 </pkgmetadata>

Reply via email to