diff --git a/srcpkgs/dtrace-utils/patches/configure.patch b/srcpkgs/dtrace-utils/patches/configure.patch new file mode 100644 index 00000000000..36798d24599 --- /dev/null +++ b/srcpkgs/dtrace-utils/patches/configure.patch @@ -0,0 +1,11 @@ +--- a/configure ++++ b/configure +@@ -173,7 +173,7 @@ + HAVE_BPFV3=*) write_config_var BPFV3 "$option";; + HAVE_BPFMASM=*) write_config_var BPFMASM "$option";; + *) echo "Unknown option $option" >&2 +- exit 1;; ++ ;; + esac + done + diff --git a/srcpkgs/dtrace-utils/template b/srcpkgs/dtrace-utils/template new file mode 100644 index 00000000000..b72611bdad5 --- /dev/null +++ b/srcpkgs/dtrace-utils/template @@ -0,0 +1,29 @@ +# Template file for 'dtrace-utils' +pkgname=dtrace-utils +version=2.0.2 +revision=1 +archs="~*-musl" # ld.so internals, other glibc specifics +build_style=gnu-configure +hostmakedepends="cross-bpf-binutils cross-bpf-gcc flex libgomp-devel pkg-config + shadow" +makedepends="binutils-devel elfutils-devel fuse-devel libbpf-devel libpcap-devel + libpfm4-devel valgrind-devel" +short_desc="Linux version of the DTrace tracing tool" +maintainer="Leah Neukirchen " +license="UPL-1.0" +homepage="https://github.com/oracle/dtrace-utils" +distfiles="https://github.com/oracle/dtrace-utils/archive/refs/tags/${version}.tar.gz" +checksum=0636546b8286d67de0e41148f5c73cf8f4339f5989da3113442eb51421bc4916 +nostrip_files="bpf_dlib.o libdtrace.so.2.0.0" +make_check=no # needs root +nocross=yes # mkoffsets +conflicts="systemtap>=0" + +export BPFC="bpf-gcc" +export BPFLD="bpf-ld" + +post_install() { + rm ${DESTDIR}/usr/share/doc/dtrace-*/showUSDT + mv ${DESTDIR}/lib64/* ${DESTDIR}/usr/lib/ + rmdir ${DESTDIR}/lib64 +}