public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-debug/systemtap/
Date: Fri, 30 Aug 2024 18:10:09 +0000 (UTC)	[thread overview]
Message-ID: <1725041391.efb3a82e3496d3a52a1d04d4cbdb83b25655d96a.sam@gentoo> (raw)

commit:     efb3a82e3496d3a52a1d04d4cbdb83b25655d96a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 30 18:04:29 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Aug 30 18:09:51 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efb3a82e

dev-debug/systemtap: conditionally install /usr/bin/dtrace

systemtap provides a 'dtrace' script at /usr/bin/dtrace which obviously
clashes with dev-debug/dtrace. The reasons for this are complicated,
but this 'dtrace' is only used by some packages for userspace probes.

The plan, for now, is:
* to modify packages to look for stap-dtrace instead;
* users can set USE=dtrace-symlink to get systemtap to install /usr/bin/dtrace
  again to build applications locally or as a workaround for unported applications/scripts;
* contact systemtap upstream about renaming it and providing a symlink
  conditionally as we are, and providing a pkgconfig var for getting the
  name

Bug: https://bugs.gentoo.org/938302
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-debug/systemtap/metadata.xml                             |  4 ++++
 .../{systemtap-9999.ebuild => systemtap-5.1-r1.ebuild}       | 12 +++++++++---
 dev-debug/systemtap/systemtap-9999.ebuild                    |  9 ++++++++-
 3 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/dev-debug/systemtap/metadata.xml b/dev-debug/systemtap/metadata.xml
index ef6a9e2cd046..eb938ea4fd71 100644
--- a/dev-debug/systemtap/metadata.xml
+++ b/dev-debug/systemtap/metadata.xml
@@ -6,6 +6,10 @@
 </maintainer>
   <use>
     <flag name="debuginfod">Enable debuginfod support via <pkg>dev-libs/elfutils</pkg> libdebuginfod</flag>
+    <flag name="dtrace-symlink">
+        Provide /usr/bin/dtrace symlink pointing to /usr/bin/stap-dtrace.
+        This prevents coinstallation with <pkg>dev-debug/dtrace</pkg>.
+    </flag>
     <flag name="libvirt">Support probing of libvirt domains.</flag>
   </use>
 </pkgmetadata>

diff --git a/dev-debug/systemtap/systemtap-9999.ebuild b/dev-debug/systemtap/systemtap-5.1-r1.ebuild
similarity index 93%
copy from dev-debug/systemtap/systemtap-9999.ebuild
copy to dev-debug/systemtap/systemtap-5.1-r1.ebuild
index 94c53a3d0f1f..06b3b67bd81b 100644
--- a/dev-debug/systemtap/systemtap-9999.ebuild
+++ b/dev-debug/systemtap/systemtap-5.1-r1.ebuild
@@ -19,7 +19,7 @@ fi
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="debuginfod libvirt selinux sqlite +ssl test zeroconf"
+IUSE="debuginfod dtrace-symlink libvirt selinux sqlite +ssl test zeroconf"
 
 CDEPEND="
 	${PYTHON_DEPS}
@@ -129,8 +129,7 @@ src_configure() {
 		$(use_with selinux)
 	)
 
-	# Use bash because of bashisms with brace expansion in Makefile.am
-	# https://sourceware.org/PR32105
+	# Use bash because of bashisms with brace expansion in Makefile.am (bug #913947)
 	CONFIG_SHELL="${BROOT}"/bin/bash PYTHON3="${PYTHON}" econf "${myeconfargs[@]}"
 }
 
@@ -151,4 +150,11 @@ src_test() {
 src_install() {
 	default
 	python_optimize
+
+	# Avoid file collision with dev-debug/dtrace
+	mv "${ED}"/usr/bin/dtrace "${ED}"/usr/bin/stap-dtrace || die
+
+	if use dtrace-symlink ; then
+		dosym stap-dtrace /usr/bin/dtrace
+	fi
 }

diff --git a/dev-debug/systemtap/systemtap-9999.ebuild b/dev-debug/systemtap/systemtap-9999.ebuild
index 94c53a3d0f1f..f26acd209aca 100644
--- a/dev-debug/systemtap/systemtap-9999.ebuild
+++ b/dev-debug/systemtap/systemtap-9999.ebuild
@@ -19,7 +19,7 @@ fi
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="debuginfod libvirt selinux sqlite +ssl test zeroconf"
+IUSE="debuginfod dtrace-symlink libvirt selinux sqlite +ssl test zeroconf"
 
 CDEPEND="
 	${PYTHON_DEPS}
@@ -151,4 +151,11 @@ src_test() {
 src_install() {
 	default
 	python_optimize
+
+	# Avoid file collision with dev-debug/dtrace
+	mv "${ED}"/usr/bin/dtrace "${ED}"/usr/bin/stap-dtrace || die
+
+	if use dtrace-symlink ; then
+		dosym stap-dtrace /usr/bin/dtrace
+	fi
 }


             reply	other threads:[~2024-08-30 18:10 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-30 18:10 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-06  1:23 [gentoo-commits] repo/gentoo:master commit in: dev-debug/systemtap/ Sam James
2025-03-05 22:36 Sam James
2025-03-04 12:15 Sam James
2025-03-03 21:29 Sam James
2025-03-03 21:29 Sam James
2025-03-03 21:29 Sam James
2025-03-03 20:52 Sam James
2025-03-03 20:48 Sam James
2025-03-03 20:48 Sam James
2025-03-03 20:48 Sam James
2025-03-03 20:48 Sam James
2025-03-03 20:48 Sam James
2025-03-03 20:48 Sam James
2024-11-21 23:08 Sven Wegener
2024-11-21 23:08 Sven Wegener
2024-11-21 23:08 Sven Wegener
2024-10-03  9:54 Sam James
2024-09-12  1:02 Sam James
2024-09-12  1:01 Sam James
2024-09-11 23:59 Sam James
2024-08-30 18:10 Sam James
2024-08-21  9:37 Sam James
2024-08-21  5:30 Sam James
2024-08-21  5:00 Sam James
2024-08-21  5:00 Sam James
2024-08-21  4:44 Sam James
2024-08-21  4:44 Sam James
2024-08-21  4:44 Sam James
2024-06-03  7:00 Sam James
2024-05-28 13:19 Sam James
2024-05-28 12:44 Sam James
2024-05-28 12:11 Michał Górny
2024-05-28 12:04 Michał Górny
2024-05-28 12:04 Michał Górny
2024-05-22 13:19 Matt Jolly
2024-05-15  8:22 Dennis Lamm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1725041391.efb3a82e3496d3a52a1d04d4cbdb83b25655d96a.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox