[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2025-07-11 Thread Sam James
commit: 84a0e39a56238f4d7a85459f86ef663f5dfd17da
Author: Sam James  gentoo  org>
AuthorDate: Sat Jul 12 00:45:09 2025 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jul 12 00:45:09 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84a0e39a

dev-debug/dtrace: fix typo in metadata.xml

Reported by parona.

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/metadata.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/dtrace/metadata.xml b/dev-debug/dtrace/metadata.xml
index b3f23cd63bf7..42945bb08e6d 100644
--- a/dev-debug/dtrace/metadata.xml
+++ b/dev-debug/dtrace/metadata.xml
@@ -13,7 +13,7 @@

Install the testsuite for manual use. It is not suitable
for automatic execution within the ebuild because it
-   requires root privlieges.
+   requires root privileges.
 
BTF must be available for the running kernel at 
build-time
with this flag.



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2025-07-11 Thread Sam James
commit: 34501d422e9017d1df1c291a4f89c6fd98ff050b
Author: Sam James  gentoo  org>
AuthorDate: Sat Jul 12 00:43:59 2025 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jul 12 00:43:59 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34501d42

dev-debug/dtrace: note that BTF must be available for USE=test-install

BTF must be available for the running kernel at build-time
with this flag.

The next upstream release will have a better error message for this,
see http://github.com/oracle/dtrace-utils/issues/74.

Closes: https://bugs.gentoo.org/958606
Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/metadata.xml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dev-debug/dtrace/metadata.xml b/dev-debug/dtrace/metadata.xml
index f9149c67c8a0..b3f23cd63bf7 100644
--- a/dev-debug/dtrace/metadata.xml
+++ b/dev-debug/dtrace/metadata.xml
@@ -14,6 +14,9 @@
Install the testsuite for manual use. It is not suitable
for automatic execution within the ebuild because it
requires root privlieges.
+
+   BTF must be available for the running kernel at 
build-time
+   with this flag.






[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2025-07-11 Thread Sam James
commit: 38e551125e32d28729d42a0a0a07de94243d5629
Author: Sam James  gentoo  org>
AuthorDate: Sat Jul 12 00:11:30 2025 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jul 12 00:11:49 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38e55112

dev-debug/dtrace: fix build on no-multilib profiles

Set NATIVE_BITNESS_ONLY=1 if we don't have multilib.

Closes: https://bugs.gentoo.org/959876
Signed-off-by: Sam James  gentoo.org>

 .../{dtrace-.ebuild => dtrace-2.0.3-r1.ebuild}   | 16 +++-
 dev-debug/dtrace/dtrace-.ebuild  | 16 +++-
 2 files changed, 22 insertions(+), 10 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-2.0.3-r1.ebuild
similarity index 95%
copy from dev-debug/dtrace/dtrace-.ebuild
copy to dev-debug/dtrace/dtrace-2.0.3-r1.ebuild
index 22109e3bce63..adf19369b700 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.3-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit edo flag-o-matic linux-info systemd toolchain-funcs udev
+inherit edo flag-o-matic linux-info multilib systemd toolchain-funcs udev
 
 DESCRIPTION="Dynamic BPF-based system-wide tracing tool"
 HOMEPAGE="https://github.com/oracle/dtrace-utils 
https://wiki.gentoo.org/wiki/DTrace";
@@ -23,9 +23,6 @@ LICENSE="UPL-1.0"
 SLOT="0"
 IUSE="test-install valgrind"
 
-# XXX: right now, we auto-adapt to whether multilibs are present:
-# should we force them to be? how?
-#
 # TODO: can we make the wireshark dep conditional?
 DEPEND="
dev-libs/elfutils
@@ -145,8 +142,17 @@ src_configure() {
 }
 
 src_compile() {
+   local myemakeargs=(
+   verbose=1
+   $(usev !test-install TRIGGERS='')
+   )
+
+   if use amd64 ; then
+   ! has_multilib_profile && myemakeargs+=( NATIVE_BITNESS_ONLY=1 )
+   fi
+
# -j1: https://github.com/oracle/dtrace-utils/issues/82
-   emake verbose=1 -j1 $(usev !test-install TRIGGERS='')
+   emake -j1 "${myemakeargs[@]}"
 }
 
 src_test() {

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index 22109e3bce63..adf19369b700 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit edo flag-o-matic linux-info systemd toolchain-funcs udev
+inherit edo flag-o-matic linux-info multilib systemd toolchain-funcs udev
 
 DESCRIPTION="Dynamic BPF-based system-wide tracing tool"
 HOMEPAGE="https://github.com/oracle/dtrace-utils 
https://wiki.gentoo.org/wiki/DTrace";
@@ -23,9 +23,6 @@ LICENSE="UPL-1.0"
 SLOT="0"
 IUSE="test-install valgrind"
 
-# XXX: right now, we auto-adapt to whether multilibs are present:
-# should we force them to be? how?
-#
 # TODO: can we make the wireshark dep conditional?
 DEPEND="
dev-libs/elfutils
@@ -145,8 +142,17 @@ src_configure() {
 }
 
 src_compile() {
+   local myemakeargs=(
+   verbose=1
+   $(usev !test-install TRIGGERS='')
+   )
+
+   if use amd64 ; then
+   ! has_multilib_profile && myemakeargs+=( NATIVE_BITNESS_ONLY=1 )
+   fi
+
# -j1: https://github.com/oracle/dtrace-utils/issues/82
-   emake verbose=1 -j1 $(usev !test-install TRIGGERS='')
+   emake -j1 "${myemakeargs[@]}"
 }
 
 src_test() {



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2025-06-20 Thread Sam James
commit: 06419cf3d3899a0c1941052a23da493ee6b053e2
Author: Sam James  gentoo  org>
AuthorDate: Sat Jun 21 03:58:27 2025 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jun 21 03:58:27 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06419cf3

dev-debug/dtrace: add 2.0.3

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/Manifest|   1 +
 dev-debug/dtrace/dtrace-2.0.3.ebuild | 225 +++
 2 files changed, 226 insertions(+)

diff --git a/dev-debug/dtrace/Manifest b/dev-debug/dtrace/Manifest
index 0b2016e7e7f0..c78da3a5df6b 100644
--- a/dev-debug/dtrace/Manifest
+++ b/dev-debug/dtrace/Manifest
@@ -1 +1,2 @@
 DIST dtrace-2.0.2.tar.gz 1466888 BLAKE2B 
82bcf55f46802b525dd5bfb8d2ee96223d6ee3e76b752632b61cdc652308efa143f8158fbdfff7f2af1e63d5fc57aa44b0ca826e313b3c5c9d3019528101fccb
 SHA512 
7d3fcb6ffcbfc6732b66e217cee6d45a504beb7c8b9f887b2a781eea68ef2f44de9aa373728a91d3a91e59a0be0664e2d7d92d42fd25b88de4c5005e62505c78
+DIST dtrace-2.0.3.tar.gz 1482755 BLAKE2B 
8cbf4e0f3c500ae6b022692b3c2ba4a4eacca3feeab88e0712435863a4148217efb6d513a551510bf9e29ba9f8e543fccf5b246ed68c3a04d47259fc5a94f3f9
 SHA512 
74fe7cd73346a3b1a134128e1f612693739ffa1460fb0d9534cf1d31d70379a717a94ff11d23e1c4be55f3c23b95cc4f940b66a01abf7ac08ca2963049a66210

diff --git a/dev-debug/dtrace/dtrace-2.0.3.ebuild 
b/dev-debug/dtrace/dtrace-2.0.3.ebuild
new file mode 100644
index ..22109e3bce63
--- /dev/null
+++ b/dev-debug/dtrace/dtrace-2.0.3.ebuild
@@ -0,0 +1,225 @@
+# Copyright 2024-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit edo flag-o-matic linux-info systemd toolchain-funcs udev
+
+DESCRIPTION="Dynamic BPF-based system-wide tracing tool"
+HOMEPAGE="https://github.com/oracle/dtrace-utils 
https://wiki.gentoo.org/wiki/DTrace";
+
+if [[ ${PV} ==  ]]; then
+   EGIT_BRANCH="devel"
+   EGIT_REPO_URI="https://github.com/oracle/dtrace-utils";
+   inherit git-r3
+else
+   
SRC_URI="https://github.com/oracle/dtrace-utils/archive/refs/tags/${PV}.tar.gz 
-> ${P}.tar.gz"
+   S="${WORKDIR}"/dtrace-utils-${PV}
+
+   KEYWORDS="-* ~amd64 ~arm64"
+fi
+
+LICENSE="UPL-1.0"
+SLOT="0"
+IUSE="test-install valgrind"
+
+# XXX: right now, we auto-adapt to whether multilibs are present:
+# should we force them to be? how?
+#
+# TODO: can we make the wireshark dep conditional?
+DEPEND="
+   dev-libs/elfutils
+   dev-libs/libbpf
+   dev-libs/libpfm:=
+   net-analyzer/wireshark[dumpcap]
+   net-libs/libpcap
+   >=sys-fs/fuse-3.2.0:3=
+   >=sys-libs/binutils-libs-2.42:=
+   sys-libs/zlib
+"
+RDEPEND="
+   ${DEPEND}
+   !dev-debug/systemtap[dtrace-symlink(+)]
+   net-analyzer/wireshark
+   test-install? (
+   app-alternatives/bc
+   app-editors/vim-core
+   dev-build/make
+   dev-lang/perl
+   dev-util/perf
+   net-fs/nfs-utils
+   sys-apps/coreutils
+   sys-fs/xfsprogs
+   sys-process/time
+   virtual/jdk
+   )
+"
+BDEPEND="
+   dev-build/make
+   sys-apps/gawk
+   sys-devel/bison
+   >=sys-devel/bpf-toolchain-14.1.0
+   sys-devel/flex
+"
+DEPEND+=" valgrind? ( dev-debug/valgrind )"
+
+QA_PRESTRIPPED="
+   usr/.*/dtrace/testsuite/test/triggers/.*
+"
+QA_FLAGS_IGNORED="
+   usr/.*/dtrace/testsuite/test/triggers/.*
+"
+
+# TODO: report upstream (bug #938221) although it seems like it's
+# not relevant given it's a BPF object.
+QA_EXECSTACK="
+   usr/*/dtrace/bpf_dlib.*
+"
+
+pkg_pretend() {
+   # TODO: optional kernel patches
+
+   # Basics for debugging information, BPF
+   local CONFIG_CHECK="~BPF ~DEBUG_INFO_BTF ~KALLSYMS_ALL"
+
+   CONFIG_CHECK+=" ~CUSE"
+
+   # Tracing
+   CONFIG_CHECK+=" ~TRACING"
+   CONFIG_CHECK+=" ~UPROBES ~UPROBE_EVENTS"
+   CONFIG_CHECK+=" ~FTRACE ~FTRACE_SYSCALLS ~DYNAMIC_FTRACE 
~FUNCTION_TRACER"
+   CONFIG_CHECK+=" ~FPROBE"
+   # DTrace can fallback to kprobes for fbt but people often want them off
+   # for security and newer kernels work fine with BPF for that, so
+   # let's omit it. kprobes are slower and scale poorly.
+
+   # https://gcc.gnu.org/PR84052
+   CONFIG_CHECK+=" !GCC_PLUGIN_RANDSTRUCT"
+
+   if use test-install ; then
+   # See test/modules
+   CONFIG_CHECK+=" ~EXT4_FS ~ISO9660_FS ~NFS_FS ~RDS ~TUN"
+   fi
+
+   check_extra_config
+}
+
+pkg_setup() {
+   eval unset ${!LC_*} LANG
+}
+
+src_configure() {
+   if tc-is-cross-compiler; then
+   die "DTrace does not yet support cross-compilation."
+   fi
+
+   tc-export CC
+
+   # lld does this by default, so fix that, although lld fails anyway...
+   # 'LIBDTRACE_1.0' to symbol 'dtrace_provider_modules' failed: symbol 
not defined
+   append-ldflags $(test-flags-CCLD -Wl,-

[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2025-06-08 Thread Sam James
commit: 36dbfb7c813104a0b13f5abe1f44c8e08c6c2460
Author: Sam James  gentoo  org>
AuthorDate: Sun Jun  8 09:09:14 2025 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jun  8 09:09:14 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36dbfb7c

dev-debug/dtrace: filter LTO again for live

Undo 274e88619f98c77b9a05c33eb956bb7a168d6025 with a new comment. It
builds fine (didn't before, of course) but it's broken at runtime.

Bug: https://github.com/oracle/dtrace-utils/issues/86
Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-.ebuild | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index ed6c0129a8a9..22109e3bce63 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -126,6 +126,9 @@ src_configure() {
# that can't actually obtain results from probes, even trivial examples
# just hang.
filter-flags -fno-semantic-interposition
+   # While it builds as of 2025-06-08, it's broken at runtime
+   # in the same way as -fno-semantic-interposition (hangs, no probes 
fire).
+   filter-lto
 
local confargs=(
# TODO: Maybe we should set the UNPRIV_UID to something? -3 is 
a bit... kludgy



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2025-06-08 Thread Sam James
commit: 274e88619f98c77b9a05c33eb956bb7a168d6025
Author: Sam James  gentoo  org>
AuthorDate: Sun Jun  8 07:31:25 2025 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jun  8 07:31:25 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=274e8861

dev-debug/dtrace: drop filter-lto for live

See https://github.com/oracle/dtrace-utils/issues/86#issuecomment-2953671118.

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-.ebuild | 2 --
 1 file changed, 2 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index 7765c54784e9..4cc13490c0d1 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -127,8 +127,6 @@ src_configure() {
# that can't actually obtain results from probes, even trivial examples
# just hang.
filter-flags -fno-semantic-interposition
-   # https://github.com/oracle/dtrace-utils/issues/86
-   filter-lto
 
local confargs=(
# TODO: Maybe we should set the UNPRIV_UID to something? -3 is 
a bit... kludgy



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2025-06-08 Thread Sam James
commit: 12f1069e1ecba59fa103bd970b7d2f04579f2c6f
Author: Sam James  gentoo  org>
AuthorDate: Sun Jun  8 07:32:49 2025 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jun  8 07:32:49 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12f1069e

dev-debug/dtrace: fix MissingVersionedVirtualPerlDependency for live

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-.ebuild | 1 -
 1 file changed, 1 deletion(-)

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index 4cc13490c0d1..ed6c0129a8a9 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -52,7 +52,6 @@ RDEPEND="
sys-fs/xfsprogs
sys-process/time
virtual/jdk
-   virtual/perl-IO-Socket-IP
)
 "
 BDEPEND="



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2025-05-12 Thread Sam James
commit: b78ab20d05068fa6138b625f34d394d9ebfeb2e9
Author: Sam James  gentoo  org>
AuthorDate: Tue May 13 05:16:55 2025 +
Commit: Sam James  gentoo  org>
CommitDate: Tue May 13 05:18:22 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b78ab20d

dev-debug/dtrace: drop 2.0.1.1-r3

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/Manifest |   1 -
 dev-debug/dtrace/dtrace-2.0.1.1-r3.ebuild | 231 --
 2 files changed, 232 deletions(-)

diff --git a/dev-debug/dtrace/Manifest b/dev-debug/dtrace/Manifest
index dc6c52516a58..0b2016e7e7f0 100644
--- a/dev-debug/dtrace/Manifest
+++ b/dev-debug/dtrace/Manifest
@@ -1,2 +1 @@
-DIST dtrace-2.0.1.1.tar.gz 1435524 BLAKE2B 
761a931b9d871e9316f11ebe960f6bbfd3c16a82cf1cdd9ae5d69b22e0d8cea8d4b3924c960b7915f8843ce1e5c37bd257a52f1ce346957002b0ab00e59306fb
 SHA512 
15809f2bc996bac9bd6cbb2b03eaa9a0c6a2aea9404642280f14d75b7d6feaec31b5d2c16915255cd202006cdff7835f578c042b087605708a9eb935407f1b95
 DIST dtrace-2.0.2.tar.gz 1466888 BLAKE2B 
82bcf55f46802b525dd5bfb8d2ee96223d6ee3e76b752632b61cdc652308efa143f8158fbdfff7f2af1e63d5fc57aa44b0ca826e313b3c5c9d3019528101fccb
 SHA512 
7d3fcb6ffcbfc6732b66e217cee6d45a504beb7c8b9f887b2a781eea68ef2f44de9aa373728a91d3a91e59a0be0664e2d7d92d42fd25b88de4c5005e62505c78

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1-r3.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1-r3.ebuild
deleted file mode 100644
index a60fab894a79..
--- a/dev-debug/dtrace/dtrace-2.0.1.1-r3.ebuild
+++ /dev/null
@@ -1,231 +0,0 @@
-# Copyright 2024-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit edo flag-o-matic linux-info systemd toolchain-funcs udev
-
-DESCRIPTION="Dynamic BPF-based system-wide tracing tool"
-HOMEPAGE="https://github.com/oracle/dtrace-utils 
https://wiki.gentoo.org/wiki/DTrace";
-
-if [[ ${PV} ==  ]]; then
-   EGIT_BRANCH="devel"
-   EGIT_REPO_URI="https://github.com/oracle/dtrace-utils";
-   inherit git-r3
-else
-   
SRC_URI="https://github.com/oracle/dtrace-utils/archive/refs/tags/${PV}.tar.gz 
-> ${P}.tar.gz"
-   S="${WORKDIR}"/dtrace-utils-${PV}
-
-   KEYWORDS="-* amd64 arm64"
-fi
-
-LICENSE="UPL-1.0"
-SLOT="0"
-IUSE="systemd test-install"
-
-# XXX: right now, we auto-adapt to whether multilibs are present:
-# should we force them to be? how?
-#
-# TODO: can we make the wireshark dep conditional?
-DEPEND="
-   dev-libs/elfutils
-   dev-libs/libbpf
-   dev-libs/libpfm:=
-   net-analyzer/wireshark[dumpcap]
-   net-libs/libpcap
-   >=sys-fs/fuse-3.2.0:3=
-   >=sys-libs/binutils-libs-2.42:=
-   sys-libs/zlib
-   systemd? ( sys-apps/systemd )
-"
-RDEPEND="
-   ${DEPEND}
-   !dev-debug/systemtap[dtrace-symlink(+)]
-   net-analyzer/wireshark
-   test-install? (
-   app-alternatives/bc
-   app-editors/vim-core
-   dev-build/make
-   dev-lang/perl
-   dev-util/perf
-   net-fs/nfs-utils
-   sys-apps/coreutils
-   sys-fs/xfsprogs
-   sys-process/time
-   virtual/jdk
-   virtual/perl-IO-Socket-IP
-   )
-"
-BDEPEND="
-   dev-build/make
-   sys-apps/gawk
-   sys-devel/bison
-   >=sys-devel/bpf-toolchain-14.1.0
-   sys-devel/flex
-"
-# This isn't yet optional, valgrind.h is included unconditionally
-# https://github.com/oracle/dtrace-utils/issues/80
-DEPEND+=" dev-debug/valgrind"
-
-QA_PRESTRIPPED="
-   usr/.*/dtrace/testsuite/test/triggers/.*
-"
-QA_FLAGS_IGNORED="
-   usr/.*/dtrace/testsuite/test/triggers/.*
-"
-
-# TODO: report upstream (bug #938221) although it seems like it's
-# not relevant given it's a BPF object.
-QA_EXECSTACK="
-   usr/*/dtrace/bpf_dlib.*
-"
-
-pkg_pretend() {
-   # TODO: optional kernel patches
-
-   # Basics for debugging information, BPF
-   local CONFIG_CHECK="~BPF ~DEBUG_INFO_BTF ~KALLSYMS_ALL"
-
-   CONFIG_CHECK+=" ~CUSE"
-
-   # Tracing
-   CONFIG_CHECK+=" ~TRACING"
-   CONFIG_CHECK+=" ~UPROBES ~UPROBE_EVENTS"
-   CONFIG_CHECK+=" ~FTRACE ~FTRACE_SYSCALLS ~DYNAMIC_FTRACE 
~FUNCTION_TRACER"
-   CONFIG_CHECK+=" ~FPROBE"
-   # DTrace can fallback to kprobes for fbt but people often want them off
-   # for security and newer kernels work fine with BPF for that, so
-   # let's omit it. kprobes are slower and scale poorly.
-
-   # https://gcc.gnu.org/PR84052
-   CONFIG_CHECK+=" !GCC_PLUGIN_RANDSTRUCT"
-
-   if use test-install ; then
-   # See test/modules
-   CONFIG_CHECK+=" ~EXT4_FS ~ISO9660_FS ~NFS_FS ~RDS ~TUN"
-   fi
-
-   check_extra_config
-}
-
-pkg_setup() {
-   eval unset ${!LC_*} LANG
-}
-
-src_configure() {
-   if tc-is-cross-compiler; then
-   die "DTrace does not yet support cross-compilation."
-   fi
-
-   tc-export CC
-
-

[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2025-03-25 Thread Sam James
commit: 0fe25bf228200ffd910fb9a10add44c69a0c9924
Author: Sam James  gentoo  org>
AuthorDate: Tue Mar 25 08:09:40 2025 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Mar 25 08:13:11 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fe25bf2

dev-debug/dtrace: subscribe to fuse:3 subslot

Signed-off-by: Sam James  gentoo.org>

 .../dtrace/{dtrace-2.0.1.1-r2.ebuild => dtrace-2.0.1.1-r3.ebuild} | 4 ++--
 dev-debug/dtrace/{dtrace-2.0.2.ebuild => dtrace-2.0.2-r1.ebuild}  | 2 +-
 dev-debug/dtrace/dtrace-.ebuild   | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1-r3.ebuild
similarity index 99%
rename from dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
rename to dev-debug/dtrace/dtrace-2.0.1.1-r3.ebuild
index 39af1cb563af..a60fab894a79 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2024 Gentoo Authors
+# Copyright 2024-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -33,7 +33,7 @@ DEPEND="
dev-libs/libpfm:=
net-analyzer/wireshark[dumpcap]
net-libs/libpcap
-   >=sys-fs/fuse-3.2.0:3
+   >=sys-fs/fuse-3.2.0:3=
>=sys-libs/binutils-libs-2.42:=
sys-libs/zlib
systemd? ( sys-apps/systemd )

diff --git a/dev-debug/dtrace/dtrace-2.0.2.ebuild 
b/dev-debug/dtrace/dtrace-2.0.2-r1.ebuild
similarity index 99%
rename from dev-debug/dtrace/dtrace-2.0.2.ebuild
rename to dev-debug/dtrace/dtrace-2.0.2-r1.ebuild
index 409302264708..2843c6c89981 100644
--- a/dev-debug/dtrace/dtrace-2.0.2.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.2-r1.ebuild
@@ -33,7 +33,7 @@ DEPEND="
dev-libs/libpfm:=
net-analyzer/wireshark[dumpcap]
net-libs/libpcap
-   >=sys-fs/fuse-3.2.0:3
+   >=sys-fs/fuse-3.2.0:3=
>=sys-libs/binutils-libs-2.42:=
sys-libs/zlib
 "

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index 324953659fa7..7765c54784e9 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2024 Gentoo Authors
+# Copyright 2024-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -33,7 +33,7 @@ DEPEND="
dev-libs/libpfm:=
net-analyzer/wireshark[dumpcap]
net-libs/libpcap
-   >=sys-fs/fuse-3.2.0:3
+   >=sys-fs/fuse-3.2.0:3=
>=sys-libs/binutils-libs-2.42:=
sys-libs/zlib
 "



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2025-03-08 Thread Arthur Zamarin
commit: 5ea77a3789ab4ff0e5ccbb65060eab16a3bc5beb
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Mar  8 08:40:57 2025 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Mar  8 08:40:57 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ea77a37

dev-debug/dtrace: Stabilize 2.0.2 amd64, #950755

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/dtrace/dtrace-2.0.2.ebuild 
b/dev-debug/dtrace/dtrace-2.0.2.ebuild
index 58c7bc7f7afc..409302264708 100644
--- a/dev-debug/dtrace/dtrace-2.0.2.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.2.ebuild
@@ -16,7 +16,7 @@ else

SRC_URI="https://github.com/oracle/dtrace-utils/archive/refs/tags/${PV}.tar.gz 
-> ${P}.tar.gz"
S="${WORKDIR}"/dtrace-utils-${PV}
 
-   KEYWORDS="-* ~amd64 arm64"
+   KEYWORDS="-* amd64 arm64"
 fi
 
 LICENSE="UPL-1.0"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2025-03-07 Thread Sam James
commit: 85797927217a3a9add6523a4bcc9448c1eaac024
Author: Sam James  gentoo  org>
AuthorDate: Sat Mar  8 01:40:53 2025 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Mar  8 01:40:53 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85797927

dev-debug/dtrace: Stabilize 2.0.2 arm64, #950755

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/dtrace/dtrace-2.0.2.ebuild 
b/dev-debug/dtrace/dtrace-2.0.2.ebuild
index d514c846de59..58c7bc7f7afc 100644
--- a/dev-debug/dtrace/dtrace-2.0.2.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.2.ebuild
@@ -16,7 +16,7 @@ else

SRC_URI="https://github.com/oracle/dtrace-utils/archive/refs/tags/${PV}.tar.gz 
-> ${P}.tar.gz"
S="${WORKDIR}"/dtrace-utils-${PV}
 
-   KEYWORDS="-* ~amd64 ~arm64"
+   KEYWORDS="-* ~amd64 arm64"
 fi
 
 LICENSE="UPL-1.0"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2025-02-04 Thread Sam James
commit: 103b03cd2feb446b6248eb17e3927c504d19d8d0
Author: Sam James  gentoo  org>
AuthorDate: Wed Feb  5 01:11:11 2025 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Feb  5 01:11:11 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=103b03cd

dev-debug/dtrace: add 2.0.2

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/Manifest|   1 +
 dev-debug/dtrace/dtrace-2.0.2.ebuild | 225 +++
 2 files changed, 226 insertions(+)

diff --git a/dev-debug/dtrace/Manifest b/dev-debug/dtrace/Manifest
index 554f7f6f5e67..dc6c52516a58 100644
--- a/dev-debug/dtrace/Manifest
+++ b/dev-debug/dtrace/Manifest
@@ -1 +1,2 @@
 DIST dtrace-2.0.1.1.tar.gz 1435524 BLAKE2B 
761a931b9d871e9316f11ebe960f6bbfd3c16a82cf1cdd9ae5d69b22e0d8cea8d4b3924c960b7915f8843ce1e5c37bd257a52f1ce346957002b0ab00e59306fb
 SHA512 
15809f2bc996bac9bd6cbb2b03eaa9a0c6a2aea9404642280f14d75b7d6feaec31b5d2c16915255cd202006cdff7835f578c042b087605708a9eb935407f1b95
+DIST dtrace-2.0.2.tar.gz 1466888 BLAKE2B 
82bcf55f46802b525dd5bfb8d2ee96223d6ee3e76b752632b61cdc652308efa143f8158fbdfff7f2af1e63d5fc57aa44b0ca826e313b3c5c9d3019528101fccb
 SHA512 
7d3fcb6ffcbfc6732b66e217cee6d45a504beb7c8b9f887b2a781eea68ef2f44de9aa373728a91d3a91e59a0be0664e2d7d92d42fd25b88de4c5005e62505c78

diff --git a/dev-debug/dtrace/dtrace-2.0.2.ebuild 
b/dev-debug/dtrace/dtrace-2.0.2.ebuild
new file mode 100644
index ..d514c846de59
--- /dev/null
+++ b/dev-debug/dtrace/dtrace-2.0.2.ebuild
@@ -0,0 +1,225 @@
+# Copyright 2024-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit edo flag-o-matic linux-info systemd toolchain-funcs udev
+
+DESCRIPTION="Dynamic BPF-based system-wide tracing tool"
+HOMEPAGE="https://github.com/oracle/dtrace-utils 
https://wiki.gentoo.org/wiki/DTrace";
+
+if [[ ${PV} ==  ]]; then
+   EGIT_BRANCH="devel"
+   EGIT_REPO_URI="https://github.com/oracle/dtrace-utils";
+   inherit git-r3
+else
+   
SRC_URI="https://github.com/oracle/dtrace-utils/archive/refs/tags/${PV}.tar.gz 
-> ${P}.tar.gz"
+   S="${WORKDIR}"/dtrace-utils-${PV}
+
+   KEYWORDS="-* ~amd64 ~arm64"
+fi
+
+LICENSE="UPL-1.0"
+SLOT="0"
+IUSE="test-install valgrind"
+
+# XXX: right now, we auto-adapt to whether multilibs are present:
+# should we force them to be? how?
+#
+# TODO: can we make the wireshark dep conditional?
+DEPEND="
+   dev-libs/elfutils
+   dev-libs/libbpf
+   dev-libs/libpfm:=
+   net-analyzer/wireshark[dumpcap]
+   net-libs/libpcap
+   >=sys-fs/fuse-3.2.0:3
+   >=sys-libs/binutils-libs-2.42:=
+   sys-libs/zlib
+"
+RDEPEND="
+   ${DEPEND}
+   !dev-debug/systemtap[dtrace-symlink(+)]
+   net-analyzer/wireshark
+   test-install? (
+   app-alternatives/bc
+   app-editors/vim-core
+   dev-build/make
+   dev-lang/perl
+   dev-util/perf
+   net-fs/nfs-utils
+   sys-apps/coreutils
+   sys-fs/xfsprogs
+   sys-process/time
+   virtual/jdk
+   virtual/perl-IO-Socket-IP
+   )
+"
+BDEPEND="
+   dev-build/make
+   sys-apps/gawk
+   sys-devel/bison
+   >=sys-devel/bpf-toolchain-14.1.0
+   sys-devel/flex
+"
+DEPEND+=" valgrind? ( dev-debug/valgrind )"
+
+QA_PRESTRIPPED="
+   usr/.*/dtrace/testsuite/test/triggers/.*
+"
+QA_FLAGS_IGNORED="
+   usr/.*/dtrace/testsuite/test/triggers/.*
+"
+
+# TODO: report upstream (bug #938221) although it seems like it's
+# not relevant given it's a BPF object.
+QA_EXECSTACK="
+   usr/*/dtrace/bpf_dlib.*
+"
+
+pkg_pretend() {
+   # TODO: optional kernel patches
+
+   # Basics for debugging information, BPF
+   local CONFIG_CHECK="~BPF ~DEBUG_INFO_BTF ~KALLSYMS_ALL"
+
+   CONFIG_CHECK+=" ~CUSE"
+
+   # Tracing
+   CONFIG_CHECK+=" ~TRACING"
+   CONFIG_CHECK+=" ~UPROBES ~UPROBE_EVENTS"
+   CONFIG_CHECK+=" ~FTRACE ~FTRACE_SYSCALLS ~DYNAMIC_FTRACE 
~FUNCTION_TRACER"
+   CONFIG_CHECK+=" ~FPROBE"
+   # DTrace can fallback to kprobes for fbt but people often want them off
+   # for security and newer kernels work fine with BPF for that, so
+   # let's omit it. kprobes are slower and scale poorly.
+
+   # https://gcc.gnu.org/PR84052
+   CONFIG_CHECK+=" !GCC_PLUGIN_RANDSTRUCT"
+
+   if use test-install ; then
+   # See test/modules
+   CONFIG_CHECK+=" ~EXT4_FS ~ISO9660_FS ~NFS_FS ~RDS ~TUN"
+   fi
+
+   check_extra_config
+}
+
+pkg_setup() {
+   eval unset ${!LC_*} LANG
+}
+
+src_configure() {
+   if tc-is-cross-compiler; then
+   die "DTrace does not yet support cross-compilation."
+   fi
+
+   tc-export CC
+
+   # lld does this by default, so fix that, although lld fails anyway...
+   # 'LIBDTRACE_1.0' to symbol 'dtrace_provider_modules' failed: symbol 
not defined
+  

[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-11-29 Thread Sam James
commit: 9037c8f3f3b2759f8dee02e548401b6fc5f66551
Author: Sam James  gentoo  org>
AuthorDate: Fri Nov 29 22:44:04 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Nov 29 22:44:04 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9037c8f3

dev-debug/dtrace: fix rc-service invocation

Closes: https://bugs.gentoo.org/945361
Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild | 2 +-
 dev-debug/dtrace/dtrace-.ebuild   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
index 9bda5f2770fe..39af1cb563af 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
@@ -220,7 +220,7 @@ pkg_postinst() {
eend $?
 
ebegin "Starting DTrace 'dtprobed' service"
-   rc-service start dtprobed
+   rc-service dtprobed start
eend $?
fi
fi

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index a1e12159ab4c..324953659fa7 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -214,7 +214,7 @@ pkg_postinst() {
eend $?
 
ebegin "Starting DTrace 'dtprobed' service"
-   rc-service start dtprobed
+   rc-service dtprobed start
eend $?
fi
fi



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-10-30 Thread Sam James
commit: 0ccd18bf8c3474e3a01d6052ddc5e05d8dceef5b
Author: Sam James  gentoo  org>
AuthorDate: Wed Oct 30 22:49:43 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Oct 30 22:50:04 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ccd18bf

dev-debug/dtrace: update live for _FORTIFY_SOURCE fix

Bug: https://github.com/oracle/dtrace-utils/issues/78
Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-.ebuild | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index 63360b80ca91..a1e12159ab4c 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -116,9 +116,6 @@ src_configure() {
 
tc-export CC
 
-   # https://github.com/oracle/dtrace-utils/issues/78
-   tc-enables-fortify-source && append-cppflags -U_FORTIFY_SOURCE
-
# lld does this by default, so fix that, although lld fails anyway...
# 'LIBDTRACE_1.0' to symbol 'dtrace_provider_modules' failed: symbol 
not defined
append-ldflags $(test-flags-CCLD -Wl,--undefined-version)



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-10-30 Thread Sam James
commit: e071ab8e96a0dd718daf03d85075c76cb3987466
Author: Sam James  gentoo  org>
AuthorDate: Wed Oct 30 22:49:03 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Oct 30 22:50:04 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e071ab8e

dev-debug/dtrace: update live for mandir fix

Bug: https://github.com/oracle/dtrace-utils/issues/106
Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-.ebuild | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index 18b788695b6b..63360b80ca91 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -136,8 +136,7 @@ src_configure() {
local confargs=(
# TODO: Maybe we should set the UNPRIV_UID to something? -3 is 
a bit... kludgy
--prefix="${EPREFIX}"/usr
-   # See https://github.com/oracle/dtrace-utils/issues/106 for 
man8 suffix
-   --mandir="${EPREFIX}"/usr/share/man/man8
+   --mandir="${EPREFIX}"/usr/share/man
--docdir="${EPREFIX}"/usr/share/doc/${PF}
--with-systemd
HAVE_LIBCTF=yes



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-10-30 Thread Sam James
commit: 095e55d5d14b47fc2765f928c16cf868acd9f6f8
Author: Sam James  gentoo  org>
AuthorDate: Wed Oct 30 22:44:24 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Oct 30 22:50:02 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=095e55d5

dev-debug/dtrace: update live for libsystemd removal

Always pass --with-systemd as it just controls installation of units.

Bug: https://github.com/oracle/dtrace-utils/issues/92
Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-.ebuild | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index fabe953189d0..81df7df9c16d 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -21,7 +21,7 @@ fi
 
 LICENSE="UPL-1.0"
 SLOT="0"
-IUSE="systemd test-install"
+IUSE="test-install"
 
 # XXX: right now, we auto-adapt to whether multilibs are present:
 # should we force them to be? how?
@@ -36,7 +36,6 @@ DEPEND="
>=sys-fs/fuse-3.2.0:3
>=sys-libs/binutils-libs-2.42:=
sys-libs/zlib
-   systemd? ( sys-apps/systemd )
 "
 RDEPEND="
${DEPEND}
@@ -142,8 +141,8 @@ src_configure() {
# See https://github.com/oracle/dtrace-utils/issues/106 for 
man8 suffix
--mandir="${EPREFIX}"/usr/share/man/man8
--docdir="${EPREFIX}"/usr/share/doc/${PF}
+   --with-systemd
HAVE_LIBCTF=yes
-   HAVE_LIBSYSTEMD=$(usex systemd)
HAVE_BPFV3=yes
)
 



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-10-30 Thread Sam James
commit: c7a227d056a81f3c1bb7e2895ad2239a44dd3a6f
Author: Sam James  gentoo  org>
AuthorDate: Wed Oct 30 22:46:07 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Oct 30 22:50:03 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7a227d0

dev-debug/dtrace: update live for valgrind changes

Bug: https://github.com/oracle/dtrace-utils/issues/80
Bug: https://bugs.gentoo.org/938190
Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-.ebuild | 7 +++
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index 81df7df9c16d..18b788695b6b 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -21,7 +21,7 @@ fi
 
 LICENSE="UPL-1.0"
 SLOT="0"
-IUSE="test-install"
+IUSE="test-install valgrind"
 
 # XXX: right now, we auto-adapt to whether multilibs are present:
 # should we force them to be? how?
@@ -62,9 +62,7 @@ BDEPEND="
>=sys-devel/bpf-toolchain-14.1.0
sys-devel/flex
 "
-# This isn't yet optional, valgrind.h is included unconditionally
-# https://github.com/oracle/dtrace-utils/issues/80
-DEPEND+=" dev-debug/valgrind"
+DEPEND+=" valgrind? ( dev-debug/valgrind )"
 
 QA_PRESTRIPPED="
usr/.*/dtrace/testsuite/test/triggers/.*
@@ -144,6 +142,7 @@ src_configure() {
--with-systemd
HAVE_LIBCTF=yes
HAVE_BPFV3=yes
+   HAVE_VALGRIND=$(usex valgrind)
)
 
edo ./configure "${confargs[@]}"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-10-24 Thread Arthur Zamarin
commit: 604724fb6503c03f2b144d0da899a68909ba8f94
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Thu Oct 24 08:22:12 2024 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Thu Oct 24 08:22:12 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=604724fb

dev-debug/dtrace: Stabilize 2.0.1.1-r2 arm64, #942041

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
index dfd8afc0ec58..9bda5f2770fe 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
@@ -16,7 +16,7 @@ else

SRC_URI="https://github.com/oracle/dtrace-utils/archive/refs/tags/${PV}.tar.gz 
-> ${P}.tar.gz"
S="${WORKDIR}"/dtrace-utils-${PV}
 
-   KEYWORDS="-* amd64 ~arm64"
+   KEYWORDS="-* amd64 arm64"
 fi
 
 LICENSE="UPL-1.0"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-10-23 Thread Sam James
commit: a6fd783bbf022411d5111a08d570bfeed5e307d8
Author: Sam James  gentoo  org>
AuthorDate: Thu Oct 24 02:36:02 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Oct 24 02:36:02 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6fd783b

dev-debug/dtrace: keyword 2.0.1.1-r2 for ~arm64

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild | 2 +-
 dev-debug/dtrace/dtrace-.ebuild   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
index d3a2543a5f97..dfd8afc0ec58 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
@@ -16,7 +16,7 @@ else

SRC_URI="https://github.com/oracle/dtrace-utils/archive/refs/tags/${PV}.tar.gz 
-> ${P}.tar.gz"
S="${WORKDIR}"/dtrace-utils-${PV}
 
-   KEYWORDS="-* amd64"
+   KEYWORDS="-* amd64 ~arm64"
 fi
 
 LICENSE="UPL-1.0"

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index 5c1b20ad3238..fabe953189d0 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -16,7 +16,7 @@ else

SRC_URI="https://github.com/oracle/dtrace-utils/archive/refs/tags/${PV}.tar.gz 
-> ${P}.tar.gz"
S="${WORKDIR}"/dtrace-utils-${PV}
 
-   KEYWORDS="-* ~amd64"
+   KEYWORDS="-* ~amd64 ~arm64"
 fi
 
 LICENSE="UPL-1.0"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-09-11 Thread Sam James
commit: 4ea63d2846762b2387678b5e35a8e866d819d9e3
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep 12 01:05:36 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 12 01:05:36 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ea63d28

dev-debug/dtrace: fix metadata tag

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/metadata.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/dtrace/metadata.xml b/dev-debug/dtrace/metadata.xml
index 815fdabd199d..f9149c67c8a0 100644
--- a/dev-debug/dtrace/metadata.xml
+++ b/dev-debug/dtrace/metadata.xml
@@ -7,7 +7,7 @@


ar...@gentoo.org
-   Arsen Arsenović
+   Arsen Arsenović






[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-09-11 Thread Sam James
commit: caf59e101d0c0e8bcd442268c993edec227597d6
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep 12 00:43:01 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 12 00:43:01 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=caf59e10

dev-debug/dtrace: don't wrap einfo line so hard

I have a tendency to do this when something is indented as it's not
then obvious what the limit is. Oops.

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild | 6 ++
 dev-debug/dtrace/dtrace-.ebuild   | 6 ++
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
index 955143cae695..d3a2543a5f97 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
@@ -181,12 +181,10 @@ pkg_postinst() {
# One option for this is to detect when it's needed (DOF stash 
layout changes)
# and then e.g. sleep and restart for the user.
if systemd_is_booted ; then
-   einfo "Restart the DTrace 'dtprobed' service after 
upgrades"
-   einfo "once all dtraces are stopped with:"
+   einfo "Restart the DTrace 'dtprobed' service after 
upgrades once all dtraces are stopped with:"
einfo " systemctl try-restart dtprobed"
else
-   einfo "Restart the DTrace 'dtprobed' service after 
upgrades"
-   einfo "once all dtraces are stopped with:"
+   einfo "Restart the DTrace 'dtprobed' service after 
upgrades once all dtraces are stopped with:"
einfo " /etc/init.d/dtprobed restart"
fi
else

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index bf3f510929ed..5c1b20ad3238 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -181,12 +181,10 @@ pkg_postinst() {
# One option for this is to detect when it's needed (DOF stash 
layout changes)
# and then e.g. sleep and restart for the user.
if systemd_is_booted ; then
-   einfo "Restart the DTrace 'dtprobed' service after 
upgrades"
-   einfo "once all dtraces are stopped with:"
+   einfo "Restart the DTrace 'dtprobed' service after 
upgrades once all dtraces are stopped with:"
einfo " systemctl try-restart dtprobed"
else
-   einfo "Restart the DTrace 'dtprobed' service after 
upgrades"
-   einfo "once all dtraces are stopped with:"
+   einfo "Restart the DTrace 'dtprobed' service after 
upgrades once all dtraces are stopped with:"
einfo " /etc/init.d/dtprobed restart"
fi
else



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-09-11 Thread Sam James
commit: 32f33bd323a0fa640a017d945179f32bca672814
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep 12 00:40:12 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 12 00:40:12 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32f33bd3

dev-debug/dtrace: consolidate comparison comments

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild | 4 ++--
 dev-debug/dtrace/dtrace-.ebuild   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
index 3db32276421a..7925d047db23 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
@@ -174,10 +174,10 @@ pkg_postinst() {
# We need a udev reload to pick up the CUSE device node rules.
udev_reload
 
-   # TODO: One option for this is to detect when it's needed (DOF stash 
layout changes)
-   # and then e.g. sleep and restart for the user.
if [[ -n ${REPLACING_VERSIONS} ]]; then
# TODO: Make this more intelligent wrt comparison
+   # One option for this is to detect when it's needed (DOF stash 
layout changes)
+   # and then e.g. sleep and restart for the user.
if systemd_is_booted ; then
einfo "Restart the DTrace 'dtprobed' service after 
upgrades"
einfo "once all dtraces are stopped with:"

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index 3435783376e2..ef9e581a040a 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -174,10 +174,10 @@ pkg_postinst() {
# We need a udev reload to pick up the CUSE device node rules.
udev_reload
 
-   # TODO: One option for this is to detect when it's needed (DOF stash 
layout changes)
-   # and then e.g. sleep and restart for the user.
if [[ -n ${REPLACING_VERSIONS} ]]; then
# TODO: Make this more intelligent wrt comparison
+   # One option for this is to detect when it's needed (DOF stash 
layout changes)
+   # and then e.g. sleep and restart for the user.
if systemd_is_booted ; then
einfo "Restart the DTrace 'dtprobed' service after 
upgrades"
einfo "once all dtraces are stopped with:"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-09-11 Thread Sam James
commit: 9751cb69aed06f2178ed56807f0eca32123cc999
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep 12 00:41:11 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 12 00:41:15 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9751cb69

dev-debug/dtrace: tidy up more TODOs

Some of the TODOs were really upstream bugs we're waiting for resolution
on, not something we need to take action on at this time.

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild | 4 +++-
 dev-debug/dtrace/dtrace-.ebuild   | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
index 7925d047db23..955143cae695 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
@@ -25,6 +25,8 @@ IUSE="systemd test-install"
 
 # XXX: right now, we auto-adapt to whether multilibs are present:
 # should we force them to be? how?
+#
+# TODO: can we make the wireshark dep conditional?
 DEPEND="
dev-libs/elfutils
dev-libs/libbpf
@@ -61,7 +63,7 @@ BDEPEND="
>=sys-devel/bpf-toolchain-14.1.0
sys-devel/flex
 "
-# TODO: Make this optional, valgrind.h is included unconditionally
+# This isn't yet optional, valgrind.h is included unconditionally
 # https://github.com/oracle/dtrace-utils/issues/80
 DEPEND+=" dev-debug/valgrind"
 

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index ef9e581a040a..bf3f510929ed 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -25,6 +25,8 @@ IUSE="systemd test-install"
 
 # XXX: right now, we auto-adapt to whether multilibs are present:
 # should we force them to be? how?
+#
+# TODO: can we make the wireshark dep conditional?
 DEPEND="
dev-libs/elfutils
dev-libs/libbpf
@@ -61,7 +63,7 @@ BDEPEND="
>=sys-devel/bpf-toolchain-14.1.0
sys-devel/flex
 "
-# TODO: Make this optional, valgrind.h is included unconditionally
+# This isn't yet optional, valgrind.h is included unconditionally
 # https://github.com/oracle/dtrace-utils/issues/80
 DEPEND+=" dev-debug/valgrind"
 



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-09-11 Thread Sam James
commit: faa6748a876769c5cada11f8189c9185ecc7a6c3
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep 12 00:37:02 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 12 00:37:02 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=faa6748a

dev-debug/dtrace: drop obsolete binutils-libs comment

I've asked dilfridge to update binutils-2.42 when he gets a chance
for one libctf patch we don't have yet but IIRC that patch doesn't
actually affect DTrace, just it came up in libabigail discussions.

Let's drop the comment as it's not really relevant now.

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild | 4 
 dev-debug/dtrace/dtrace-.ebuild   | 4 
 2 files changed, 8 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
index 2fb1849deaed..3db32276421a 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
@@ -25,10 +25,6 @@ IUSE="systemd test-install"
 
 # XXX: right now, we auto-adapt to whether multilibs are present:
 # should we force them to be? how?
-#
-# XXX: binutils-libs will need an extra patch for what dtrace does with
-# it in the absence of in-kernel CTF: it will be backported
-# to 2.42, but perhaps a patch would be a good idea before that?
 DEPEND="
dev-libs/elfutils
dev-libs/libbpf

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index 0c033c425cb5..3435783376e2 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -25,10 +25,6 @@ IUSE="systemd test-install"
 
 # XXX: right now, we auto-adapt to whether multilibs are present:
 # should we force them to be? how?
-#
-# XXX: binutils-libs will need an extra patch for what dtrace does with
-# it in the absence of in-kernel CTF: it will be backported
-# to 2.42, but perhaps a patch would be a good idea before that?
 DEPEND="
dev-libs/elfutils
dev-libs/libbpf



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-09-11 Thread Sam James
commit: 350c1d4e4771b3a72fc6b1f7378efb4a18538400
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep 12 00:36:18 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 12 00:36:20 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=350c1d4e

dev-debug/dtrace: add upstream bug link re mandir

Bug: https://github.com/oracle/dtrace-utils/issues/106
Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild | 1 +
 dev-debug/dtrace/dtrace-.ebuild   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
index cac701e8eb10..2fb1849deaed 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
@@ -141,6 +141,7 @@ src_configure() {
local confargs=(
# TODO: Maybe we should set the UNPRIV_UID to something? -3 is 
a bit... kludgy
--prefix="${EPREFIX}"/usr
+   # See https://github.com/oracle/dtrace-utils/issues/106 for 
man8 suffix
--mandir="${EPREFIX}"/usr/share/man/man8
--docdir="${EPREFIX}"/usr/share/doc/${PF}
HAVE_LIBCTF=yes

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index 643f3f5873f4..0c033c425cb5 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -141,6 +141,7 @@ src_configure() {
local confargs=(
# TODO: Maybe we should set the UNPRIV_UID to something? -3 is 
a bit... kludgy
--prefix="${EPREFIX}"/usr
+   # See https://github.com/oracle/dtrace-utils/issues/106 for 
man8 suffix
--mandir="${EPREFIX}"/usr/share/man/man8
--docdir="${EPREFIX}"/usr/share/doc/${PF}
HAVE_LIBCTF=yes



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-09-11 Thread Sam James
commit: 5c77941f4535cf5bfc76f84c6d48bafb4465a6b9
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep 12 00:28:00 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 12 00:28:07 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c77941f

dev-debug/dtrace: suppress harmless execstack warning for BPF object

Bug: https://bugs.gentoo.org/938221
Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild | 6 ++
 dev-debug/dtrace/dtrace-.ebuild   | 6 ++
 2 files changed, 12 insertions(+)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
index 3032bf884998..cac701e8eb10 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
@@ -76,6 +76,12 @@ QA_FLAGS_IGNORED="
usr/.*/dtrace/testsuite/test/triggers/.*
 "
 
+# TODO: report upstream (bug #938221) although it seems like it's
+# not relevant given it's a BPF object.
+QA_EXECSTACK="
+   usr/*/dtrace/bpf_dlib.*
+"
+
 pkg_pretend() {
# TODO: optional kernel patches
 

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index 9eb7d366c037..643f3f5873f4 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -76,6 +76,12 @@ QA_FLAGS_IGNORED="
usr/.*/dtrace/testsuite/test/triggers/.*
 "
 
+# TODO: report upstream (bug #938221) although it seems like it's
+# not relevant given it's a BPF object.
+QA_EXECSTACK="
+   usr/*/dtrace/bpf_dlib.*
+"
+
 pkg_pretend() {
# TODO: optional kernel patches
 



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-09-11 Thread Sam James
commit: 0b93226603134a169a41d1ae2213688167bd2b2c
Author: Sam James  gentoo  org>
AuthorDate: Thu Sep 12 00:06:23 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Sep 12 00:06:31 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b932266

dev-debug/dtrace: rework pkg_postinst

For first installs, we enable the service and start it.

This is unusual, but the behaviour without dtprobed running is
untested/unsupported. It's not a network service, it has no configuration,
reads a single device node, and does all parsing within a seccomp jail. It
also leads to hard-to-diagnose issues because USDT probes won't be registered
and an application might have already started up which needs to be traced.

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild | 42 +--
 dev-debug/dtrace/dtrace-.ebuild   | 42 +--
 2 files changed, 70 insertions(+), 14 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
index 413cba677aed..3032bf884998 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
@@ -171,26 +171,54 @@ pkg_postinst() {
# We need a udev reload to pick up the CUSE device node rules.
udev_reload
 
-   # TODO: Restart it on upgrade? (it will carry across its own persistent 
state)
+   # TODO: One option for this is to detect when it's needed (DOF stash 
layout changes)
+   # and then e.g. sleep and restart for the user.
if [[ -n ${REPLACING_VERSIONS} ]]; then
# TODO: Make this more intelligent wrt comparison
if systemd_is_booted ; then
-   einfo "Restart the DTrace 'dtprobed' service after 
upgrades:"
+   einfo "Restart the DTrace 'dtprobed' service after 
upgrades"
+   einfo "once all dtraces are stopped with:"
einfo " systemctl try-restart dtprobed"
else
-   einfo "Restart the DTrace 'dtprobed' service with:"
+   einfo "Restart the DTrace 'dtprobed' service after 
upgrades"
+   einfo "once all dtraces are stopped with:"
einfo " /etc/init.d/dtprobed restart"
fi
else
einfo "See https://wiki.gentoo.org/wiki/DTrace for getting 
started."
 
-   if systemd_is_booted ; then
-   einfo "Enable and start the DTrace 'dtprobed' service 
with:"
+   # We can't do magic for people with ROOT=.
+   if [[ -n ${ROOT} ]] ; then
+   einfo "Enable and start the DTrace 'dtprobed' service 
for systemd with:"
einfo " systemctl enable --now dtprobed"
-   else
-   einfo "Enable and start the DTrace 'dtprobed' service 
with:"
+   einfo
+   einfo "Enable and start the DTrace 'dtprobed' service 
for OpenRC with:"
einfo " rc-update add dtprobed"
einfo " /etc/init.d/dtprobed start"
+   return
+   fi
+
+   # For first installs, we enable the service and start it.
+   #
+   # This is unusual, but the behaviour without dtprobed running
+   # is untested/unsupported. It's not a network service, it
+   # has no configuration, reads a single device node, and
+   # does all parsing within a seccomp jail. It also leads
+   # to hard-to-diagnose issues because USDT probes won't
+   # be registered and an application might have already
+   # started up which needs to be traced.
+   if systemd_is_booted ; then
+   ebegin "Enabling & starting DTrace 'dtprobed' service"
+   systemctl enable --now dtprobed
+   eend $?
+   else
+   ebegin "Enabling DTrace 'dtprobed' service"
+   rc-update add dtprobed
+   eend $?
+
+   ebegin "Starting DTrace 'dtprobed' service"
+   rc-service start dtprobed
+   eend $?
fi
fi
 }

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index 1b544c426da4..9eb7d366c037 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -171,26 +171,54 @@ pkg_postinst() {
# We need a udev reload to pick up the CUSE device node rules.
udev_reload
 
-   # TODO: Restart it on upgrade? (it will carry across its own persistent 
state)
+   # TODO: One option for this is to detect when it's needed (DOF stash 
layout changes)
+   # and then e.g. sl

[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-09-11 Thread Sam James
commit: 063c07a77f3d3b04649bf1e00bc90b1fcd316d1a
Author: Sam James  gentoo  org>
AuthorDate: Wed Sep 11 23:56:28 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Sep 11 23:58:31 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=063c07a7

dev-debug/dtrace: rename USE=install-tests -> USE=test-install

Following discussion with mgorny and us agreeing to use test-install
for Python.

Bug: https://bugs.gentoo.org/531648
Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild | 10 +-
 dev-debug/dtrace/dtrace-.ebuild   | 10 +-
 dev-debug/dtrace/metadata.xml |  2 +-
 3 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
index 0cc975299382..413cba677aed 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
@@ -21,7 +21,7 @@ fi
 
 LICENSE="UPL-1.0"
 SLOT="0"
-IUSE="systemd install-tests"
+IUSE="systemd test-install"
 
 # XXX: right now, we auto-adapt to whether multilibs are present:
 # should we force them to be? how?
@@ -44,7 +44,7 @@ RDEPEND="
${DEPEND}
!dev-debug/systemtap[dtrace-symlink(+)]
net-analyzer/wireshark
-   install-tests? (
+   test-install? (
app-alternatives/bc
app-editors/vim-core
dev-build/make
@@ -96,7 +96,7 @@ pkg_pretend() {
# https://gcc.gnu.org/PR84052
CONFIG_CHECK+=" !GCC_PLUGIN_RANDSTRUCT"
 
-   if use install-tests ; then
+   if use test-install ; then
# See test/modules
CONFIG_CHECK+=" ~EXT4_FS ~ISO9660_FS ~NFS_FS ~RDS ~TUN"
fi
@@ -147,7 +147,7 @@ src_configure() {
 
 src_compile() {
# -j1: https://github.com/oracle/dtrace-utils/issues/82
-   emake verbose=1 -j1 $(usev !install-tests TRIGGERS='')
+   emake verbose=1 -j1 $(usev !test-install TRIGGERS='')
 }
 
 src_test() {
@@ -156,7 +156,7 @@ src_test() {
 }
 
 src_install() {
-   emake DESTDIR="${D}" -j1 install $(usev install-tests install-test)
+   emake DESTDIR="${D}" -j1 install $(usev test-install install-test)
 
# Stripping the BPF libs breaks them
dostrip -x "/usr/$(get_libdir)"

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index 69752d8625d4..1b544c426da4 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -21,7 +21,7 @@ fi
 
 LICENSE="UPL-1.0"
 SLOT="0"
-IUSE="systemd install-tests"
+IUSE="systemd test-install"
 
 # XXX: right now, we auto-adapt to whether multilibs are present:
 # should we force them to be? how?
@@ -44,7 +44,7 @@ RDEPEND="
${DEPEND}
!dev-debug/systemtap[dtrace-symlink(+)]
net-analyzer/wireshark
-   install-tests? (
+   test-install? (
app-alternatives/bc
app-editors/vim-core
dev-build/make
@@ -96,7 +96,7 @@ pkg_pretend() {
# https://gcc.gnu.org/PR84052
CONFIG_CHECK+=" !GCC_PLUGIN_RANDSTRUCT"
 
-   if use install-tests ; then
+   if use test-install ; then
# See test/modules
CONFIG_CHECK+=" ~EXT4_FS ~ISO9660_FS ~NFS_FS ~RDS ~TUN"
fi
@@ -147,7 +147,7 @@ src_configure() {
 
 src_compile() {
# -j1: https://github.com/oracle/dtrace-utils/issues/82
-   emake verbose=1 -j1 $(usev !install-tests TRIGGERS='')
+   emake verbose=1 -j1 $(usev !test-install TRIGGERS='')
 }
 
 src_test() {
@@ -156,7 +156,7 @@ src_test() {
 }
 
 src_install() {
-   emake DESTDIR="${D}" -j1 install $(usev install-tests install-test)
+   emake DESTDIR="${D}" -j1 install $(usev test-install install-test)
 
# Stripping the BPF libs breaks them
dostrip -x "/usr/$(get_libdir)"

diff --git a/dev-debug/dtrace/metadata.xml b/dev-debug/dtrace/metadata.xml
index 00989594025b..815fdabd199d 100644
--- a/dev-debug/dtrace/metadata.xml
+++ b/dev-debug/dtrace/metadata.xml
@@ -10,7 +10,7 @@
Arsen Arsenović


-   
+   
Install the testsuite for manual use. It is not suitable
for automatic execution within the ebuild because it
requires root privlieges.



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-09-10 Thread Sam James
commit: 6934a79ec72f4b72bb82b91618307d49d5230709
Author: Sam James  gentoo  org>
AuthorDate: Wed Sep 11 03:35:10 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Sep 11 03:35:10 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6934a79e

dev-debug/dtrace: Stabilize 2.0.1.1-r2 amd64, #939447

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
index 69752d8625d4..0cc975299382 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
@@ -16,7 +16,7 @@ else

SRC_URI="https://github.com/oracle/dtrace-utils/archive/refs/tags/${PV}.tar.gz 
-> ${P}.tar.gz"
S="${WORKDIR}"/dtrace-utils-${PV}
 
-   KEYWORDS="-* ~amd64"
+   KEYWORDS="-* amd64"
 fi
 
 LICENSE="UPL-1.0"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-09-10 Thread Sam James
commit: 0df5961ae367847be44f1f1f71fdd1b796c3e1d0
Author: Sam James  gentoo  org>
AuthorDate: Tue Sep 10 13:57:28 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Sep 10 13:57:58 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0df5961a

dev-debug/dtrace: build with -j1 for now

Bug: https://github.com/oracle/dtrace-utils/issues/82
Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild | 5 +++--
 dev-debug/dtrace/dtrace-.ebuild   | 5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
index e160180fea3a..69752d8625d4 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
@@ -146,7 +146,8 @@ src_configure() {
 }
 
 src_compile() {
-   emake verbose=1 $(usev !install-tests TRIGGERS='')
+   # -j1: https://github.com/oracle/dtrace-utils/issues/82
+   emake verbose=1 -j1 $(usev !install-tests TRIGGERS='')
 }
 
 src_test() {
@@ -155,7 +156,7 @@ src_test() {
 }
 
 src_install() {
-   emake DESTDIR="${D}" install $(usev install-tests install-test)
+   emake DESTDIR="${D}" -j1 install $(usev install-tests install-test)
 
# Stripping the BPF libs breaks them
dostrip -x "/usr/$(get_libdir)"

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index e160180fea3a..69752d8625d4 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -146,7 +146,8 @@ src_configure() {
 }
 
 src_compile() {
-   emake verbose=1 $(usev !install-tests TRIGGERS='')
+   # -j1: https://github.com/oracle/dtrace-utils/issues/82
+   emake verbose=1 -j1 $(usev !install-tests TRIGGERS='')
 }
 
 src_test() {
@@ -155,7 +156,7 @@ src_test() {
 }
 
 src_install() {
-   emake DESTDIR="${D}" install $(usev install-tests install-test)
+   emake DESTDIR="${D}" -j1 install $(usev install-tests install-test)
 
# Stripping the BPF libs breaks them
dostrip -x "/usr/$(get_libdir)"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-08-30 Thread Sam James
commit: 585dabcee6b0dde736b9ea3f4d02948ec7af12b2
Author: Sam James  gentoo  org>
AuthorDate: Fri Aug 30 18:10:57 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Aug 30 18:11:49 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=585dabce

dev-debug/dtrace: update dev-debug/systemtap blocker

We can now be coinstalled with dev-debug/systemtap if it has 
USE=-dtrace-symlink.

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

 dev-debug/dtrace/{dtrace-2.0.1.1-r1.ebuild => dtrace-2.0.1.1-r2.ebuild} | 2 +-
 dev-debug/dtrace/dtrace-.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
similarity index 99%
rename from dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
rename to dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
index 1129df6ebaf6..e160180fea3a 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1-r2.ebuild
@@ -42,7 +42,7 @@ DEPEND="
 "
 RDEPEND="
${DEPEND}
-   !dev-debug/systemtap
+   !dev-debug/systemtap[dtrace-symlink(+)]
net-analyzer/wireshark
install-tests? (
app-alternatives/bc

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index 1129df6ebaf6..e160180fea3a 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -42,7 +42,7 @@ DEPEND="
 "
 RDEPEND="
${DEPEND}
-   !dev-debug/systemtap
+   !dev-debug/systemtap[dtrace-symlink(+)]
net-analyzer/wireshark
install-tests? (
app-alternatives/bc



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-08-25 Thread Sam James
commit: 662dc63bd2323f7d62e8c16cf44e3e871051dd8a
Author: Sam James  gentoo  org>
AuthorDate: Sun Aug 25 18:48:31 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Aug 25 18:48:55 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=662dc63b

dev-debug/dtrace: add upstream bug link for LTO

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild | 1 +
 dev-debug/dtrace/dtrace-.ebuild   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
index 250c9ddd9755..1129df6ebaf6 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
@@ -129,6 +129,7 @@ src_configure() {
# that can't actually obtain results from probes, even trivial examples
# just hang.
filter-flags -fno-semantic-interposition
+   # https://github.com/oracle/dtrace-utils/issues/86
filter-lto
 
local confargs=(

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index 250c9ddd9755..1129df6ebaf6 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -129,6 +129,7 @@ src_configure() {
# that can't actually obtain results from probes, even trivial examples
# just hang.
filter-flags -fno-semantic-interposition
+   # https://github.com/oracle/dtrace-utils/issues/86
filter-lto
 
local confargs=(



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-08-22 Thread Sam James
commit: b04b4884fb067d279a308f149aee2b9dc11d09ca
Author: Sam James  gentoo  org>
AuthorDate: Thu Aug 22 12:43:45 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Aug 22 12:43:45 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b04b4884

dev-debug/dtrace: elaborate on kprobes being bad

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild | 2 +-
 dev-debug/dtrace/dtrace-.ebuild   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
index adfca6d38fe1..250c9ddd9755 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
@@ -91,7 +91,7 @@ pkg_pretend() {
CONFIG_CHECK+=" ~FPROBE"
# DTrace can fallback to kprobes for fbt but people often want them off
# for security and newer kernels work fine with BPF for that, so
-   # let's omit it.
+   # let's omit it. kprobes are slower and scale poorly.
 
# https://gcc.gnu.org/PR84052
CONFIG_CHECK+=" !GCC_PLUGIN_RANDSTRUCT"

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index adfca6d38fe1..250c9ddd9755 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -91,7 +91,7 @@ pkg_pretend() {
CONFIG_CHECK+=" ~FPROBE"
# DTrace can fallback to kprobes for fbt but people often want them off
# for security and newer kernels work fine with BPF for that, so
-   # let's omit it.
+   # let's omit it. kprobes are slower and scale poorly.
 
# https://gcc.gnu.org/PR84052
CONFIG_CHECK+=" !GCC_PLUGIN_RANDSTRUCT"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-08-22 Thread Sam James
commit: ccab49968707c2d257a8c1c779d31e467b3a166b
Author: Sam James  gentoo  org>
AuthorDate: Thu Aug 22 12:34:33 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Aug 22 12:36:04 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccab4996

dev-debug/dtrace: sort IUSE

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild | 2 +-
 dev-debug/dtrace/dtrace-.ebuild   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
index 04646e70ea08..d7e856a9d1c0 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
@@ -21,7 +21,7 @@ fi
 
 LICENSE="UPL-1.0"
 SLOT="0"
-IUSE="install-tests systemd"
+IUSE="systemd install-tests"
 
 # XXX: right now, we auto-adapt to whether multilibs are present:
 # should we force them to be? how?

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index 04646e70ea08..d7e856a9d1c0 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -21,7 +21,7 @@ fi
 
 LICENSE="UPL-1.0"
 SLOT="0"
-IUSE="install-tests systemd"
+IUSE="systemd install-tests"
 
 # XXX: right now, we auto-adapt to whether multilibs are present:
 # should we force them to be? how?



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-08-22 Thread Sam James
commit: 043b69dd2c5d70baf94cc934c7c3aa2b19e8f632
Author: Sam James  gentoo  org>
AuthorDate: Thu Aug 22 12:35:35 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Aug 22 12:36:05 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=043b69dd

dev-debug/dtrace: fix branch for 'getting started' link

Show it on new installs, not upgrades.

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild | 4 ++--
 dev-debug/dtrace/dtrace-.ebuild   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
index d7e856a9d1c0..adfca6d38fe1 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
@@ -171,8 +171,6 @@ pkg_postinst() {
 
# TODO: Restart it on upgrade? (it will carry across its own persistent 
state)
if [[ -n ${REPLACING_VERSIONS} ]]; then
-   einfo "See https://wiki.gentoo.org/wiki/DTrace for getting 
started."
-
# TODO: Make this more intelligent wrt comparison
if systemd_is_booted ; then
einfo "Restart the DTrace 'dtprobed' service after 
upgrades:"
@@ -182,6 +180,8 @@ pkg_postinst() {
einfo " /etc/init.d/dtprobed restart"
fi
else
+   einfo "See https://wiki.gentoo.org/wiki/DTrace for getting 
started."
+
if systemd_is_booted ; then
einfo "Enable and start the DTrace 'dtprobed' service 
with:"
einfo " systemctl enable --now dtprobed"

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index d7e856a9d1c0..adfca6d38fe1 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -171,8 +171,6 @@ pkg_postinst() {
 
# TODO: Restart it on upgrade? (it will carry across its own persistent 
state)
if [[ -n ${REPLACING_VERSIONS} ]]; then
-   einfo "See https://wiki.gentoo.org/wiki/DTrace for getting 
started."
-
# TODO: Make this more intelligent wrt comparison
if systemd_is_booted ; then
einfo "Restart the DTrace 'dtprobed' service after 
upgrades:"
@@ -182,6 +180,8 @@ pkg_postinst() {
einfo " /etc/init.d/dtprobed restart"
fi
else
+   einfo "See https://wiki.gentoo.org/wiki/DTrace for getting 
started."
+
if systemd_is_booted ; then
einfo "Enable and start the DTrace 'dtprobed' service 
with:"
einfo " systemctl enable --now dtprobed"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-08-22 Thread Sam James
commit: b2f1216adb56a434ab8e590cb530ce79c2e4da1a
Author: Sam James  gentoo  org>
AuthorDate: Thu Aug 22 12:20:46 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Aug 22 12:21:41 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2f1216a

dev-debug/dtrace: improve config checks further (mostly pedantry, also for 
tests)

This adds some technically-required-but-already-covered-by-dependencies
CONFIG_* requirements in general, and then some real config requirements
we were missing for the testsuite.

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild | 12 +++-
 dev-debug/dtrace/dtrace-.ebuild   | 12 +++-
 2 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
index f084535e5911..04646e70ea08 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
@@ -85,12 +85,22 @@ pkg_pretend() {
CONFIG_CHECK+=" ~CUSE"
 
# Tracing
-   CONFIG_CHECK+=" ~FTRACE_SYSCALLS ~UPROBE_EVENTS ~DYNAMIC_FTRACE 
~FUNCTION_TRACER"
+   CONFIG_CHECK+=" ~TRACING"
+   CONFIG_CHECK+=" ~UPROBES ~UPROBE_EVENTS"
+   CONFIG_CHECK+=" ~FTRACE ~FTRACE_SYSCALLS ~DYNAMIC_FTRACE 
~FUNCTION_TRACER"
CONFIG_CHECK+=" ~FPROBE"
+   # DTrace can fallback to kprobes for fbt but people often want them off
+   # for security and newer kernels work fine with BPF for that, so
+   # let's omit it.
 
# https://gcc.gnu.org/PR84052
CONFIG_CHECK+=" !GCC_PLUGIN_RANDSTRUCT"
 
+   if use install-tests ; then
+   # See test/modules
+   CONFIG_CHECK+=" ~EXT4_FS ~ISO9660_FS ~NFS_FS ~RDS ~TUN"
+   fi
+
check_extra_config
 }
 

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index f084535e5911..04646e70ea08 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -85,12 +85,22 @@ pkg_pretend() {
CONFIG_CHECK+=" ~CUSE"
 
# Tracing
-   CONFIG_CHECK+=" ~FTRACE_SYSCALLS ~UPROBE_EVENTS ~DYNAMIC_FTRACE 
~FUNCTION_TRACER"
+   CONFIG_CHECK+=" ~TRACING"
+   CONFIG_CHECK+=" ~UPROBES ~UPROBE_EVENTS"
+   CONFIG_CHECK+=" ~FTRACE ~FTRACE_SYSCALLS ~DYNAMIC_FTRACE 
~FUNCTION_TRACER"
CONFIG_CHECK+=" ~FPROBE"
+   # DTrace can fallback to kprobes for fbt but people often want them off
+   # for security and newer kernels work fine with BPF for that, so
+   # let's omit it.
 
# https://gcc.gnu.org/PR84052
CONFIG_CHECK+=" !GCC_PLUGIN_RANDSTRUCT"
 
+   if use install-tests ; then
+   # See test/modules
+   CONFIG_CHECK+=" ~EXT4_FS ~ISO9660_FS ~NFS_FS ~RDS ~TUN"
+   fi
+
check_extra_config
 }
 



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-08-19 Thread Sam James
commit: 0cb548055bceec50d138901f610234b782e9da9e
Author: Sam James  gentoo  org>
AuthorDate: Tue Aug 20 01:47:55 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Aug 20 01:48:18 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cb54805

dev-debug/dtrace: update F_S comment in non-live

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
index 146682a2fa83..f084535e5911 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
@@ -105,7 +105,7 @@ src_configure() {
 
tc-export CC
 
-   # TODO: Can drop once 
https://lore.kernel.org/dtrace/20240425164057.420580-1-nick.alc...@oracle.com/ 
is in
+   # https://github.com/oracle/dtrace-utils/issues/78
tc-enables-fortify-source && append-cppflags -U_FORTIFY_SOURCE
 
# lld does this by default, so fix that, although lld fails anyway...



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-08-19 Thread Sam James
commit: ba6a8a8586235fe618dbdf1d295f22237e857f56
Author: Sam James  gentoo  org>
AuthorDate: Tue Aug 20 01:47:10 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Aug 20 01:48:17 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba6a8a85

dev-debug/dtrace: check for CONFIG_FPROBE

fbt can use the fprobe machinery.

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild | 1 +
 dev-debug/dtrace/dtrace-.ebuild   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
index be756c64a0bf..146682a2fa83 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
@@ -86,6 +86,7 @@ pkg_pretend() {
 
# Tracing
CONFIG_CHECK+=" ~FTRACE_SYSCALLS ~UPROBE_EVENTS ~DYNAMIC_FTRACE 
~FUNCTION_TRACER"
+   CONFIG_CHECK+=" ~FPROBE"
 
# https://gcc.gnu.org/PR84052
CONFIG_CHECK+=" !GCC_PLUGIN_RANDSTRUCT"

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index b43c5d9e4a8c..f084535e5911 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -86,6 +86,7 @@ pkg_pretend() {
 
# Tracing
CONFIG_CHECK+=" ~FTRACE_SYSCALLS ~UPROBE_EVENTS ~DYNAMIC_FTRACE 
~FUNCTION_TRACER"
+   CONFIG_CHECK+=" ~FPROBE"
 
# https://gcc.gnu.org/PR84052
CONFIG_CHECK+=" !GCC_PLUGIN_RANDSTRUCT"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-08-19 Thread Sam James
commit: 98aee34a2292d56d2132eb87542157537cb72a0a
Author: Sam James  gentoo  org>
AuthorDate: Tue Aug 20 01:46:17 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Aug 20 01:48:16 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98aee34a

dev-debug/dtrace: suppress binary warnings for USE=install-tests

We can't impose our requirements on parts of the testsuite.

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild | 7 +++
 dev-debug/dtrace/dtrace-.ebuild   | 7 +++
 2 files changed, 14 insertions(+)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
index 4a48a07e8545..be756c64a0bf 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
@@ -69,6 +69,13 @@ BDEPEND="
 # https://github.com/oracle/dtrace-utils/issues/80
 DEPEND+=" dev-debug/valgrind"
 
+QA_PRESTRIPPED="
+   usr/.*/dtrace/testsuite/test/triggers/.*
+"
+QA_FLAGS_IGNORED="
+   usr/.*/dtrace/testsuite/test/triggers/.*
+"
+
 pkg_pretend() {
# TODO: optional kernel patches
 

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index 40c98e7440cd..b43c5d9e4a8c 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -69,6 +69,13 @@ BDEPEND="
 # https://github.com/oracle/dtrace-utils/issues/80
 DEPEND+=" dev-debug/valgrind"
 
+QA_PRESTRIPPED="
+   usr/.*/dtrace/testsuite/test/triggers/.*
+"
+QA_FLAGS_IGNORED="
+   usr/.*/dtrace/testsuite/test/triggers/.*
+"
+
 pkg_pretend() {
# TODO: optional kernel patches
 



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-08-19 Thread Sam James
commit: 850a084b7f9ba426afb1febec97c613c90498484
Author: Sam James  gentoo  org>
AuthorDate: Mon Aug 19 23:26:26 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Aug 19 23:26:51 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=850a084b

dev-debug/dtrace: fix man page location

Bug: https://bugs.gentoo.org/938209
Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/{dtrace-2.0.1.1.ebuild => dtrace-2.0.1.1-r1.ebuild} | 2 +-
 dev-debug/dtrace/dtrace-.ebuild  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
similarity index 99%
rename from dev-debug/dtrace/dtrace-2.0.1.1.ebuild
rename to dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
index 8f1cbd7f3011..4a48a07e8545 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1-r1.ebuild
@@ -116,7 +116,7 @@ src_configure() {
local confargs=(
# TODO: Maybe we should set the UNPRIV_UID to something? -3 is 
a bit... kludgy
--prefix="${EPREFIX}"/usr
-   --mandir="${EPREFIX}"/usr/share/man
+   --mandir="${EPREFIX}"/usr/share/man/man8
--docdir="${EPREFIX}"/usr/share/doc/${PF}
HAVE_LIBCTF=yes
HAVE_LIBSYSTEMD=$(usex systemd)

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index 8fb8a63fc9a2..40c98e7440cd 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -116,7 +116,7 @@ src_configure() {
local confargs=(
# TODO: Maybe we should set the UNPRIV_UID to something? -3 is 
a bit... kludgy
--prefix="${EPREFIX}"/usr
-   --mandir="${EPREFIX}"/usr/share/man
+   --mandir="${EPREFIX}"/usr/share/man/man8
--docdir="${EPREFIX}"/usr/share/doc/${PF}
HAVE_LIBCTF=yes
HAVE_LIBSYSTEMD=$(usex systemd)



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-08-19 Thread Sam James
commit: b2b727d8c6a6c01eac48781e78540a22b9960992
Author: Sam James  gentoo  org>
AuthorDate: Mon Aug 19 20:14:59 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Aug 19 20:14:59 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2b727d8

dev-debug/dtrace: DEPEND on dev-debug/valgrind again for now, for valgrind.h

It's unconditionally included and I wrongly removed it because I grepped
badly. This will be fixed later but let's get the dep right for now.

Closes: https://bugs.gentoo.org/938190
Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.1.1.ebuild | 3 +++
 dev-debug/dtrace/dtrace-.ebuild| 3 +++
 2 files changed, 6 insertions(+)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1.ebuild
index 5baf5c47c35c..8f1cbd7f3011 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1.ebuild
@@ -65,6 +65,9 @@ BDEPEND="
>=sys-devel/bpf-toolchain-14.1.0
sys-devel/flex
 "
+# TODO: Make this optional, valgrind.h is included unconditionally
+# https://github.com/oracle/dtrace-utils/issues/80
+DEPEND+=" dev-debug/valgrind"
 
 pkg_pretend() {
# TODO: optional kernel patches

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index 73afc981b1fd..8fb8a63fc9a2 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -65,6 +65,9 @@ BDEPEND="
>=sys-devel/bpf-toolchain-14.1.0
sys-devel/flex
 "
+# TODO: Make this optional, valgrind.h is included unconditionally
+# https://github.com/oracle/dtrace-utils/issues/80
+DEPEND+=" dev-debug/valgrind"
 
 pkg_pretend() {
# TODO: optional kernel patches



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-08-18 Thread Sam James
commit: 3531903948fb3c0cba9448d23151900991674f0c
Author: Sam James  gentoo  org>
AuthorDate: Sun Aug 18 22:58:35 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Aug 18 22:58:35 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35319039

dev-debug/dtrace: add link to upstream bug re _F_S

Bug: https://github.com/oracle/dtrace-utils/issues/78
Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-.ebuild | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index 15e7ca0357a0..73afc981b1fd 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -94,8 +94,7 @@ src_configure() {
 
tc-export CC
 
-   # TODO: Can drop once 
https://lore.kernel.org/dtrace/20240425164057.420580-1-nick.alc...@oracle.com/ 
is in
-   # XXX: That wasn't enough, need to report upstream the other issues 
during build
+   # https://github.com/oracle/dtrace-utils/issues/78
tc-enables-fortify-source && append-cppflags -U_FORTIFY_SOURCE
 
# lld does this by default, so fix that, although lld fails anyway...



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-08-18 Thread Sam James
commit: 9ca5f3ec5b020f13aaa9d1221bce9ae41ee34aaf
Author: Sam James  gentoo  org>
AuthorDate: Sun Aug 18 21:47:04 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Aug 18 21:47:08 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ca5f3ec

dev-debug/dtrace: tweak DESCRIPTION, sort BDEPEND

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.1.1.ebuild | 4 ++--
 dev-debug/dtrace/dtrace-.ebuild| 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1.ebuild
index 88e94aeab587..5baf5c47c35c 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 inherit edo flag-o-matic linux-info systemd toolchain-funcs udev
 
-DESCRIPTION="Dynamic systemwide tracing tool"
+DESCRIPTION="Dynamic BPF-based system-wide tracing tool"
 HOMEPAGE="https://github.com/oracle/dtrace-utils 
https://wiki.gentoo.org/wiki/DTrace";
 
 if [[ ${PV} ==  ]]; then
@@ -60,9 +60,9 @@ RDEPEND="
 "
 BDEPEND="
dev-build/make
-   >=sys-devel/bpf-toolchain-14.1.0
sys-apps/gawk
sys-devel/bison
+   >=sys-devel/bpf-toolchain-14.1.0
sys-devel/flex
 "
 

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index a4a42f455239..15e7ca0357a0 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 inherit edo flag-o-matic linux-info systemd toolchain-funcs udev
 
-DESCRIPTION="Dynamic systemwide tracing tool"
+DESCRIPTION="Dynamic BPF-based system-wide tracing tool"
 HOMEPAGE="https://github.com/oracle/dtrace-utils 
https://wiki.gentoo.org/wiki/DTrace";
 
 if [[ ${PV} ==  ]]; then
@@ -60,9 +60,9 @@ RDEPEND="
 "
 BDEPEND="
dev-build/make
-   >=sys-devel/bpf-toolchain-14.1.0
sys-apps/gawk
sys-devel/bison
+   >=sys-devel/bpf-toolchain-14.1.0
sys-devel/flex
 "
 



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-08-18 Thread Sam James
commit: cd20b4254982e8a3b2107271d8c5f8765f429937
Author: Sam James  gentoo  org>
AuthorDate: Sun Aug 18 21:42:18 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Aug 18 21:42:18 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd20b425

dev-debug/dtrace: cleanup kernel config checks

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.1.1.ebuild | 6 +++---
 dev-debug/dtrace/dtrace-.ebuild| 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1.ebuild
index 8d1b0b1a3b94..88e94aeab587 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1.ebuild
@@ -70,11 +70,11 @@ pkg_pretend() {
# TODO: optional kernel patches
 
# Basics for debugging information, BPF
-   local CONFIG_CHECK="~BPF ~DEBUG_INFO_BTF ~KALLSYMS_ALL ~CUSE"
+   local CONFIG_CHECK="~BPF ~DEBUG_INFO_BTF ~KALLSYMS_ALL"
+
+   CONFIG_CHECK+=" ~CUSE"
 
# Tracing
-   # TODO: CONFIG_HAVE_SYSCALL_TRACEPOINTS - is it auto?
-   # TODO: CONFIG_UPROBE_EVENTS maybe?
CONFIG_CHECK+=" ~FTRACE_SYSCALLS ~UPROBE_EVENTS ~DYNAMIC_FTRACE 
~FUNCTION_TRACER"
 
# https://gcc.gnu.org/PR84052

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index c536eb50ce91..a4a42f455239 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -70,11 +70,11 @@ pkg_pretend() {
# TODO: optional kernel patches
 
# Basics for debugging information, BPF
-   local CONFIG_CHECK="~BPF ~DEBUG_INFO_BTF ~KALLSYMS_ALL ~CUSE"
+   local CONFIG_CHECK="~BPF ~DEBUG_INFO_BTF ~KALLSYMS_ALL"
+
+   CONFIG_CHECK+=" ~CUSE"
 
# Tracing
-   # TODO: CONFIG_HAVE_SYSCALL_TRACEPOINTS - is it auto?
-   # TODO: CONFIG_UPROBE_EVENTS maybe?
CONFIG_CHECK+=" ~FTRACE_SYSCALLS ~UPROBE_EVENTS ~DYNAMIC_FTRACE 
~FUNCTION_TRACER"
 
# https://gcc.gnu.org/PR84052



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/

2024-08-18 Thread Sam James
commit: 692bd572180be2bc47e6220d535416f699a65ea1
Author: Sam James  gentoo  org>
AuthorDate: Sun Aug 18 21:36:01 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Aug 18 21:36:01 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=692bd572

dev-debug/dtrace: update HOMEPAGE, link to wiki page in pkg_postinst

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/dtrace-2.0.1.1.ebuild | 5 +++--
 dev-debug/dtrace/dtrace-.ebuild| 4 +++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1.ebuild
index 7c697bf009cf..8d1b0b1a3b94 100644
--- a/dev-debug/dtrace/dtrace-2.0.1.1.ebuild
+++ b/dev-debug/dtrace/dtrace-2.0.1.1.ebuild
@@ -6,7 +6,7 @@ EAPI=8
 inherit edo flag-o-matic linux-info systemd toolchain-funcs udev
 
 DESCRIPTION="Dynamic systemwide tracing tool"
-HOMEPAGE="https://github.com/oracle/dtrace-utils";
+HOMEPAGE="https://github.com/oracle/dtrace-utils 
https://wiki.gentoo.org/wiki/DTrace";
 
 if [[ ${PV} ==  ]]; then
EGIT_BRANCH="devel"
@@ -95,7 +95,6 @@ src_configure() {
tc-export CC
 
# TODO: Can drop once 
https://lore.kernel.org/dtrace/20240425164057.420580-1-nick.alc...@oracle.com/ 
is in
-   # XXX: That wasn't enough, need to report upstream the other issues 
during build
tc-enables-fortify-source && append-cppflags -U_FORTIFY_SOURCE
 
# lld does this by default, so fix that, although lld fails anyway...
@@ -151,6 +150,8 @@ pkg_postinst() {
 
# TODO: Restart it on upgrade? (it will carry across its own persistent 
state)
if [[ -n ${REPLACING_VERSIONS} ]]; then
+   einfo "See https://wiki.gentoo.org/wiki/DTrace for getting 
started."
+
# TODO: Make this more intelligent wrt comparison
if systemd_is_booted ; then
einfo "Restart the DTrace 'dtprobed' service after 
upgrades:"

diff --git a/dev-debug/dtrace/dtrace-.ebuild 
b/dev-debug/dtrace/dtrace-.ebuild
index 7c697bf009cf..c536eb50ce91 100644
--- a/dev-debug/dtrace/dtrace-.ebuild
+++ b/dev-debug/dtrace/dtrace-.ebuild
@@ -6,7 +6,7 @@ EAPI=8
 inherit edo flag-o-matic linux-info systemd toolchain-funcs udev
 
 DESCRIPTION="Dynamic systemwide tracing tool"
-HOMEPAGE="https://github.com/oracle/dtrace-utils";
+HOMEPAGE="https://github.com/oracle/dtrace-utils 
https://wiki.gentoo.org/wiki/DTrace";
 
 if [[ ${PV} ==  ]]; then
EGIT_BRANCH="devel"
@@ -151,6 +151,8 @@ pkg_postinst() {
 
# TODO: Restart it on upgrade? (it will carry across its own persistent 
state)
if [[ -n ${REPLACING_VERSIONS} ]]; then
+   einfo "See https://wiki.gentoo.org/wiki/DTrace for getting 
started."
+
# TODO: Make this more intelligent wrt comparison
if systemd_is_booted ; then
einfo "Restart the DTrace 'dtprobed' service after 
upgrades:"



[gentoo-commits] repo/gentoo:master commit in: dev-debug/dtrace/, dev-debug/dtrace/files/

2024-08-18 Thread Sam James
commit: de83d17702a7f6b8a14264e2662f4819547040fd
Author: Sam James  gentoo  org>
AuthorDate: Mon May  6 17:30:16 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Aug 18 21:28:19 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de83d177

dev-debug/dtrace: new package, add 2.0.1.1, add 

This is the modern incarnation of DTrace. It is now BPF-based and requires
no out-of-tree code or modules.

i.e. it Just Works with sys-kernel/gentoo-kernel[-hardened,debug] (*).

Please see https://wiki.gentoo.org/wiki/DTrace and report any issues.

There is still some pending work to be done for integration in Gentoo:
* Figuring out collision with dev-debug/systemtap
* Wiring up DTrace/systemtap probe support in more packages
* Deciding on consistent naming/global USE for that support

But the tooling works as-is. Enjoy!

(*) -hardened is needed for now because of CONFIG_GCC_PLUGIN_RANDSTRUCT,
see https://gcc.gnu.org/PR84052. Investigation is ongoing on fixing this.

Signed-off-by: Sam James  gentoo.org>

 dev-debug/dtrace/Manifest  |   1 +
 dev-debug/dtrace/dtrace-2.0.1.1.ebuild | 176 +
 dev-debug/dtrace/dtrace-.ebuild| 176 +
 dev-debug/dtrace/files/dtprobed.init   |  15 +++
 dev-debug/dtrace/metadata.xml  |  22 +
 5 files changed, 390 insertions(+)

diff --git a/dev-debug/dtrace/Manifest b/dev-debug/dtrace/Manifest
new file mode 100644
index ..554f7f6f5e67
--- /dev/null
+++ b/dev-debug/dtrace/Manifest
@@ -0,0 +1 @@
+DIST dtrace-2.0.1.1.tar.gz 1435524 BLAKE2B 
761a931b9d871e9316f11ebe960f6bbfd3c16a82cf1cdd9ae5d69b22e0d8cea8d4b3924c960b7915f8843ce1e5c37bd257a52f1ce346957002b0ab00e59306fb
 SHA512 
15809f2bc996bac9bd6cbb2b03eaa9a0c6a2aea9404642280f14d75b7d6feaec31b5d2c16915255cd202006cdff7835f578c042b087605708a9eb935407f1b95

diff --git a/dev-debug/dtrace/dtrace-2.0.1.1.ebuild 
b/dev-debug/dtrace/dtrace-2.0.1.1.ebuild
new file mode 100644
index ..7c697bf009cf
--- /dev/null
+++ b/dev-debug/dtrace/dtrace-2.0.1.1.ebuild
@@ -0,0 +1,176 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit edo flag-o-matic linux-info systemd toolchain-funcs udev
+
+DESCRIPTION="Dynamic systemwide tracing tool"
+HOMEPAGE="https://github.com/oracle/dtrace-utils";
+
+if [[ ${PV} ==  ]]; then
+   EGIT_BRANCH="devel"
+   EGIT_REPO_URI="https://github.com/oracle/dtrace-utils";
+   inherit git-r3
+else
+   
SRC_URI="https://github.com/oracle/dtrace-utils/archive/refs/tags/${PV}.tar.gz 
-> ${P}.tar.gz"
+   S="${WORKDIR}"/dtrace-utils-${PV}
+
+   KEYWORDS="-* ~amd64"
+fi
+
+LICENSE="UPL-1.0"
+SLOT="0"
+IUSE="install-tests systemd"
+
+# XXX: right now, we auto-adapt to whether multilibs are present:
+# should we force them to be? how?
+#
+# XXX: binutils-libs will need an extra patch for what dtrace does with
+# it in the absence of in-kernel CTF: it will be backported
+# to 2.42, but perhaps a patch would be a good idea before that?
+DEPEND="
+   dev-libs/elfutils
+   dev-libs/libbpf
+   dev-libs/libpfm:=
+   net-analyzer/wireshark[dumpcap]
+   net-libs/libpcap
+   >=sys-fs/fuse-3.2.0:3
+   >=sys-libs/binutils-libs-2.42:=
+   sys-libs/zlib
+   systemd? ( sys-apps/systemd )
+"
+RDEPEND="
+   ${DEPEND}
+   !dev-debug/systemtap
+   net-analyzer/wireshark
+   install-tests? (
+   app-alternatives/bc
+   app-editors/vim-core
+   dev-build/make
+   dev-lang/perl
+   dev-util/perf
+   net-fs/nfs-utils
+   sys-apps/coreutils
+   sys-fs/xfsprogs
+   sys-process/time
+   virtual/jdk
+   virtual/perl-IO-Socket-IP
+   )
+"
+BDEPEND="
+   dev-build/make
+   >=sys-devel/bpf-toolchain-14.1.0
+   sys-apps/gawk
+   sys-devel/bison
+   sys-devel/flex
+"
+
+pkg_pretend() {
+   # TODO: optional kernel patches
+
+   # Basics for debugging information, BPF
+   local CONFIG_CHECK="~BPF ~DEBUG_INFO_BTF ~KALLSYMS_ALL ~CUSE"
+
+   # Tracing
+   # TODO: CONFIG_HAVE_SYSCALL_TRACEPOINTS - is it auto?
+   # TODO: CONFIG_UPROBE_EVENTS maybe?
+   CONFIG_CHECK+=" ~FTRACE_SYSCALLS ~UPROBE_EVENTS ~DYNAMIC_FTRACE 
~FUNCTION_TRACER"
+
+   # https://gcc.gnu.org/PR84052
+   CONFIG_CHECK+=" !GCC_PLUGIN_RANDSTRUCT"
+
+   check_extra_config
+}
+
+pkg_setup() {
+   eval unset ${!LC_*} LANG
+}
+
+src_configure() {
+   if tc-is-cross-compiler; then
+   die "DTrace does not yet support cross-compilation."
+   fi
+
+   tc-export CC
+
+   # TODO: Can drop once 
https://lore.kernel.org/dtrace/20240425164057.420580-1-nick.alc...@oracle.com/ 
is in
+   # XXX: That wasn't enough, need to report upstream the other issues 
during build
+   tc-enables-fortify-