From bad9bf87b08d293eb79ebe14d1882e77da2b0ced Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 21 Aug 2024 12:26:06 +0100 Subject: gentoo auto-resync : 21:08:2024 - 12:26:06 --- dev-debug/systemtap/Manifest | 9 +- dev-debug/systemtap/metadata.xml | 1 + dev-debug/systemtap/systemtap-4.8.ebuild | 6 +- dev-debug/systemtap/systemtap-5.0-r1.ebuild | 6 +- dev-debug/systemtap/systemtap-5.1.ebuild | 153 +++++++++++++++++++++++++++ dev-debug/systemtap/systemtap-9999.ebuild | 154 ++++++++++++++++++++++++++++ 6 files changed, 320 insertions(+), 9 deletions(-) create mode 100644 dev-debug/systemtap/systemtap-5.1.ebuild create mode 100644 dev-debug/systemtap/systemtap-9999.ebuild (limited to 'dev-debug/systemtap') diff --git a/dev-debug/systemtap/Manifest b/dev-debug/systemtap/Manifest index bb9c6c26877c..da65ad869038 100644 --- a/dev-debug/systemtap/Manifest +++ b/dev-debug/systemtap/Manifest @@ -1,6 +1,9 @@ AUX systemtap-3.1-ia64.patch 885 BLAKE2B e26c60e4549f95f0db3e128cd535f923f03dc45e0e4ff4049d6b8d6cf44375f88c752a0130e4229a5ccf83a414db8f91504f4ef828d3a7d3d94a5eee78a9e90f SHA512 a9f068dafc2fb4c96696d8cfe1501fc3610f4ab0aaea9a20ffc5f57cda09561f9712896616c548661bbbc5c10dfe275d218c7b232645a5240507c80bec1850cd DIST systemtap-4.8.tar.gz 5628003 BLAKE2B 9f5050eba29d390c907b117187f94ef088f16bb739b4971bc32ffe88b1024a4157cd4e9793a8fc1e149a5a182a28330e3b4fd9d51213bb3637d616fbb9867f6d SHA512 fdcbc48ba17b2155c1419d99147a4cfbee2e69db945bfd0e6881b71ab11165bd23ea7ce9456856ae36807fb18f9934880a6b7c44456b63833ea260038744d9f2 DIST systemtap-5.0.tar.gz 6572411 BLAKE2B db962df2fdcbc5bc11259c03d78073924f03fee4434dca8686a62fcb0818dab1ca91558160dd9d67d43b709f63ffe4f0af30ab1fe6965e19155bdd4c04501a04 SHA512 dc511a05e66abcbbd8c926973962751196180f3c571d0cd2a3b158ae367c5339ad32967a680ecd03224ab5f7ed2c55be7064867e4fb1b1cd7ea1cb21b2436e4c -EBUILD systemtap-4.8.ebuild 3289 BLAKE2B da64029050587f4c0f8549cc4c14926395ceab9eafb45a8469cbf7aed45374715e59bfaa9425912217ac380243155a925fb448ab9ccd4904b91bb7145332cf5f SHA512 512eef09c40a2970fece747d19a99a685085781ae636e2d0424076542a115912b4b2700d8a571ce80a25cb19c9e7dfc9bdeeba7d962aebbf73c5f73db7661462 -EBUILD systemtap-5.0-r1.ebuild 3770 BLAKE2B 16ab2635da26dce9a47743d2284cd0f6622157ce57ffc0982b44466fa5e69a6556d8226c50b4c5d62a62f1512f943bef38cc02a965c1c55a5e9d92adf11b58eb SHA512 ab9a629edea7101b434881be79d9640a009a13ce6c57fdcd929284bb2438a503ad88f2e2088f62ce6e16cd0c7cc678a31e83f2e96ee6250ca2b4e7906c62351a -MISC metadata.xml 303 BLAKE2B 5db95d500a08d656d0221a474d297c8357712f19334f45db347e36f14a10365d65777e0d24c68f75d4855b3ee1778dca1ecf4a05b19d2dd3975acf25a12b4523 SHA512 27261bc875c881495a9b0e1fffc811dff40b763a9e6453ca47143cb8d7d867682becd7266f8d559ad8c32bb5d7de9698341055d483f3e6a68b107895aa174b77 +DIST systemtap-5.1.tar.gz 6590820 BLAKE2B 22be535b7c55d0ab90a5361a23fad93c436560c14fbbd345aca7ea2c0fcdd0f66b1ef8591800f86a14cc7ae7fe737a120695d76fe15bfdb8b349080228c37e90 SHA512 da0fe237d2124031a5786d1221dbb420d90da5497376715fd43a7a9f61a354a229c1128e67ce6becbc012aa3796dc5d337149e239e3c1def0651b179e5bf199f +EBUILD systemtap-4.8.ebuild 3280 BLAKE2B 513575c5f89b5f66a5b9bf477126faa42932a357dd6a85fb45e974a0b5e311c9cb2880a5ee11fde203e0e54dd11c59e5e723c2726b3a94b4a609e1c4d777fa8f SHA512 027a5ef5f42c0abce481258e11e753984a0e85101e9f0c6e29fe6db689c8d86fb700ca47ac691a7851c83b4c9a1a3dbb0899c38b2c6ce8504796b295cb51784c +EBUILD systemtap-5.0-r1.ebuild 3761 BLAKE2B abeed521d989e75a1c4d1523276f786bb70679c98fe092a08b3539c3236c9ee0d8d479eb612976743b74732aad83915589b7e8ce791c15a30839d400e9351013 SHA512 3388d4fbd408295abc409d2a7e15548999986d28f8fc7e17629485ba42c64bdaa5f6d9d55c6f39bd85acd14f56a91e680934b79bd4eceb08a96d267eef554bc9 +EBUILD systemtap-5.1.ebuild 4062 BLAKE2B bb1ee40a152a74c563fb73a8e4860342affd719804e4d4bc55115472b08ad4665f5a544f89360e1841732a3970d81f1a13a37039e1c2055172a09bfea48ca4e2 SHA512 fae7b5d515544969278236a5d67754dacb41eebc01a64533c5762a5fdd7ea377f870b42e927bc4e3f0ba0aeb1adcfffef63bfa0b98e9e1646296d7800969d498 +EBUILD systemtap-9999.ebuild 4082 BLAKE2B 9c5c220aad98ad1f0cf5f4d61d5cf4803b28b0de15ef951974af692d2b05080600d7975457a4f03bff265c95732f7e8955563b5775abd44926a939b31f808eed SHA512 bf67f201dfb3a2904222c68929ac0c81d6e8af7f330ee716a27aaa90e428f845ed4d897aa486b51564d6860ef7ec0c297026be2976fa72dff67555ed5ae7c4b3 +MISC metadata.xml 411 BLAKE2B e9c7b85009b959eda20160229ba22b41336fb4d95c636f4ad579d8f65c57a2af1b92ed19d4f31fba6129b192e3cebb24b995d2dbe5475ae3f5913b74329e2090 SHA512 4ee7e4abe6065eae2774537929a5221fad5d1b02323f3cb3b860b3f4ee86d731e294c09c06c98788efbd9f32a41a2538868aabd31c8144887b9a5eff51b81033 diff --git a/dev-debug/systemtap/metadata.xml b/dev-debug/systemtap/metadata.xml index 4a3d4007cae0..ef6a9e2cd046 100644 --- a/dev-debug/systemtap/metadata.xml +++ b/dev-debug/systemtap/metadata.xml @@ -5,6 +5,7 @@ swegener@gentoo.org + Enable debuginfod support via dev-libs/elfutils libdebuginfod Support probing of libvirt domains. diff --git a/dev-debug/systemtap/systemtap-4.8.ebuild b/dev-debug/systemtap/systemtap-4.8.ebuild index 203f02f9b82c..7349ac27d462 100644 --- a/dev-debug/systemtap/systemtap-4.8.ebuild +++ b/dev-debug/systemtap/systemtap-4.8.ebuild @@ -7,9 +7,9 @@ PYTHON_COMPAT=( python3_{10..11} pypy3 ) inherit autotools linux-info python-single-r1 -DESCRIPTION="A linux trace/probe tool" -HOMEPAGE="https://www.sourceware.org/systemtap" -SRC_URI="https://www.sourceware.org/ftp/${PN}/releases/${P}.tar.gz" +DESCRIPTION="Linux trace/probe tool" +HOMEPAGE="https://sourceware.org/systemtap/" +SRC_URI="https://sourceware.org/ftp/${PN}/releases/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" diff --git a/dev-debug/systemtap/systemtap-5.0-r1.ebuild b/dev-debug/systemtap/systemtap-5.0-r1.ebuild index e3e98ce134ac..8461ac0c4eb8 100644 --- a/dev-debug/systemtap/systemtap-5.0-r1.ebuild +++ b/dev-debug/systemtap/systemtap-5.0-r1.ebuild @@ -7,9 +7,9 @@ PYTHON_COMPAT=( python3_{10..12} pypy3 ) inherit autotools linux-info python-single-r1 -DESCRIPTION="A linux trace/probe tool" -HOMEPAGE="https://www.sourceware.org/systemtap" -SRC_URI="https://www.sourceware.org/ftp/${PN}/releases/${P}.tar.gz" +DESCRIPTION="Linux trace/probe tool" +HOMEPAGE="https://sourceware.org/systemtap/" +SRC_URI="https://sourceware.org/ftp/${PN}/releases/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" diff --git a/dev-debug/systemtap/systemtap-5.1.ebuild b/dev-debug/systemtap/systemtap-5.1.ebuild new file mode 100644 index 000000000000..6a13a1bb981f --- /dev/null +++ b/dev-debug/systemtap/systemtap-5.1.ebuild @@ -0,0 +1,153 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} pypy3 ) + +inherit autotools flag-o-matic linux-info python-single-r1 toolchain-funcs + +DESCRIPTION="Linux trace/probe tool" +HOMEPAGE="https://sourceware.org/systemtap/" +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://sourceware.org/git/systemtap.git" + inherit git-r3 +else + SRC_URI="https://sourceware.org/ftp/${PN}/releases/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="debuginfod libvirt selinux sqlite +ssl test zeroconf" + +CDEPEND=" + ${PYTHON_DEPS} + + dev-libs/boost:= + >=dev-libs/elfutils-0.142[debuginfod?] + dev-libs/json-c:= + sys-libs/ncurses:= + sys-libs/readline:= + + libvirt? ( >=app-emulation/libvirt-1.0.2 ) + selinux? ( sys-libs/libselinux ) + sqlite? ( dev-db/sqlite:3 ) + ssl? ( + dev-libs/nspr + dev-libs/nss + ) + zeroconf? ( net-dns/avahi ) +" +DEPEND=" + ${CDEPEND} + app-alternatives/cpio + app-text/xmlto + $(python_gen_cond_dep 'dev-python/setuptools[${PYTHON_USEDEP}]') + >=sys-devel/gettext-0.18.2 + + libvirt? ( dev-libs/libxml2 ) +" +RDEPEND=" + ${CDEPEND} + acct-group/stapdev + acct-group/stapsys + acct-group/stapusr +" +# which: https://sourceware.org/PR32106 +BDEPEND=" + test? ( + dev-util/dejagnu + || ( + net-analyzer/netcat + net-analyzer/openbsd-netcat + ) + sys-apps/which + ) +" + +CONFIG_CHECK="~KPROBES ~RELAY ~DEBUG_FS" +ERROR_KPROBES="${PN} requires support for KProbes Instrumentation (KPROBES) - this can be enabled in 'Instrumentation Support -> Kprobes'." +ERROR_RELAY="${PN} works with support for user space relay support (RELAY) - this can be enabled in 'General setup -> Kernel->user space relay support (formerly relayfs)'." +ERROR_DEBUG_FS="${PN} works best with support for Debug Filesystem (DEBUG_FS) - this can be enabled in 'Kernel hacking -> Debug Filesystem'." + +DOCS="AUTHORS HACKING NEWS README" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RESTRICT="!test? ( test )" +PATCHES=( + "${FILESDIR}/${PN}-3.1-ia64.patch" +) + +pkg_setup() { + linux-info_pkg_setup + python-single-r1_pkg_setup +} + +src_prepare() { + python_fix_shebang . + + sed -i \ + -e 's#$(INSTALL_DATA) $(srcdir)/stap-exporter.options "$(DESTDIR)$(sysconfdir)/sysconfig/stap-exporter"##g' \ + stap-exporter/Makefile.am || die "Failed to modify stap-exporter Makefile.am" + sed -i \ + -e '\#^EnvironmentFile=-/etc/sysconfig/stap-exporter#d' \ + -e 's#$PORT $KEEPALIVE $SCRIPTS $OPTIONS#--port 9900 --keepalive 300#g' \ + stap-exporter/stap-exporter.service || die "Failed to adapt stap-exporter.service" + + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --cache-file="${S}"/config.cache + --disable-docs + --disable-grapher + --disable-refdocs + --disable-server + --disable-Werror + # Our toolchain sets this for us already and adding in + # -D_FORTIFY_SOURCE=2 breaks builds w/ no optimisation. + # This option (at least as of 4.5) doesn't pass -fno* etc, + # it just doesn't _add_ options, which is good. If it changes + # to actually pass -fno-stack-protector and friends, we'll + # need to change course. Forcing =2 also has problems for + # setting it to 3. + # bug #794667. + --disable-ssp + --enable-pie + --with-python3 + --without-java + --without-openssl + --without-python2-probes + --without-rpm + $(use_enable libvirt virt) + $(use_enable sqlite) + $(use_with debuginfod) + $(use_with zeroconf avahi) + $(use_with ssl nss) + $(use_with selinux) + ) + + # Use bash because of bashisms with brace expansion in Makefile.am (bug #913947) + CONFIG_SHELL="${BROOT}"/bin/bash PYTHON3="${PYTHON}" econf "${myeconfargs[@]}" +} + +src_test() { + # TODO: Install tests like dev-debug/dtrace[install-tests] and + # e.g. Fedora does. + ( + strip-flags + filter-flags '-fcf-protection=*' + filter-flags '-fdiagnostics-color=*' '-fdiagnostics-urls=*' + filter-flags '-g*' + filter-lto + tc-ld-force-bfd + emake -Onone -k check CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" + ) +} + +src_install() { + default + python_optimize +} diff --git a/dev-debug/systemtap/systemtap-9999.ebuild b/dev-debug/systemtap/systemtap-9999.ebuild new file mode 100644 index 000000000000..94c53a3d0f1f --- /dev/null +++ b/dev-debug/systemtap/systemtap-9999.ebuild @@ -0,0 +1,154 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} pypy3 ) + +inherit autotools flag-o-matic linux-info python-single-r1 toolchain-funcs + +DESCRIPTION="Linux trace/probe tool" +HOMEPAGE="https://sourceware.org/systemtap/" +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://sourceware.org/git/systemtap.git" + inherit git-r3 +else + SRC_URI="https://sourceware.org/ftp/${PN}/releases/${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="debuginfod libvirt selinux sqlite +ssl test zeroconf" + +CDEPEND=" + ${PYTHON_DEPS} + + dev-libs/boost:= + >=dev-libs/elfutils-0.142[debuginfod?] + dev-libs/json-c:= + sys-libs/ncurses:= + sys-libs/readline:= + + libvirt? ( >=app-emulation/libvirt-1.0.2 ) + selinux? ( sys-libs/libselinux ) + sqlite? ( dev-db/sqlite:3 ) + ssl? ( + dev-libs/nspr + dev-libs/nss + ) + zeroconf? ( net-dns/avahi ) +" +DEPEND=" + ${CDEPEND} + app-alternatives/cpio + app-text/xmlto + $(python_gen_cond_dep 'dev-python/setuptools[${PYTHON_USEDEP}]') + >=sys-devel/gettext-0.18.2 + + libvirt? ( dev-libs/libxml2 ) +" +RDEPEND=" + ${CDEPEND} + acct-group/stapdev + acct-group/stapsys + acct-group/stapusr +" +# which: https://sourceware.org/PR32106 +BDEPEND=" + test? ( + dev-util/dejagnu + || ( + net-analyzer/netcat + net-analyzer/openbsd-netcat + ) + sys-apps/which + ) +" + +CONFIG_CHECK="~KPROBES ~RELAY ~DEBUG_FS" +ERROR_KPROBES="${PN} requires support for KProbes Instrumentation (KPROBES) - this can be enabled in 'Instrumentation Support -> Kprobes'." +ERROR_RELAY="${PN} works with support for user space relay support (RELAY) - this can be enabled in 'General setup -> Kernel->user space relay support (formerly relayfs)'." +ERROR_DEBUG_FS="${PN} works best with support for Debug Filesystem (DEBUG_FS) - this can be enabled in 'Kernel hacking -> Debug Filesystem'." + +DOCS="AUTHORS HACKING NEWS README" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RESTRICT="!test? ( test )" +PATCHES=( + "${FILESDIR}/${PN}-3.1-ia64.patch" +) + +pkg_setup() { + linux-info_pkg_setup + python-single-r1_pkg_setup +} + +src_prepare() { + python_fix_shebang . + + sed -i \ + -e 's#$(INSTALL_DATA) $(srcdir)/stap-exporter.options "$(DESTDIR)$(sysconfdir)/sysconfig/stap-exporter"##g' \ + stap-exporter/Makefile.am || die "Failed to modify stap-exporter Makefile.am" + sed -i \ + -e '\#^EnvironmentFile=-/etc/sysconfig/stap-exporter#d' \ + -e 's#$PORT $KEEPALIVE $SCRIPTS $OPTIONS#--port 9900 --keepalive 300#g' \ + stap-exporter/stap-exporter.service || die "Failed to adapt stap-exporter.service" + + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --cache-file="${S}"/config.cache + --disable-docs + --disable-grapher + --disable-refdocs + --disable-server + --disable-Werror + # Our toolchain sets this for us already and adding in + # -D_FORTIFY_SOURCE=2 breaks builds w/ no optimisation. + # This option (at least as of 4.5) doesn't pass -fno* etc, + # it just doesn't _add_ options, which is good. If it changes + # to actually pass -fno-stack-protector and friends, we'll + # need to change course. Forcing =2 also has problems for + # setting it to 3. + # bug #794667. + --disable-ssp + --enable-pie + --with-python3 + --without-java + --without-openssl + --without-python2-probes + --without-rpm + $(use_enable libvirt virt) + $(use_enable sqlite) + $(use_with debuginfod) + $(use_with zeroconf avahi) + $(use_with ssl nss) + $(use_with selinux) + ) + + # Use bash because of bashisms with brace expansion in Makefile.am + # https://sourceware.org/PR32105 + CONFIG_SHELL="${BROOT}"/bin/bash PYTHON3="${PYTHON}" econf "${myeconfargs[@]}" +} + +src_test() { + # TODO: Install tests like dev-debug/dtrace[install-tests] and + # e.g. Fedora does. + ( + strip-flags + filter-flags '-fcf-protection=*' + filter-flags '-fdiagnostics-color=*' '-fdiagnostics-urls=*' + filter-flags '-g*' + filter-lto + tc-ld-force-bfd + emake -Onone -k check CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" + ) +} + +src_install() { + default + python_optimize +} -- cgit v1.2.3