diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 11:50:53 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 11:50:53 -0500 |
| commit | 290aebdea65a02557706eaeda477fef0437b6a48 (patch) | |
| tree | f87a939169a508a2e943570501b64cc16b411cda /dev-debug | |
| parent | 6783ddcd4b73d9ce586a71770caed352bec93b16 (diff) | |
| download | baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.gz baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.xz baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.zip | |
Adding metadata
Diffstat (limited to 'dev-debug')
160 files changed, 0 insertions, 10563 deletions
diff --git a/dev-debug/apitrace/Manifest b/dev-debug/apitrace/Manifest deleted file mode 100644 index 269c07922d3e..000000000000 --- a/dev-debug/apitrace/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST apitrace-13.0-libbacktrace-d4bdca038e8685af3043683a881af37489fc1827.tar.gz 683938 BLAKE2B b9cf6ac161ac3babd769acefaf73567a196ffac5658c18cf0cb0f5b5ff153f074e9ac58b7caf08d5ec0bafe2170ced6c96483ddc01f1d4d2713fd90292b6f993 SHA512 d0ff3edd37d40cfe2f0615c8369992a02e9bb579694806bf8faf8c942b25367bdf74cd73f07affbaa2decf27130f49d1663553102e7bc205fc4cd49c72ea15ef -DIST apitrace-13.0.tar.gz 2274587 BLAKE2B 5d28db7a5ee0f4798c14c017c2b35294e1758490b0b277b8011eff0405124f23e71c571cf41613326d47736ec5173b8db8d2dfe16610db29c2339b09ca4632bc SHA512 8a8c5b69722cc2eca8ff3e0b30282b0c134f03a55a6a2383750d9842015e3b3cf6265b8831245aa686e806796cb9a52685a41c1d212f6c9fbb0ae5e3c1b066cf diff --git a/dev-debug/apitrace/apitrace-13.0.ebuild b/dev-debug/apitrace/apitrace-13.0.ebuild deleted file mode 100644 index 730e0f481cd9..000000000000 --- a/dev-debug/apitrace/apitrace-13.0.ebuild +++ /dev/null @@ -1,106 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{13..14} ) -inherit cmake-multilib multilib optfeature python-single-r1 - -DESCRIPTION="Tool for tracing, analyzing, and debugging graphics APIs" -HOMEPAGE="https://github.com/apitrace/apitrace" -# Newer than the submodule commit from 13.0, but this commit includes a patch for tests. -# See #738888 -BACKTRACE_COMMIT="d4bdca038e8685af3043683a881af37489fc1827" -SRC_URI=" - https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz - https://github.com/ianlancetaylor/libbacktrace/archive/${BACKTRACE_COMMIT}.tar.gz - -> ${P}-libbacktrace-${BACKTRACE_COMMIT}.tar.gz -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~arm ~x86" -IUSE="gui test X" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" -RESTRICT="!test? ( test )" - -DEPEND="${PYTHON_DEPS} - app-arch/brotli:=[${MULTILIB_USEDEP}] - app-arch/snappy:=[${MULTILIB_USEDEP}] - media-libs/libpng:0=[${MULTILIB_USEDEP}] - media-libs/waffle[${MULTILIB_USEDEP}] - virtual/zlib:=[${MULTILIB_USEDEP}] - gui? ( dev-qt/qtbase:6[-gles2-only,gui,widgets] ) - X? ( x11-libs/libX11 ) -" -RDEPEND="${DEPEND}" -BDEPEND=" - virtual/pkgconfig - test? ( dev-cpp/gtest ) -" - -PATCHES=( - "${FILESDIR}"/${PN}-9.0-disable-multiarch.patch - "${FILESDIR}"/${PN}-12.0-unbundle.patch -) - -src_prepare() { - sed -e "s:0.0-unknown:${PV}:" -i cmake/GenerateVersion.cmake || die - - # still 3rd libs: khronos, crc32c and md5-compat - rm -r $(find thirdparty -mindepth 1 -maxdepth 1 \ - ! -name crc32c \ - ! -name khronos \ - ! -name md5 \ - ! -name support \ - -type d -print) || die - - mv "${WORKDIR}"/libbacktrace-${BACKTRACE_COMMIT} thirdparty/libbacktrace || die - - cmake_src_prepare -} - -multilib_src_configure() { - local mycmakeargs=( - -DBUILD_TESTING=$(usex test) - -DDOC_INSTALL_DIR="${EPREFIX}"/usr/share/doc/${PF} - -DENABLE_X11=$(usex X) - -DENABLE_EGL=ON - -DENABLE_CLI=ON - -DENABLE_GUI=$(multilib_native_usex gui) - -DENABLE_QT6=$(multilib_native_usex gui) - -DENABLE_STATIC_SNAPPY=OFF - -DENABLE_WAFFLE=ON - -DPython3_EXECUTABLE="${PYTHON}" - ) - cmake_src_configure -} - -src_install() { - MULTILIB_CHOST_TOOLS=( - /usr/bin/apitrace$(get_exeext) - /usr/bin/eglretrace$(get_exeext) - /usr/bin/gltrim$(get_exeext) - ) - use X && MULTILIB_CHOST_TOOLS+=( /usr/bin/glretrace$(get_exeext) ) - - cmake-multilib_src_install - - make_libegl_symlinks() { - dosym egltrace.so /usr/$(get_libdir)/${PN}/wrappers/libEGL.so - dosym egltrace.so /usr/$(get_libdir)/${PN}/wrappers/libEGL.so.1 - } - multilib_foreach_abi make_libegl_symlinks - - make_libgl_symlinks() { - dosym glxtrace.so /usr/$(get_libdir)/${PN}/wrappers/libGL.so - dosym glxtrace.so /usr/$(get_libdir)/${PN}/wrappers/libGL.so.1 - dosym glxtrace.so /usr/$(get_libdir)/${PN}/wrappers/libGL.so.1.2 - } - use X && multilib_foreach_abi make_libgl_symlinks -} - -pkg_postinst() { - optfeature "retracediff.py: side by side retracing" "dev-python/pillow" "dev-python/numpy" - optfeature "snapdiff.py: image comparison scripts" "dev-python/pillow" -} diff --git a/dev-debug/apitrace/files/apitrace-12.0-unbundle.patch b/dev-debug/apitrace/files/apitrace-12.0-unbundle.patch deleted file mode 100644 index 03467714e2c8..000000000000 --- a/dev-debug/apitrace/files/apitrace-12.0-unbundle.patch +++ /dev/null @@ -1,30 +0,0 @@ -diff --git a/thirdparty/CMakeLists.txt b/thirdparty/CMakeLists.txt -index 34eb7f7..5fbd073 100644 ---- a/thirdparty/CMakeLists.txt -+++ b/thirdparty/CMakeLists.txt -@@ -16,25 +16,6 @@ function (include_with_scope) - include (${ARGV}) - endfunction () - --set (SUBMODULES_MISSING FALSE) --foreach (path IN ITEMS -- brotli/LICENSE -- gtest/LICENSE -- libbacktrace/LICENSE -- libpng/LICENSE -- snappy/COPYING -- zlib/README -- directxmath/LICENSE --) -- if (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${path}") -- message (SEND_ERROR "error: ${CMAKE_CURRENT_SOURCE_DIR}/${path} does not exist") -- set (SUBMODULES_MISSING TRUE) -- endif () --endforeach () --if (SUBMODULES_MISSING) -- message (FATAL_ERROR "Update Git submodules by running\ngit submodule update --init --depth 1 --recursive") --endif () -- - if (ENABLE_STATIC_SNAPPY OR NOT Snappy_FOUND) - message (STATUS "Using bundled Snappy") - include_with_scope (snappy.cmake) diff --git a/dev-debug/apitrace/files/apitrace-9.0-disable-multiarch.patch b/dev-debug/apitrace/files/apitrace-9.0-disable-multiarch.patch deleted file mode 100644 index 37085b1ae299..000000000000 --- a/dev-debug/apitrace/files/apitrace-9.0-disable-multiarch.patch +++ /dev/null @@ -1,53 +0,0 @@ -From 556397e399994b005524b88171c9c103b8cc1b25 Mon Sep 17 00:00:00 2001 -From: Mike Frysinger <vapier@gentoo.org> -Date: Mon, 29 Apr 2019 20:32:04 +0200 -Subject: [PATCH] Use CMAKE_INSTALL_LIBDIR for LIB_INSTALL_DIR - -Respect the libdir cmake already set up for us instead of using -debian-specific multiarch paths. - -Patch was rebased multiple times from 4.0 to 9.0 now. - -Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> ---- - CMakeLists.txt | 17 ++--------------- - 1 file changed, 2 insertions(+), 15 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 19316e60..6c3c4b85 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -438,15 +438,6 @@ endif () - ############################################################################## - # Installation directories - --if (CMAKE_SYSTEM_NAME STREQUAL "Linux") -- # Debian multiarch support -- execute_process(COMMAND dpkg-architecture -qDEB_HOST_MULTIARCH -- OUTPUT_VARIABLE ARCH_SUBDIR -- ERROR_QUIET -- OUTPUT_STRIP_TRAILING_WHITESPACE -- ) --endif() -- - if (WIN32 OR APPLE) - # On Windows/MacOSX, applications are usually installed on a directory of - # their own -@@ -455,12 +446,8 @@ if (WIN32 OR APPLE) - set (LIB_ARCH_INSTALL_DIR lib) - else () - set (DOC_DEFAULT_INSTALL_DIR share/doc/${CMAKE_PROJECT_NAME}) -- set (LIB_INSTALL_DIR lib${LIB_SUFFIX}/${CMAKE_PROJECT_NAME}) -- if (ARCH_SUBDIR) -- set (LIB_ARCH_INSTALL_DIR lib/${ARCH_SUBDIR}/${CMAKE_PROJECT_NAME}) -- else () -- set (LIB_ARCH_INSTALL_DIR lib${LIB_SUFFIX}/${CMAKE_PROJECT_NAME}) -- endif () -+ set (LIB_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/${CMAKE_PROJECT_NAME}) -+ set (LIB_ARCH_INSTALL_DIR ${LIB_INSTALL_DIR}) - endif () - - # Allow customization of the doc installation dir (Slackware uses different --- -2.24.1 - diff --git a/dev-debug/apitrace/metadata.xml b/dev-debug/apitrace/metadata.xml deleted file mode 100644 index 5f33304011d5..000000000000 --- a/dev-debug/apitrace/metadata.xml +++ /dev/null @@ -1,5 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/dev-debug/bpftrace/Manifest b/dev-debug/bpftrace/Manifest deleted file mode 100644 index 81369d914bf0..000000000000 --- a/dev-debug/bpftrace/Manifest +++ /dev/null @@ -1,7 +0,0 @@ -DIST bpftrace-0.24.2-man.tar.xz 43820 BLAKE2B b0964633f4c1a462874f20934c286c321307a4abf79ebebaf085396e545a119f39f46f35b597921a61a5707a6cad5b368788ca8db682dee0eb916fc8a65b5520 SHA512 5a64c875400ede0050ee13f00351e06f72aeb8d8ce0db6933ac9c9f93023388218dd5fd62db7fd24370ddadbe390c6efa71692afd2e55b7f5755e4816f4832eb -DIST bpftrace-0.24.2.tar.gz 1375106 BLAKE2B c397eb7ded3a72ea0805487db66f422bda9a0a743b1757056dc1bc70119e2d4fa7e69577a7e295143ce2b9789c62c4469b995ac0dca228c464efb3db8da25eeb SHA512 d9ff773ce39b578877d5e73a48434d3654b46985bb4b9ad458fbf622718049da5075b3a2d2e6d1ae0a9effbdb74658822b4c4535bca384fbd6e539fdec393f4b -DIST bpftrace-0.25.0-man.tar.xz 44292 BLAKE2B e3ad8255b74836c9947595cd3c39caa201ccc420e573376ea7a144c499f4f74349911df87618f98a877d797b6d3b0c54f0117292537d03e184d2669b8a1331a5 SHA512 343fadffec5d2a6f702e2fe67087718c909f32cd6440dabc0fa93d2c0b8264ceda7d7a1eee7f79b4be2365318170c4eff7582453ec8ff4e15343ce2cb056b2ea -DIST bpftrace-0.25.1-man.tar.xz 44300 BLAKE2B 54ed5e0e04f74d7c310d14a2d624238d9d7f42a4abab101272693caf714020bb420a221793ea8bef0bd1490cd47e6cc87ed4e75d187c7127c99b2ef771df208a SHA512 d9b28a4e4705714ba38af0dcda6eb78379cb44da5dd2de47cca1061bc2b020b97aca4fd09cb734932a5f925b31b34aa266e4ff2a54ac438715543c054340cd8d -DIST bpftrace-0.25.1.tar.gz 1486111 BLAKE2B f2b9f2f9d44faa47f846c3c14800424d27dca0d210672cc03f60e5aadfe789fb4842bddfca4a4d73b3714a8d817710cedb66b055f8477e58f1202b64a188a444 SHA512 abe7bfab906894de889c958020b2dcc65bdc0b5c3d8986846ef41a9d593ca16075632916cf281154630221c6e511a11e3139a09bb641570277a44bd47299bbe6 -DIST bpftrace-0.26.1-man.tar.xz 44680 BLAKE2B 21e0c4492b1885f24fdd91c814a5144326c0e7491b07dd1dfcc4f139842d4094371a179842a6d0cfc5666e3cb4e631138ecdaf56e8ba64b001046ce934294ba2 SHA512 653a0877eb4ff74f17adf7688490c3afb63a264cf9fe3f64d3ec7437f2a51ee7dd21a254277cba677fa6fac8cff836d25e94199ee5ac8ef3152eedee38fbf707 -DIST bpftrace-0.26.1.tar.gz 1549419 BLAKE2B f9be88f6767de8752d46377f2833a511972166fc2d857fc11c16264e40f42cd39f12f9a8e04e0c8b9b8a3f11b1c4df17b002acbadbf30658d01494bdb206818b SHA512 2b2f052b742317b991b2e267881167ec58f0b7fa24574950f090d237665930a7ddfaa26e9a9f03eb3db01ab111a99ecb8f4b41f1c944b6f1df0218f109bfe72d diff --git a/dev-debug/bpftrace/bpftrace-0.24.2.ebuild b/dev-debug/bpftrace/bpftrace-0.24.2.ebuild deleted file mode 100644 index ea57a4ba3a3f..000000000000 --- a/dev-debug/bpftrace/bpftrace-0.24.2.ebuild +++ /dev/null @@ -1,159 +0,0 @@ -# Copyright 2019-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -LLVM_COMPAT=( {17..21} ) -RUST_MIN_VER="1.85.1" -RUST_OPTIONAL=1 - -inherit cmake flag-o-matic linux-info llvm-r1 rust - -DESCRIPTION="High-level tracing language for eBPF" -HOMEPAGE="https://github.com/bpftrace/bpftrace" -MY_PV="${PV//_/}" - -if [[ ${PV} == *9999* ]] ; then - EGIT_REPO_URI="https://github.com/bpftrace/bpftrace" - EGIT_BRANCH="release/0.24.x" - inherit git-r3 - # use a released man page for git - MAN_V="0.24.2" -else - SRC_URI="https://github.com/bpftrace/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="amd64 ~arm64" - # the man page version may trail the release - #MAN_V="0.24.2" -fi - -SRC_URI+=" https://github.com/bpftrace/${PN}/releases/download/v${MAN_V:-${PV}}/man.tar.xz -> ${PN}-${MAN_V:-${PV}}-man.tar.xz" - -S="${WORKDIR}/${PN}-${MY_PV:-${PV}}" - -LICENSE="Apache-2.0" -SLOT="0" - -IUSE="pcap systemd test" - -RESTRICT="!test? ( test )" - -RDEPEND=" - >=dev-libs/blazesym_c-0.1.1 - >=dev-libs/libbpf-1.5:= - >=dev-util/bcc-0.25.0 - $(llvm_gen_dep ' - llvm-core/clang:${LLVM_SLOT}= - llvm-core/llvm:${LLVM_SLOT}=[llvm_targets_BPF(+)] - ') - sys-libs/binutils-libs:= - virtual/libelf:= - systemd? ( sys-apps/systemd:= ) - pcap? ( net-libs/libpcap:= ) - virtual/zlib:= -" -DEPEND=" - ${RDEPEND} - dev-libs/cereal:= - test? ( dev-cpp/gtest ) -" -BDEPEND=" - app-arch/xz-utils - app-alternatives/lex - app-alternatives/yacc - dev-libs/cereal - dev-util/bpftool - || ( dev-util/xxd app-editors/vim-core ) - test? ( - ${RUST_DEPEND} - dev-lang/go - dev-util/pahole - ) - virtual/pkgconfig -" - -PATCHES=( - "${FILESDIR}/0.11.4-old-kernels.patch" - "${FILESDIR}/0.21.0-dont-compress-man.patch" - "${FILESDIR}/0.24.1-enable-ubsan.patch" -) - -pkg_pretend() { - local CONFIG_CHECK=" - ~BPF - ~BPF_EVENTS - ~BPF_JIT - ~BPF_SYSCALL - ~DEBUG_INFO_BTF - ~DEBUG_INFO_BTF_MODULES - ~FTRACE_SYSCALLS - ~HAVE_EBPF_JIT - " - - check_extra_config - - if use test; then - if ! linux_config_exists ; then - die "Unable to check your kernel for BTF support: tests cannot run." - elif ! linux_chkconfig_present DEBUG_INFO_BTF ; then - die "CONFIG_DEBUG_INFO_BTF is not set: tests cannot run." - fi - fi -} - -pkg_setup() { - llvm-r1_pkg_setup - use test && rust_pkg_setup -} - -# git-r3 overrides automatic SRC_URI unpacking -src_unpack() { - default - - if [[ ${PV} == *9999* ]] ; then - git-r3_src_unpack - fi -} - -src_prepare() { - # create a usable version from git - if [[ ${PV} == *9999* ]] ; then - local rev=$(git branch --show-current | sed -e 's/* //g' -e 's/release\///g')-$(git rev-parse --short HEAD) - sed -i "/configure_file/i set (BPFTRACE_VERSION \"${rev}\")" cmake/Version.cmake || die - fi - - cmake_src_prepare -} - -src_configure() { - # suppress one remaining and benign ODR violation warning due to - # a generated libbpf header used by the tests, see: - # https://github.com/bpftrace/bpftrace/issues/4591 - use test && append-flags -Wno-odr - - local mycmakeargs=( - # DO dynamically link the bpftrace executable - -DSTATIC_LINKING=OFF - # DO NOT build the internal libs as shared - -DBUILD_SHARED_LIBS=OFF - -DBUILD_TESTING=$(usex test) - # we use the pregenerated man page - -DENABLE_MAN=OFF - -DENABLE_SKB_OUTPUT=$(usex pcap) - -DENABLE_SYSTEMD=$(usex systemd) - ) - - # enable UBSAN only when enabled in the toolchain - if is-flagq -fsanitize=undefined; then - filter-flags -fsanitize=undefined - mycmakeargs+=( -DBUILD_UBSAN=ON ) - fi - - cmake_src_configure -} - -src_install() { - cmake_src_install - doman man/man8/*.? - gunzip "${WORKDIR}/man/man8/bpftrace.8.gz" || die - doman "${WORKDIR}/man/man8/bpftrace.8" -} diff --git a/dev-debug/bpftrace/bpftrace-0.25.1.ebuild b/dev-debug/bpftrace/bpftrace-0.25.1.ebuild deleted file mode 100644 index ab4ee111d39f..000000000000 --- a/dev-debug/bpftrace/bpftrace-0.25.1.ebuild +++ /dev/null @@ -1,160 +0,0 @@ -# Copyright 2019-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -LLVM_COMPAT=( {18..22} ) -RUST_MIN_VER="1.85.0" -RUST_OPTIONAL=1 - -inherit cmake flag-o-matic linux-info llvm-r1 rust - -DESCRIPTION="High-level tracing language for eBPF" -HOMEPAGE="https://github.com/bpftrace/bpftrace" -MY_PV="${PV//_/}" - -if [[ ${PV} == *9999* ]] ; then - EGIT_REPO_URI="https://github.com/bpftrace/bpftrace" - EGIT_BRANCH="master" - inherit git-r3 - # use a released man page for git - MAN_V="0.25.0" -else - SRC_URI="https://github.com/bpftrace/bpftrace/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm64" - # the man page version may trail the release - #MAN_V="0.25.0" -fi - -SRC_URI+=" https://github.com/bpftrace/bpftrace/releases/download/v${MAN_V:-${PV}}/man.tar.xz -> bpftrace-${MAN_V:-${PV}}-man.tar.xz" - -S="${WORKDIR}/${PN}-${MY_PV:-${PV}}" - -LICENSE="Apache-2.0" -SLOT="0" - -IUSE="pcap systemd test" - -RESTRICT="!test? ( test )" - -RDEPEND=" - >=dev-libs/blazesym_c-0.1.1 - >=dev-libs/libbpf-1.6:=[static-libs] - >=dev-util/bcc-0.25.0 - $(llvm_gen_dep ' - llvm-core/clang:${LLVM_SLOT}= - llvm-core/llvm:${LLVM_SLOT}=[llvm_targets_BPF(+)] - ') - sys-libs/binutils-libs:= - virtual/libelf:= - systemd? ( sys-apps/systemd:= ) - pcap? ( net-libs/libpcap:= ) - virtual/zlib:= -" -DEPEND=" - ${RDEPEND} - dev-libs/cereal:= - test? ( dev-cpp/gtest ) -" -BDEPEND=" - app-arch/xz-utils - app-alternatives/lex - app-alternatives/yacc - dev-libs/cereal - dev-util/bpftool - || ( dev-util/xxd app-editors/vim-core ) - test? ( - ${RUST_DEPEND} - dev-lang/go - dev-util/pahole - ) - virtual/pkgconfig -" - -PATCHES=( - "${FILESDIR}/0.11.4-old-kernels.patch" - "${FILESDIR}/0.21.0-dont-compress-man.patch" -) - -pkg_pretend() { - local CONFIG_CHECK=" - ~BPF - ~BPF_EVENTS - ~BPF_JIT - ~BPF_SYSCALL - ~DEBUG_INFO_BTF - ~DEBUG_INFO_BTF_MODULES - ~FTRACE_SYSCALLS - ~HAVE_EBPF_JIT - " - - check_extra_config - - if use test; then - if ! linux_config_exists ; then - die "Unable to check your kernel for BTF support: tests cannot run." - elif ! linux_chkconfig_present DEBUG_INFO_BTF ; then - die "CONFIG_DEBUG_INFO_BTF is not set: tests cannot run." - fi - fi -} - -pkg_setup() { - llvm-r1_pkg_setup - use test && rust_pkg_setup -} - -# git-r3 overrides automatic SRC_URI unpacking -src_unpack() { - default - - if [[ ${PV} == *9999* ]] ; then - git-r3_src_unpack - fi -} - -src_prepare() { - # create a usable version from git - if [[ ${PV} == *9999* ]] ; then - local rev=$(git branch --show-current | sed -e 's/* //g' -e 's/release\///g')-$(git rev-parse --short HEAD) - sed -i "/configure_file/i set (BPFTRACE_VERSION \"${rev}\")" cmake/Version.cmake || die - fi - - cmake_src_prepare -} - -src_configure() { - # suppress one remaining and benign ODR violation warning due to - # a generated libbpf header used by the tests, see: - # https://github.com/bpftrace/bpftrace/issues/4591 - use test && append-flags -Wno-odr - - local mycmakeargs=( - # DO dynamically link the bpftrace executable - -DSTATIC_LINKING=OFF - # DO NOT build the internal libs as shared - -DBUILD_SHARED_LIBS=OFF - -DBUILD_TESTING=$(usex test) - # we use the pregenerated man page - -DENABLE_MAN=OFF - -DENABLE_SKB_OUTPUT=$(usex pcap) - -DENABLE_SYSTEMD=$(usex systemd) - # always use system libbpf - -DUSE_SYSTEM_LIBBPF=ON - ) - - # enable UBSAN only when enabled in the toolchain - if is-flagq -fsanitize=undefined; then - filter-flags -fsanitize=undefined - mycmakeargs+=( -DBUILD_UBSAN=ON ) - fi - - cmake_src_configure -} - -src_install() { - cmake_src_install - doman man/man8/*.? - gunzip "${WORKDIR}/man/man8/bpftrace.8.gz" || die - doman "${WORKDIR}/man/man8/bpftrace.8" -} diff --git a/dev-debug/bpftrace/bpftrace-0.26.1.ebuild b/dev-debug/bpftrace/bpftrace-0.26.1.ebuild deleted file mode 100644 index 726742c759d6..000000000000 --- a/dev-debug/bpftrace/bpftrace-0.26.1.ebuild +++ /dev/null @@ -1,160 +0,0 @@ -# Copyright 2019-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -LLVM_COMPAT=( {18..22} ) -RUST_MIN_VER="1.85.0" -RUST_OPTIONAL=1 - -inherit cmake flag-o-matic linux-info llvm-r2 rust - -DESCRIPTION="High-level tracing language for eBPF" -HOMEPAGE="https://github.com/bpftrace/bpftrace" -MY_PV="${PV//_/}" - -if [[ ${PV} == *9999* ]] ; then - EGIT_REPO_URI="https://github.com/bpftrace/bpftrace" - EGIT_BRANCH="master" - inherit git-r3 - # use a released man page for git - MAN_V="0.25.0" -else - SRC_URI="https://github.com/bpftrace/bpftrace/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm64" - # the man page version may trail the release - #MAN_V="0.25.0" -fi - -SRC_URI+=" https://github.com/bpftrace/bpftrace/releases/download/v${MAN_V:-${PV}}/man.tar.xz -> bpftrace-${MAN_V:-${PV}}-man.tar.xz" - -S="${WORKDIR}/${PN}-${MY_PV:-${PV}}" - -LICENSE="Apache-2.0" -SLOT="0" - -IUSE="pcap systemd test" - -RESTRICT="!test? ( test )" - -RDEPEND=" - >=dev-libs/blazesym_c-0.1.1 - >=dev-libs/libbpf-1.6:=[static-libs] - >=dev-util/bcc-0.25.0 - $(llvm_gen_dep ' - llvm-core/clang:${LLVM_SLOT}= - llvm-core/llvm:${LLVM_SLOT}=[llvm_targets_BPF(+)] - ') - sys-libs/binutils-libs:= - virtual/libelf:= - systemd? ( sys-apps/systemd:= ) - pcap? ( net-libs/libpcap:= ) - virtual/zlib:= -" -DEPEND=" - ${RDEPEND} - dev-libs/cereal:= - test? ( dev-cpp/gtest ) -" -BDEPEND=" - app-arch/xz-utils - app-alternatives/lex - app-alternatives/yacc - dev-libs/cereal - dev-util/bpftool - || ( dev-util/xxd app-editors/vim-core ) - test? ( - ${RUST_DEPEND} - dev-lang/go - dev-util/pahole - ) - virtual/pkgconfig -" - -PATCHES=( - "${FILESDIR}/0.11.4-old-kernels.patch" - "${FILESDIR}/0.21.0-dont-compress-man.patch" -) - -pkg_pretend() { - local CONFIG_CHECK=" - ~BPF - ~BPF_EVENTS - ~BPF_JIT - ~BPF_SYSCALL - ~DEBUG_INFO_BTF - ~DEBUG_INFO_BTF_MODULES - ~FTRACE_SYSCALLS - ~HAVE_EBPF_JIT - " - - check_extra_config - - if use test; then - if ! linux_config_exists ; then - die "Unable to check your kernel for BTF support: tests cannot run." - elif ! linux_chkconfig_present DEBUG_INFO_BTF ; then - die "CONFIG_DEBUG_INFO_BTF is not set: tests cannot run." - fi - fi -} - -pkg_setup() { - llvm-r2_pkg_setup - use test && rust_pkg_setup -} - -# git-r3 overrides automatic SRC_URI unpacking -src_unpack() { - default - - if [[ ${PV} == *9999* ]] ; then - git-r3_src_unpack - fi -} - -src_prepare() { - # create a usable version from git - if [[ ${PV} == *9999* ]] ; then - local rev=$(git branch --show-current | sed -e 's/* //g' -e 's/release\///g')-$(git rev-parse --short HEAD) - sed -i "/configure_file/i set (BPFTRACE_VERSION \"${rev}\")" cmake/Version.cmake || die - fi - - cmake_src_prepare -} - -src_configure() { - # suppress one remaining and benign ODR violation warning due to - # a generated libbpf header used by the tests, see: - # https://github.com/bpftrace/bpftrace/issues/4591 - use test && append-flags -Wno-odr - - local mycmakeargs=( - # DO dynamically link the bpftrace executable - -DSTATIC_LINKING=OFF - # DO NOT build the internal libs as shared - -DBUILD_SHARED_LIBS=OFF - -DBUILD_TESTING=$(usex test) - # we use the pregenerated man page - -DENABLE_MAN=OFF - -DENABLE_SKB_OUTPUT=$(usex pcap) - -DENABLE_SYSTEMD=$(usex systemd) - # always use system libbpf - -DUSE_SYSTEM_LIBBPF=ON - ) - - # enable UBSAN only when enabled in the toolchain - if is-flagq -fsanitize=undefined; then - filter-flags -fsanitize=undefined - mycmakeargs+=( -DBUILD_UBSAN=ON ) - fi - - cmake_src_configure -} - -src_install() { - cmake_src_install - doman man/man8/*.? - gunzip "${WORKDIR}/man/man8/bpftrace.8.gz" || die - doman "${WORKDIR}/man/man8/bpftrace.8" -} diff --git a/dev-debug/bpftrace/bpftrace-9999.ebuild b/dev-debug/bpftrace/bpftrace-9999.ebuild deleted file mode 100644 index 726742c759d6..000000000000 --- a/dev-debug/bpftrace/bpftrace-9999.ebuild +++ /dev/null @@ -1,160 +0,0 @@ -# Copyright 2019-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -LLVM_COMPAT=( {18..22} ) -RUST_MIN_VER="1.85.0" -RUST_OPTIONAL=1 - -inherit cmake flag-o-matic linux-info llvm-r2 rust - -DESCRIPTION="High-level tracing language for eBPF" -HOMEPAGE="https://github.com/bpftrace/bpftrace" -MY_PV="${PV//_/}" - -if [[ ${PV} == *9999* ]] ; then - EGIT_REPO_URI="https://github.com/bpftrace/bpftrace" - EGIT_BRANCH="master" - inherit git-r3 - # use a released man page for git - MAN_V="0.25.0" -else - SRC_URI="https://github.com/bpftrace/bpftrace/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm64" - # the man page version may trail the release - #MAN_V="0.25.0" -fi - -SRC_URI+=" https://github.com/bpftrace/bpftrace/releases/download/v${MAN_V:-${PV}}/man.tar.xz -> bpftrace-${MAN_V:-${PV}}-man.tar.xz" - -S="${WORKDIR}/${PN}-${MY_PV:-${PV}}" - -LICENSE="Apache-2.0" -SLOT="0" - -IUSE="pcap systemd test" - -RESTRICT="!test? ( test )" - -RDEPEND=" - >=dev-libs/blazesym_c-0.1.1 - >=dev-libs/libbpf-1.6:=[static-libs] - >=dev-util/bcc-0.25.0 - $(llvm_gen_dep ' - llvm-core/clang:${LLVM_SLOT}= - llvm-core/llvm:${LLVM_SLOT}=[llvm_targets_BPF(+)] - ') - sys-libs/binutils-libs:= - virtual/libelf:= - systemd? ( sys-apps/systemd:= ) - pcap? ( net-libs/libpcap:= ) - virtual/zlib:= -" -DEPEND=" - ${RDEPEND} - dev-libs/cereal:= - test? ( dev-cpp/gtest ) -" -BDEPEND=" - app-arch/xz-utils - app-alternatives/lex - app-alternatives/yacc - dev-libs/cereal - dev-util/bpftool - || ( dev-util/xxd app-editors/vim-core ) - test? ( - ${RUST_DEPEND} - dev-lang/go - dev-util/pahole - ) - virtual/pkgconfig -" - -PATCHES=( - "${FILESDIR}/0.11.4-old-kernels.patch" - "${FILESDIR}/0.21.0-dont-compress-man.patch" -) - -pkg_pretend() { - local CONFIG_CHECK=" - ~BPF - ~BPF_EVENTS - ~BPF_JIT - ~BPF_SYSCALL - ~DEBUG_INFO_BTF - ~DEBUG_INFO_BTF_MODULES - ~FTRACE_SYSCALLS - ~HAVE_EBPF_JIT - " - - check_extra_config - - if use test; then - if ! linux_config_exists ; then - die "Unable to check your kernel for BTF support: tests cannot run." - elif ! linux_chkconfig_present DEBUG_INFO_BTF ; then - die "CONFIG_DEBUG_INFO_BTF is not set: tests cannot run." - fi - fi -} - -pkg_setup() { - llvm-r2_pkg_setup - use test && rust_pkg_setup -} - -# git-r3 overrides automatic SRC_URI unpacking -src_unpack() { - default - - if [[ ${PV} == *9999* ]] ; then - git-r3_src_unpack - fi -} - -src_prepare() { - # create a usable version from git - if [[ ${PV} == *9999* ]] ; then - local rev=$(git branch --show-current | sed -e 's/* //g' -e 's/release\///g')-$(git rev-parse --short HEAD) - sed -i "/configure_file/i set (BPFTRACE_VERSION \"${rev}\")" cmake/Version.cmake || die - fi - - cmake_src_prepare -} - -src_configure() { - # suppress one remaining and benign ODR violation warning due to - # a generated libbpf header used by the tests, see: - # https://github.com/bpftrace/bpftrace/issues/4591 - use test && append-flags -Wno-odr - - local mycmakeargs=( - # DO dynamically link the bpftrace executable - -DSTATIC_LINKING=OFF - # DO NOT build the internal libs as shared - -DBUILD_SHARED_LIBS=OFF - -DBUILD_TESTING=$(usex test) - # we use the pregenerated man page - -DENABLE_MAN=OFF - -DENABLE_SKB_OUTPUT=$(usex pcap) - -DENABLE_SYSTEMD=$(usex systemd) - # always use system libbpf - -DUSE_SYSTEM_LIBBPF=ON - ) - - # enable UBSAN only when enabled in the toolchain - if is-flagq -fsanitize=undefined; then - filter-flags -fsanitize=undefined - mycmakeargs+=( -DBUILD_UBSAN=ON ) - fi - - cmake_src_configure -} - -src_install() { - cmake_src_install - doman man/man8/*.? - gunzip "${WORKDIR}/man/man8/bpftrace.8.gz" || die - doman "${WORKDIR}/man/man8/bpftrace.8" -} diff --git a/dev-debug/bpftrace/files/0.11.4-old-kernels.patch b/dev-debug/bpftrace/files/0.11.4-old-kernels.patch deleted file mode 100644 index 831de6487a84..000000000000 --- a/dev-debug/bpftrace/files/0.11.4-old-kernels.patch +++ /dev/null @@ -1,28 +0,0 @@ -diff --git a/src/btf.h b/src/btf.h -index 61579a3..4e9f9fc 100644 ---- a/src/btf.h -+++ b/src/btf.h -@@ -2,6 +2,7 @@ - - #include "types.h" - #include <linux/types.h> -+#include <linux/version.h> - #include <map> - #include <regex> - #include <string> -@@ -11,6 +12,15 @@ - struct btf; - struct btf_type; - -+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,5,0) -+/* this is required to build with 5.4 and earlier kernel headers */ -+enum btf_func_linkage { -+ BTF_FUNC_STATIC = 0, -+ BTF_FUNC_GLOBAL = 1, -+ BTF_FUNC_EXTERN = 2, -+}; -+#endif -+ - namespace bpftrace { - - class BTF diff --git a/dev-debug/bpftrace/files/0.21.0-dont-compress-man.patch b/dev-debug/bpftrace/files/0.21.0-dont-compress-man.patch deleted file mode 100644 index 93bcfcf73e31..000000000000 --- a/dev-debug/bpftrace/files/0.21.0-dont-compress-man.patch +++ /dev/null @@ -1,47 +0,0 @@ -diff --git a/man/adoc/CMakeLists.txt b/man/adoc/CMakeLists.txt -index 1a81dee0..c93ccbd2 100644 ---- a/man/adoc/CMakeLists.txt -+++ b/man/adoc/CMakeLists.txt -@@ -1,7 +1,5 @@ --find_program(GZIP gzip REQUIRED) - find_program(ASCIIDOCTOR asciidoctor) - file(GLOB FILES *.adoc) --set(GZFILES "") - if(NOT "${ASCIIDOCTOR}" STREQUAL "ASCIIDOCTOR-NOTFOUND") - foreach(FIL ${FILES}) - get_filename_component(NAME ${FIL} NAME_WE) -@@ -12,14 +10,9 @@ if(NOT "${ASCIIDOCTOR}" STREQUAL "ASCIIDOCTOR-NOTFOUND") - COMMAND ${ASCIIDOCTOR} ${FIL} -b manpage -o - > ${MANPAGE_FILE} - DEPENDS ${FIL}) - -- add_custom_command(OUTPUT ${GZ_MANPAGE_FILE} -- COMMAND ${GZIP} -nc ${MANPAGE_FILE} > ${GZ_MANPAGE_FILE} -- DEPENDS ${MANPAGE_FILE}) -- -- list(APPEND GZFILES ${GZ_MANPAGE_FILE}) - endforeach() -- add_custom_target(adoc_man DEPENDS ${GZFILES}) -- install(FILES ${GZFILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8) -+ add_custom_target(adoc_man DEPENDS ${FILES}) -+ install(FILES ${FILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8) - else() - message(WARNING "asciidoctor not found, building without bpftrace manpage") - add_custom_target(adoc_man) -diff --git a/man/man8/CMakeLists.txt b/man/man8/CMakeLists.txt -index 2a316cd9..2207cf80 100644 ---- a/man/man8/CMakeLists.txt -+++ b/man/man8/CMakeLists.txt -@@ -1,12 +1,3 @@ --find_program(GZIP gzip REQUIRED) - file(GLOB FILES *.8) --set(GZFILES "") --foreach(FIL ${FILES}) -- get_filename_component(NAME ${FIL} NAME) -- add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${NAME}.gz -- COMMAND ${GZIP} -nc ${FIL} > ${CMAKE_CURRENT_BINARY_DIR}/${NAME}.gz -- DEPENDS ${FIL}) -- list(APPEND GZFILES "${CMAKE_CURRENT_BINARY_DIR}/${NAME}.gz") --endforeach() - add_custom_target(man_man DEPENDS ${GZFILES}) --install(FILES ${GZFILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8) -+install(FILES ${FILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8) diff --git a/dev-debug/bpftrace/files/0.24.1-enable-ubsan.patch b/dev-debug/bpftrace/files/0.24.1-enable-ubsan.patch deleted file mode 100644 index 8e6cc1bb3053..000000000000 --- a/dev-debug/bpftrace/files/0.24.1-enable-ubsan.patch +++ /dev/null @@ -1,88 +0,0 @@ -From: https://github.com/bpftrace/bpftrace/pull/4655 - -From: =?UTF-8?q?Viktor=20Mal=C3=ADk?= <viktor.malik@gmail.com> -Date: Thu, 25 Sep 2025 13:34:17 +0200 -Subject: [PATCH] CMake: Enable UBSan builds (#4655) - -Add new CMake option `BUILD_UBSAN` which will add `-fsanitize=undefined` -to the build. This helps to identify undefined behavior. - -Signed-off-by: Viktor Malik <viktor.malik@gmail.com> ---- - CMakeLists.txt | 1 + - src/CMakeLists.txt | 13 +++++++++++++ - src/aot/CMakeLists.txt | 4 ++++ - tests/CMakeLists.txt | 5 +++++ - 4 files changed, 23 insertions(+) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 898ec2f85560..5bb09a2e56be 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -15,6 +15,7 @@ set(HARDENED_STDLIB OFF CACHE BOOL "Enable hardened definitions for standard lib - set(STATIC_LINKING OFF CACHE BOOL "Build bpftrace as a statically linked executable") - - set(BUILD_ASAN OFF CACHE BOOL "Build bpftrace with -fsanitize=address") -+set(BUILD_UBSAN OFF CACHE BOOL "Build bpftrace with -fsanitize=undefined") - set(ENABLE_MAN ON CACHE BOOL "Build man pages") - set(BUILD_TESTING ON CACHE BOOL "Build test suite") - set(ENABLE_TEST_VALIDATE_CODEGEN ON CACHE BOOL "Run LLVM IR validation tests") -diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt -index 0432e6106e6d..d5432c0995d3 100644 ---- a/src/CMakeLists.txt -+++ b/src/CMakeLists.txt -@@ -2,6 +2,12 @@ if(HAVE_BFD_DISASM) - set(BFD_DISASM_SRC bfd-disasm.cpp) - endif() - -+if (BUILD_UBSAN) -+ # This adds -fsanitize=undefined to all below compiler invocations, including -+ # subdirectories. -+ add_compile_options("-fsanitize=undefined") -+endif() -+ - add_library(required_resources required_resources.cpp) - add_dependencies(required_resources parser) - -@@ -201,6 +207,13 @@ if (BUILD_ASAN) - target_link_options(bpftrace PUBLIC "-fsanitize=address") - endif() - -+if (BUILD_UBSAN) -+ # We do not use add_link_options here since it doesn't work for some reason. -+ # Instead, just pass -fsanitize=undefined to the linker when linking the -+ # bpftrace target. -+ target_link_options(bpftrace PUBLIC "-fsanitize=undefined") -+endif() -+ - if (STATIC_LINKING) - if(ANDROID) - target_link_libraries(libbpftrace "-Wl,-Bdynamic" "-ldl" "-lm" "-lz") -diff --git a/src/aot/CMakeLists.txt b/src/aot/CMakeLists.txt -index 1323bdacb6df..5267e4a1c19e 100644 ---- a/src/aot/CMakeLists.txt -+++ b/src/aot/CMakeLists.txt -@@ -34,3 +34,7 @@ if(BUILD_ASAN) - target_compile_options(bpftrace-aotrt PUBLIC "-fsanitize=address") - target_link_options(bpftrace-aotrt PUBLIC "-fsanitize=address") - endif() -+ -+if(BUILD_UBSAN) -+ target_link_options(bpftrace-aotrt PUBLIC "-fsanitize=undefined") -+endif() -diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt -index b6002e8075ff..141b44d5a30e 100644 ---- a/tests/CMakeLists.txt -+++ b/tests/CMakeLists.txt -@@ -94,6 +94,11 @@ if(BUILD_ASAN) - target_link_options(bpftrace_test PUBLIC "-fsanitize=address") - endif() - -+if(BUILD_UBSAN) -+ target_compile_options(bpftrace_test PUBLIC "-fsanitize=undefined") -+ target_link_options(bpftrace_test PUBLIC "-fsanitize=undefined") -+endif() -+ - # bpftrace tests require (at minimum) version 1.11. - # There's no great way to enforce a minimum version from cmake -- the cmake - # modules don't respect minimum requested version. diff --git a/dev-debug/bpftrace/metadata.xml b/dev-debug/bpftrace/metadata.xml deleted file mode 100644 index 13c1ae7c4586..000000000000 --- a/dev-debug/bpftrace/metadata.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person" proxied="yes"> - <email>holger@applied-asynchrony.com</email> - <name>Holger Hoffstätte</name> - </maintainer> - <maintainer type="person"> - <email>chutzpah@gentoo.org</email> - <name>Patrick McLean</name> - </maintainer> - <maintainer type="person"> - <email>dlan@gentoo.org</email> - <name>Yixun Lan</name> - </maintainer> - <maintainer type="project" proxied="proxy"> - <email>proxy-maint@gentoo.org</email> - <name>Proxy Maintainers</name> - </maintainer> - <use> - <flag name="pcap">Enable skb_output using <pkg>net-libs/libpcap</pkg> - </flag> - </use> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/dev-debug/cgdb/Manifest b/dev-debug/cgdb/Manifest deleted file mode 100644 index 772ad27a5505..000000000000 --- a/dev-debug/cgdb/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST cgdb-0.8.0.tar.gz 328281 BLAKE2B 60e577dd5f8363b91da33136a9ffd911581e9cea4cdc1d0fcd338e0a761a26921e6edf6298c619b8d0eb1486449843457b2c5370a395a8c49fed5382a60e63a2 SHA512 e2b653db472de2014402dae6d13953ab811526a47ad5d7a05e34cfba09f44d6fea6b19304b9205ff0e2ac9549ffa5818f4282d7c03293b6c0ca9d563f9ae89e1 diff --git a/dev-debug/cgdb/cgdb-0.8.0.ebuild b/dev-debug/cgdb/cgdb-0.8.0.ebuild deleted file mode 100644 index f7e94fa4e4d3..000000000000 --- a/dev-debug/cgdb/cgdb-0.8.0.ebuild +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -if [[ ${PV} = *9999* ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/cgdb/cgdb.git" -else - SRC_URI="https://github.com/cgdb/cgdb/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="amd64 arm ppc ppc64 x86" -fi - -inherit autotools multilib-minimal - -DESCRIPTION="A curses front-end for GDB, the GNU debugger" -HOMEPAGE="https://cgdb.github.io/" - -LICENSE="GPL-2" -SLOT="0" -IUSE="test" -# Tests are broken, need additional research to figure out the cause -# Bug: https://bugs.gentoo.org/831899 -RESTRICT="test" - -DEPEND=" - sys-libs/ncurses:= - sys-libs/readline:= -" -BDEPEND=" - sys-devel/flex - test? ( - dev-util/dejagnu - app-misc/dtach - ) -" -RDEPEND=" - ${DEPEND} - dev-debug/gdb -" - -DOCS=( AUTHORS ChangeLog FAQ INSTALL NEWS README.md ) - -PATCHES=( - "${FILESDIR}"/${P}-ar.patch - "${FILESDIR}"/${PN}-0.8.0-configure-c99.patch -) - -src_prepare() { - default - AT_M4DIR="config" eautoreconf -} - -multilib_src_configure() { - unset LEX - ECONF_SOURCE="${S}" econf -} - -multilib_src_test() { - # Tests need an interactive shell, #654986 - - # real-time output of the log ;-) - touch "${T}/dtach-test.log" || die - tail -f "${T}/dtach-test.log" & - local tail_pid=${!} - - nonfatal dtach -N "${T}/dtach.sock" \ - bash -c 'emake check &> "${T}"/dtach-test.log; echo ${?} > "${T}"/dtach-test.out' - - kill "${tail_pid}" - [[ -f ${T}/dtach-test.out ]] || die "Unable to run tests" - [[ $(<"${T}"/dtach-test.out) == 0 ]] || die "Tests failed" -} diff --git a/dev-debug/cgdb/cgdb-9999.ebuild b/dev-debug/cgdb/cgdb-9999.ebuild deleted file mode 100644 index 0567e31f4ac4..000000000000 --- a/dev-debug/cgdb/cgdb-9999.ebuild +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -if [[ ${PV} = *9999* ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/cgdb/cgdb.git" -else - SRC_URI="https://github.com/cgdb/cgdb/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" -fi - -inherit autotools multilib-minimal - -DESCRIPTION="A curses front-end for GDB, the GNU debugger" -HOMEPAGE="https://cgdb.github.io/" - -LICENSE="GPL-2" -SLOT="0" -IUSE="test" -# Tests are broken, need additional research to figure out the cause -# Bug: https://bugs.gentoo.org/831899 -RESTRICT="test" - -DEPEND=" - sys-libs/ncurses:0= - sys-libs/readline:0=" - -BDEPEND=" - test? ( - dev-util/dejagnu - app-misc/dtach - )" - -RDEPEND=" - ${DEPEND} - dev-debug/gdb" - -DOCS=( AUTHORS ChangeLog FAQ INSTALL NEWS README.md ) - -PATCHES=( - "${FILESDIR}"/${P}-ar.patch -) - -src_prepare() { - default - AT_M4DIR="config" eautoreconf -} - -multilib_src_test() { - # Tests need an interactive shell, #654986 - - # real-time output of the log ;-) - touch "${T}/dtach-test.log" || die - tail -f "${T}/dtach-test.log" & - local tail_pid=${!} - - nonfatal dtach -N "${T}/dtach.sock" \ - bash -c 'emake check &> "${T}"/dtach-test.log; echo ${?} > "${T}"/dtach-test.out' - - kill "${tail_pid}" - [[ -f ${T}/dtach-test.out ]] || die "Unable to run tests" - [[ $(<"${T}"/dtach-test.out) == 0 ]] || die "Tests failed" -} - -multilib_src_configure() { - ECONF_SOURCE="${S}" econf -} diff --git a/dev-debug/cgdb/files/cgdb-0.8.0-ar.patch b/dev-debug/cgdb/files/cgdb-0.8.0-ar.patch deleted file mode 100644 index 128c32ec238c..000000000000 --- a/dev-debug/cgdb/files/cgdb-0.8.0-ar.patch +++ /dev/null @@ -1,18 +0,0 @@ -Bug: https://bugs.gentoo.org/724256 -Patch taken from https://github.com/cgdb/cgdb/pull/142 ---- a/configure.ac -+++ b/configure.ac -@@ -13,6 +13,13 @@ AC_PROG_INSTALL - AC_PROG_RANLIB - AM_PROG_LEX - AC_PROG_YACC -+m4_ifndef([AC_PROG_AR],[dnl -+ AN_MAKEVAR([AR], [AC_PROG_AR]) -+ AN_PROGRAM([ar], [AC_PROG_AR]) -+ AC_DEFUN([AC_PROG_AR], -+ [AC_CHECK_TOOL(AR, ar, :)]) -+]) -+AC_PROG_AR - - dnl determine if we are running in linux, cygwin, solaris, or freebsd - AC_CANONICAL_HOST diff --git a/dev-debug/cgdb/files/cgdb-0.8.0-configure-c99.patch b/dev-debug/cgdb/files/cgdb-0.8.0-configure-c99.patch deleted file mode 100644 index bd021476bf53..000000000000 --- a/dev-debug/cgdb/files/cgdb-0.8.0-configure-c99.patch +++ /dev/null @@ -1,23 +0,0 @@ -https://bugs.gentoo.org/830222 -https://github.com/cgdb/cgdb/pull/338 - -From 039dba0ec3ae2c4b2636418652a5c63f9ff86049 Mon Sep 17 00:00:00 2001 -From: Florian Weimer <fweimer@redhat.com> -Date: Wed, 8 Mar 2023 11:29:06 +0100 -Subject: [PATCH] configure: Avoid implicit int in readline check - -Future compilers will not accept implicit ints by default, altering -the outcome of the check without this change. - -Signed-off-by: Florian Weimer <fweimer@redhat.com> ---- a/config/readline_check_version.m4 -+++ b/config/readline_check_version.m4 -@@ -86,7 +86,7 @@ AC_CACHE_VAL(ac_cv_rl_version, - #include <stdlib.h> - #include <readline/readline.h> - --main() -+int main(void) - { - FILE *fp; - fp = fopen("conftest.rlv", "w"); diff --git a/dev-debug/cgdb/files/cgdb-9999-ar.patch b/dev-debug/cgdb/files/cgdb-9999-ar.patch deleted file mode 100644 index ed5f200b3260..000000000000 --- a/dev-debug/cgdb/files/cgdb-9999-ar.patch +++ /dev/null @@ -1,16 +0,0 @@ ---- a/configure.ac -+++ b/configure.ac -@@ -13,6 +13,13 @@ AC_PROG_INSTALL - AC_PROG_RANLIB - AM_PROG_LEX - AC_PROG_YACC -+m4_ifndef([AC_PROG_AR],[dnl -+ AN_MAKEVAR([AR], [AC_PROG_AR]) -+ AN_PROGRAM([ar], [AC_PROG_AR]) -+ AC_DEFUN([AC_PROG_AR], -+ [AC_CHECK_TOOL(AR, ar, :)]) -+]) -+AC_PROG_AR - - dnl determine if we are running in linux, cygwin, solaris, or freebsd - AC_CANONICAL_HOST diff --git a/dev-debug/cgdb/metadata.xml b/dev-debug/cgdb/metadata.xml deleted file mode 100644 index 5f33304011d5..000000000000 --- a/dev-debug/cgdb/metadata.xml +++ /dev/null @@ -1,5 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/dev-debug/d-feet/Manifest b/dev-debug/d-feet/Manifest deleted file mode 100644 index 2b752579e2ae..000000000000 --- a/dev-debug/d-feet/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST d-feet-0.3.16.tar.xz 237888 BLAKE2B b4773b781c53feb11889b49746e714a42a15a85daeb16dcd5235609fb6105c0b1a3ebeeb4a08830de9067f1c193702b31fcbfc67190eb2f901907b96acfcadbc SHA512 ff4db968cbd679e2065c614d538187fe3c56118b44638771ec9f7472bdba4a798dc682565f520a8680a8001ea39ce88555b07cda172e60f88eb6bdf1e00b5a6d diff --git a/dev-debug/d-feet/d-feet-0.3.16-r1.ebuild b/dev-debug/d-feet/d-feet-0.3.16-r1.ebuild deleted file mode 100644 index 224b4efb77c2..000000000000 --- a/dev-debug/d-feet/d-feet-0.3.16-r1.ebuild +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 -PYTHON_COMPAT=( python3_{13..14} ) - -inherit gnome2 meson python-single-r1 virtualx - -DESCRIPTION="D-Feet is a powerful D-Bus debugger" -HOMEPAGE="https://wiki.gnome.org/Apps/DFeet" - -LICENSE="GPL-2+" -SLOT="0" -KEYWORDS="amd64 ~riscv x86" - -IUSE="test +X" -RESTRICT="!test? ( test )" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -DEPEND=" - ${PYTHON_DEPS} - >=x11-libs/gtk+-3.9.4:3[introspection] - >=dev-libs/gobject-introspection-1.82.0-r2:= -" -RDEPEND=" - ${DEPEND} - >=dev-libs/glib-2.34:2 - $(python_gen_cond_dep ' - >=dev-python/pygobject-3.3.91:3[${PYTHON_USEDEP}] - ') - >=sys-apps/dbus-1 - X? ( x11-libs/libwnck:3[introspection] ) -" -BDEPEND=" - dev-util/itstool -" - -PATCHES=( - "${FILESDIR}"/${PN}-0.3.16-fix-meson-0.61.patch - "${FILESDIR}"/0001-Do-not-lint-coding-style-in-distro-testing.patch -) - -src_configure() { - local emesonargs=( - $(meson_use test tests) - -Dpython="${EPYTHON}" - ) - meson_src_configure -} - -src_test() { - virtx meson_src_test -} - -src_install() { - meson_src_install - python_optimize -} diff --git a/dev-debug/d-feet/files/0001-Do-not-lint-coding-style-in-distro-testing.patch b/dev-debug/d-feet/files/0001-Do-not-lint-coding-style-in-distro-testing.patch deleted file mode 100644 index 620e9cf400bb..000000000000 --- a/dev-debug/d-feet/files/0001-Do-not-lint-coding-style-in-distro-testing.patch +++ /dev/null @@ -1,30 +0,0 @@ -From e1572f7c2e690411357457c76960e64ae9e8207a Mon Sep 17 00:00:00 2001 -From: Eli Schwartz <eschwartz@gentoo.org> -Date: Fri, 20 Jun 2025 01:39:16 -0400 -Subject: [PATCH] Do not lint coding style in distro testing - ---- - src/tests/meson.build | 10 ---------- - 1 file changed, 10 deletions(-) - -diff --git a/src/tests/meson.build b/src/tests/meson.build -index 19f819b..0879981 100644 ---- a/src/tests/meson.build -+++ b/src/tests/meson.build -@@ -18,13 +18,3 @@ test( - workdir: meson.current_source_dir(), - ) - --test( -- 'check-code-style', -- find_program('pycodestyle-3', 'pycodestyle', 'pep8'), -- args: [ -- '--exclude=".svn,CVS,.bzr,.hg,.git,__pycache__,.\#*"', -- '--max-line-length=99', -- '--ignore=E123,E402,W504', -- src_dir, -- ], --) --- -2.49.0 - diff --git a/dev-debug/d-feet/files/d-feet-0.3.16-fix-meson-0.61.patch b/dev-debug/d-feet/files/d-feet-0.3.16-fix-meson-0.61.patch deleted file mode 100644 index 064f94105882..000000000000 --- a/dev-debug/d-feet/files/d-feet-0.3.16-fix-meson-0.61.patch +++ /dev/null @@ -1,31 +0,0 @@ -https://gitlab.gnome.org/GNOME/d-feet/-/merge_requests/32 -https://bugs.gentoo.org/831524 - -From 05465d486afdba116dbc22fc22c1e6573aea4f22 Mon Sep 17 00:00:00 2001 -From: Jan Beich <jbeich@FreeBSD.org> -Date: Mon, 24 Jan 2022 12:11:57 +0000 -Subject: [PATCH] meson: drop unused argument for i18n.merge_file() - -Ignored in Meson < 0.60.0, deprecated since 0.60.1 and fatal since 0.61.0. - -data/meson.build:15:0: ERROR: Function does not take positional arguments. -data/meson.build:27:0: ERROR: Function does not take positional arguments. ---- a/data/meson.build -+++ b/data/meson.build -@@ -13,7 +13,6 @@ desktop_in = configure_file( - ) - - i18n.merge_file( -- desktop, - type: 'desktop', - input: desktop_in, - output: '@BASENAME@', -@@ -25,7 +24,6 @@ i18n.merge_file( - appdata = df_namespace + '.appdata.xml' - - i18n.merge_file( -- appdata, - input: appdata + '.in', - output: '@BASENAME@', - po_dir: po_dir, -GitLab diff --git a/dev-debug/d-feet/metadata.xml b/dev-debug/d-feet/metadata.xml deleted file mode 100644 index f6b6cde5f785..000000000000 --- a/dev-debug/d-feet/metadata.xml +++ /dev/null @@ -1,9 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>gnome@gentoo.org</email> - <name>Gentoo GNOME Desktop</name> - </maintainer> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/dev-debug/d-spy/Manifest b/dev-debug/d-spy/Manifest deleted file mode 100644 index 3c4dbcd78c67..000000000000 --- a/dev-debug/d-spy/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST d-spy-48.0.tar.xz 219364 BLAKE2B b2df2027ce3767516bdd1ba9304c7b4f0e5883d04e26cfe94abc34c2ddb6292cca8fe313715e447b6b94f69316b96884578fac9891e5037acb7061f4df1f15da SHA512 aaea06f6ebdd93b3ab1fee8fd917600ae93aa90e35e0e8188eac614b10b043777021649e585150f973b5e0c079f1e94b10139758c6fe9e6d197f16192e1d44bd -DIST d-spy-49.2.tar.xz 215988 BLAKE2B 2950f8887c945afa0ee6a4af8e7e934595a67862a9e5056b48b72076fedeec985abc97d68eec87929e117a42730fc3f62a33d869d6b473569bcc7e1ff428964e SHA512 379d7ff8539163cf9792b6c53747fd66540f6d12616b0f7ec977adab890de4362fbf77cdc8b4afeaeb0583cff1ae6f7621cda880ab05a2cde6b3abc372e9707d diff --git a/dev-debug/d-spy/d-spy-48.0.ebuild b/dev-debug/d-spy/d-spy-48.0.ebuild deleted file mode 100644 index 0ba6cb0690ee..000000000000 --- a/dev-debug/d-spy/d-spy-48.0.ebuild +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit gnome.org meson xdg - -DESCRIPTION="D-Spy is a simple tool to explore D-Bus connections" -HOMEPAGE="https://apps.gnome.org/Dspy/" - -LICENSE="GPL-3+ LGPL-3+" -SLOT="1" -KEYWORDS="amd64 ~arm64" - -DEPEND=" - >=dev-libs/glib-2.76:2 - >=gui-libs/gtk-4.12:4 - >=gui-libs/libadwaita-1.5:1 -" -RDEPEND=" - ${DEPEND} - >=sys-apps/dbus-1 -" -BDEPEND=" - dev-libs/appstream-glib - dev-util/desktop-file-utils - sys-devel/gettext - virtual/pkgconfig -" - -src_configure() { - local emesonargs=( - -Dbuilder=false - ) - meson_src_configure -} diff --git a/dev-debug/d-spy/d-spy-49.2.ebuild b/dev-debug/d-spy/d-spy-49.2.ebuild deleted file mode 100644 index 8cb6250c2433..000000000000 --- a/dev-debug/d-spy/d-spy-49.2.ebuild +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit gnome.org meson xdg - -DESCRIPTION="D-Spy is a simple tool to explore D-Bus connections" -HOMEPAGE="https://apps.gnome.org/Dspy/" - -LICENSE="GPL-3+ LGPL-3+" -SLOT="1" -KEYWORDS="~amd64 ~arm64" - -DEPEND=" - >=dev-libs/glib-2.82:2 - >=gui-libs/gtk-4.16:4 - >=dev-libs/libdex-0.11 - >=gui-libs/libadwaita-1.7:1 -" -RDEPEND=" - ${DEPEND} - >=sys-apps/dbus-1 -" -BDEPEND=" - dev-libs/appstream-glib - dev-util/desktop-file-utils - sys-devel/gettext - virtual/pkgconfig -" - -src_configure() { - local emesonargs=( - -Dbuilder=false - ) - meson_src_configure -} diff --git a/dev-debug/d-spy/metadata.xml b/dev-debug/d-spy/metadata.xml deleted file mode 100644 index f6b6cde5f785..000000000000 --- a/dev-debug/d-spy/metadata.xml +++ /dev/null @@ -1,9 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>gnome@gentoo.org</email> - <name>Gentoo GNOME Desktop</name> - </maintainer> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/dev-debug/ddd/Manifest b/dev-debug/ddd/Manifest deleted file mode 100644 index 365fb8f7a180..000000000000 --- a/dev-debug/ddd/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST ddd-3.3.12.tar.gz 5687115 BLAKE2B 52c448eda46bfdc4f5720abda569a0c70f3680c3fdd543f6101c9af8c4c448496414c1c2a7be91590d9f14d0c8c2bb053a234d179bf900ca52df0ea8c2642131 SHA512 1249e4f5f25335f8f2c3616470f7a8f36262c00b8ac12b79f2b2806228de2831ebeb780fe09490e5e8b5b1ca108fe936ae70856f6a6ec02876fc75c7b4a7dbf3 -DIST ddd-3.4.1.tar.gz 5843945 BLAKE2B 14ec84250dc1a32998cd85d0eb303d4c4d53e027a7f49ca65b7cd65f2c30ea0e450ba41cc35d9050de4c7097f4703d1bb40d1402b5dfdecc5c22f86b2b8101ed SHA512 84dfa5dbbba1033a0fb4e60c6bfacd86f9d9b22f20ab02ada1c1a2abfdac18fe5ef8af25c9519638ae3b9a1d06f4518aec03afff9dbae35e8fd6aab8a6829bef diff --git a/dev-debug/ddd/ddd-3.3.12-r5.ebuild b/dev-debug/ddd/ddd-3.3.12-r5.ebuild deleted file mode 100644 index 730e4ac6d261..000000000000 --- a/dev-debug/ddd/ddd-3.3.12-r5.ebuild +++ /dev/null @@ -1,90 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools desktop flag-o-matic optfeature - -DESCRIPTION="Graphical front-end for command-line debuggers" -HOMEPAGE="https://www.gnu.org/software/ddd" -SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" - -LICENSE="GPL-3 LGPL-3 FDL-1.1" -SLOT="0" -KEYWORDS="~alpha amd64 ppc ppc64 ~sparc x86" -IUSE="readline" - -RESTRICT="test" - -COMMON_DEPEND=" - dev-debug/gdb - sys-libs/ncurses:= - x11-libs/libX11 - x11-libs/libXaw - x11-libs/libXmu - x11-libs/libXpm - x11-libs/libXt - >=x11-libs/motif-2.3:0 - ppc? ( dev-libs/elfutils ) - ppc64? ( dev-libs/elfutils ) - readline? ( sys-libs/readline:= ) -" -DEPEND="${COMMON_DEPEND} - x11-base/xorg-proto -" -RDEPEND="${COMMON_DEPEND} - x11-apps/xfontsel -" - -PATCHES=( - "${FILESDIR}/${P}-gcc44.patch" - "${FILESDIR}/${P}-gdb-disassembler-bug.patch" - "${FILESDIR}/${PN}-3.3.12-man.patch" - "${FILESDIR}/${PN}-3.3.12-tinfo.patch" - "${FILESDIR}/${PN}-3.3.12-gcc9.patch" - "${FILESDIR}/${PN}-3.3.12-parallel.patch" - "${FILESDIR}/${PN}-3.3.12-clang.patch" -) - -DOCS=( - AUTHORS CREDITS INSTALL NEWS PROBLEMS README TIPS TODO - doc/ddd{-paper.ps,.pdf,-themes.pdf} -) - -src_prepare() { - default - eautoreconf -} - -src_configure() { - # -Werror=odr - # https://bugs.gentoo.org/858347 - # https://savannah.gnu.org/bugs/?65456 - filter-lto - - econf \ - $(use_with readline) -} - -src_install() { - # Remove app defaults - rm -f "${S}"/ddd/Ddd || die - - # Install ddd distribution - default - - # Install application icon - doicon "${S}"/icons/ddd.xpm -} - -pkg_postinst() { - optfeature "Data visualisation" sci-visualization/gnuplot - optfeature "Java debugging" virtual/jdk - optfeature "Bash debugging" app-shells/bashdb - optfeature "Perl debugging" dev-lang/perl - optfeature "Python debugging" dev-python/pydb - elog - elog "Important notice: if you encounter DDD crashes during visualization, you might" - elog "have hit bug #459324. Try switching to plotting in external window:" - elog "Select Edit|Preferences|Helpers and switch 'plot window' to 'external'" -} diff --git a/dev-debug/ddd/ddd-3.4.1.ebuild b/dev-debug/ddd/ddd-3.4.1.ebuild deleted file mode 100644 index c7182039dedd..000000000000 --- a/dev-debug/ddd/ddd-3.4.1.ebuild +++ /dev/null @@ -1,80 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools desktop flag-o-matic optfeature - -DESCRIPTION="Graphical front-end for command-line debuggers" -HOMEPAGE="https://www.gnu.org/software/ddd" -SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" - -LICENSE="GPL-3 LGPL-3 FDL-1.1" -SLOT="0" -KEYWORDS="~alpha amd64 ppc ppc64 ~sparc x86" -IUSE="readline" - -RESTRICT="test" - -COMMON_DEPEND=" - dev-debug/gdb - media-libs/freetype:2 - sys-libs/ncurses:= - x11-libs/libX11 - x11-libs/libXaw - x11-libs/libXmu - x11-libs/libXpm - x11-libs/libXt - >=x11-libs/motif-2.3:0 - ppc? ( dev-libs/elfutils ) - ppc64? ( dev-libs/elfutils ) - readline? ( sys-libs/readline:= ) -" -DEPEND="${COMMON_DEPEND} - x11-base/xorg-proto -" -RDEPEND="${COMMON_DEPEND} - x11-apps/xfontsel -" - -DOCS=( - README doc/ddd{.pdf,-themes.pdf} -) - -src_prepare() { - default - eautoreconf -} - -src_configure() { - # -Werror=odr - # https://bugs.gentoo.org/858347 - # https://savannah.gnu.org/bugs/?65456 - filter-lto - - econf \ - $(use_with readline) -} - -src_install() { - # Remove app defaults - rm -f "${S}"/ddd/Ddd || die - - # Install ddd distribution - default - - # Install application icon - doicon "${S}"/icons/ddd.xpm -} - -pkg_postinst() { - optfeature "Data visualisation" sci-visualization/gnuplot - optfeature "Java debugging" virtual/jdk - optfeature "Bash debugging" app-shells/bashdb - optfeature "Perl debugging" dev-lang/perl - optfeature "Python debugging" dev-python/pydb - elog - elog "Important notice: if you encounter DDD crashes during visualization, you might" - elog "have hit bug #459324. Try switching to plotting in external window:" - elog "Select Edit|Preferences|Helpers and switch 'plot window' to 'external'" -} diff --git a/dev-debug/ddd/files/ddd-3.3.12-clang.patch b/dev-debug/ddd/files/ddd-3.3.12-clang.patch deleted file mode 100644 index a1f8da27b116..000000000000 --- a/dev-debug/ddd/files/ddd-3.3.12-clang.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff -ruN ddd-3.3.12/ddd/exit.C ddd-my/ddd/exit.C ---- ddd-3.3.12/ddd/exit.C 2009-02-11 18:25:07.000000000 +0100 -+++ ddd-my/ddd/exit.C 2020-09-27 03:23:14.713650981 +0200 -@@ -769,7 +769,11 @@ - - static XtAppContext xt_error_app_context = 0; - -+#ifdef __clang__ -+static void ddd_xt_error(String message = 0) _X_NORETURN -+#else - static void ddd_xt_error(String message = 0) -+#endif - { - ddd_has_crashed = true; - diff --git a/dev-debug/ddd/files/ddd-3.3.12-gcc44.patch b/dev-debug/ddd/files/ddd-3.3.12-gcc44.patch deleted file mode 100644 index 2464b2b4a9c4..000000000000 --- a/dev-debug/ddd/files/ddd-3.3.12-gcc44.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- ddd-3.3.12-orig/ddd/strclass.C -+++ ddd-3.3.12/ddd/strclass.C -@@ -39,6 +39,7 @@ - #include <limits.h> - #include <new> - #include <stdlib.h> -+#include <stdio.h> - - void string::error(const char* msg) const - { diff --git a/dev-debug/ddd/files/ddd-3.3.12-gcc9.patch b/dev-debug/ddd/files/ddd-3.3.12-gcc9.patch deleted file mode 100644 index ce12a41c91d2..000000000000 --- a/dev-debug/ddd/files/ddd-3.3.12-gcc9.patch +++ /dev/null @@ -1,93 +0,0 @@ -diff -ruN -x '*.am' ddd-3.3.12/ddd/strclass.h my/ddd/strclass.h ---- ddd-3.3.12/ddd/strclass.h 2009-02-11 18:25:06.000000000 +0100 -+++ my/ddd/strclass.h 2019-11-22 22:00:49.000267420 +0100 -@@ -543,7 +543,6 @@ - bool OK() const; - }; - -- - class string - { - friend class subString; -@@ -811,9 +810,9 @@ - const regex& sep); - - friend string common_prefix(const string& x, const string& y, -- int startpos = 0); -+ int startpos); - friend string common_suffix(const string& x, const string& y, -- int startpos = -1); -+ int startpos); - friend string replicate(char c, int n); - friend string replicate(const string& y, int n); - friend string join(const string *src, int n, const string& sep); -@@ -864,8 +863,8 @@ - friend std::istream& operator>>(std::istream& s, string& x); - - friend int readline(std::istream& s, string& x, -- char terminator = '\n', -- int discard_terminator = 1); -+ char terminator, -+ int discard_terminator); - - // Status - unsigned int length() const; -@@ -882,6 +881,58 @@ - bool OK() const; - }; - -+inline void cat(const string&, const string&, string&); -+inline void cat(const string&, const subString&, string&); -+inline void cat(const string&, const constSubString&, string&); -+inline void cat(const string&, const char*, string&); -+inline void cat(const string&, char*, string&); -+inline void cat(const string&, char, string&); -+ -+inline void cat(const subString&, const string&, string&); -+inline void cat(const subString&, const subString&, string&); -+inline void cat(const subString&, const char*, string&); -+inline void cat(const subString&, char*, string&); -+inline void cat(const subString&, char, string&); -+ -+inline void cat(const char*, const string&, string&); -+inline void cat(const char*, const subString&, string&); -+inline void cat(const char*, const char*, string&); -+inline void cat(const char*, char*, string&); -+inline void cat(const char*, char, string&); -+ -+inline void cat(char*, const string&, string&); -+inline void cat(char*, const subString&, string&); -+inline void cat(char*, const char*, string&); -+inline void cat(char*, char*, string&); -+inline void cat(char*, char, string&); -+ -+inline void cat(char, const string&, string&); -+inline void cat(char, const subString&, string&); -+inline void cat(char, const char*, string&); -+inline void cat(char, char*, string&); -+inline void cat(char, char, string&); -+ -+int split(const string& x, string *res, int maxn, -+ const string& sep); -+int split(const string& x, string *res, int maxn, -+ const regex& sep); -+ -+string common_prefix(const string& x, const string& y, -+ int startpos = 0); -+string common_suffix(const string& x, const string& y, -+ int startpos = -1); -+string replicate(char c, int n); -+string replicate(const string& y, int n); -+string join(const string *src, int n, const string& sep); -+ -+inline std::ostream& operator<<(std::ostream& s, const string& x); -+inline std::ostream& operator<<(std::ostream& s, const subString& x); -+std::istream& operator>>(std::istream& s, string& x); -+ -+int readline(std::istream& s, string& x, -+ char terminator = '\n', -+ int discard_terminator = 1); -+ - // Inject names manually to accomodate argument-dependent name lookup (ADL) - // (aka Koenig lookup). The rule is that friend declarations are visible - // when found through ADL because an argument of the call happens to be diff --git a/dev-debug/ddd/files/ddd-3.3.12-gdb-disassembler-bug.patch b/dev-debug/ddd/files/ddd-3.3.12-gdb-disassembler-bug.patch deleted file mode 100644 index 738cda5946f9..000000000000 --- a/dev-debug/ddd/files/ddd-3.3.12-gdb-disassembler-bug.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/ddd/GDBAgent.C 2004-09-01 20:07:38.000000000 +0200 -+++ b/ddd/GDBAgent.C 2010-06-15 14:16:34.000000000 +0200 -@@ -3078,7 +3078,7 @@ - { - string end_( end ); - normalize_address(end_); -- cmd += ' '; -+ cmd += ','; - cmd += end_; - } - return cmd; diff --git a/dev-debug/ddd/files/ddd-3.3.12-man.patch b/dev-debug/ddd/files/ddd-3.3.12-man.patch deleted file mode 100644 index 06f9deb806f0..000000000000 --- a/dev-debug/ddd/files/ddd-3.3.12-man.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff -ruN ddd-3.3.12/ddd/Makefile.am ddd-my/ddd/Makefile.am ---- ddd-3.3.12/ddd/Makefile.am 2009-02-11 18:25:07.000000000 +0100 -+++ ddd-my/ddd/Makefile.am 2012-11-06 01:48:46.363493473 +0100 -@@ -1371,10 +1371,8 @@ - man_MANS = ddd.1 - - # `ddd.man' has 8-bit format, `ddd.1' has 7-bit format --ddd.1: ddd.man $(srcdir)/unumlaut.sed -- -$(SED) -f $(srcdir)/unumlaut.sed ddd.man | $(DELETE_CR) > $@~ \ -- && $(MV) $@~ $@ -- -+ddd.1: ddd.man -+ iconv -f ISO8859-15 -t UTF-8 ddd.man > ddd.1 - - - # ----------------------------------------------------------------------------- diff --git a/dev-debug/ddd/files/ddd-3.3.12-parallel.patch b/dev-debug/ddd/files/ddd-3.3.12-parallel.patch deleted file mode 100644 index 21624a2ab614..000000000000 --- a/dev-debug/ddd/files/ddd-3.3.12-parallel.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff -ruN -x strclass.h ddd-3.3.12/ddd/Makefile.am my/ddd/Makefile.am ---- ddd-3.3.12/ddd/Makefile.am 2009-02-11 18:25:07.000000000 +0100 -+++ my/ddd/Makefile.am 2019-11-22 22:49:26.212765331 +0100 -@@ -580,9 +580,8 @@ - - # Make sure needed headers are built before trying to compile these files - # (Assume ddd.C is the first source file to be built.) --ddd.o: version.h host.h root.h --resources.o: Ddd.ad.h --show.o: build.h -+# MM: AND WHY WOULD YOU ASSUME THAT?? -+BUILT_SOURCES = version.h host.h root.h Ddd.ad.h build.h - - # ----------------------------------------------------------------------------- - # Local Libraries. diff --git a/dev-debug/ddd/files/ddd-3.3.12-tinfo.patch b/dev-debug/ddd/files/ddd-3.3.12-tinfo.patch deleted file mode 100644 index ab7df14ae9d9..000000000000 --- a/dev-debug/ddd/files/ddd-3.3.12-tinfo.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/configure.ac -+++ b/configure.ac -@@ -360,7 +360,7 @@ - dnl - _termlib="${ddd_termlib}" - if test "x${ddd_termlib}" = x; then -- _termlib="mytinfo ncurses curses termcap terminfo termlib" -+ _termlib="mytinfo ncurses tinfo curses termcap terminfo termlib" - fi - _termlib_path= - if test x"${ddd_termlib_libraries_path}" != x; then diff --git a/dev-debug/ddd/metadata.xml b/dev-debug/ddd/metadata.xml deleted file mode 100644 index 9e0d9ed37bef..000000000000 --- a/dev-debug/ddd/metadata.xml +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <longdescription lang="en"> - GNU DDD is a graphical front-end for command-line debuggers such as - GDB, DBX, WDB, Ladebug, JDB, XDB, the Perl debugger, the bash debugger, - or the Python debugger. Besides ``usual'' front-end features such as - viewing source texts, DDD has become famous through its interactive - graphical data display, where data structures are displayed as graphs. - </longdescription> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/dev-debug/drgn/Manifest b/dev-debug/drgn/Manifest deleted file mode 100644 index 09d4a727cea4..000000000000 --- a/dev-debug/drgn/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST drgn-0.0.33.tar.gz 1674341 BLAKE2B 3995dd5c4b0242bea63e1fe40a031ac117376287b323da24286700d455ce8bacfee56dc7fc7fb873ef67295f47ae93b7f2ff56483ddd5cbe30ccc83f9e9f32af SHA512 163a281af90320287914b5544adb05f1dd5b96d9f2478df82f70f8258f30814c03be673fa9db177297b5fa1223c9923c041209c68b3df6e34f2b63b14fd74301 -DIST drgn-0.1.0.tar.gz 1850058 BLAKE2B 1556b67c59b565a94874eb88fa5cf3d30326560c4b599e45b750f74715d96fa0e4ae3675378503ecb4ae81a0e2bd2f810ff3cc4a1ccf1e6d0049aa2deeea2df2 SHA512 de17207b7badfc685c1a4d9593f9cd9e330ae6d7bf4f80628bf2b5c9d5c2a309b88bd05c0d46837aa9bacc5f3bd35711ed9226fbcaef1b6e37b3bb1830c652ca diff --git a/dev-debug/drgn/drgn-0.0.33.ebuild b/dev-debug/drgn/drgn-0.0.33.ebuild deleted file mode 100644 index 7391a8237363..000000000000 --- a/dev-debug/drgn/drgn-0.0.33.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright 2024-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{13..14} ) - -inherit distutils-r1 multiprocessing pypi toolchain-funcs - -DESCRIPTION="Programmable debugger" -HOMEPAGE=" - https://github.com/osandov/drgn - https://pypi.org/project/drgn/ - https://drgn.readthedocs.io/en/latest/ -" - -LICENSE="LGPL-2.1+" -# Note that as of 0.0.31 at least, the API+ABI of libdrgn is unstable. -SLOT="0/${PV}" -KEYWORDS="~amd64" -IUSE="debuginfod lzma openmp" - -DEPEND=" - >=dev-libs/elfutils-0.165[debuginfod?] - dev-libs/libkdumpfile:= - lzma? ( app-arch/xz-utils ) -" -RDEPEND="${DEPEND}" -BDEPEND=" - virtual/pkgconfig - test? ( dev-libs/check ) -" - -distutils_enable_tests unittest - -pkg_pretend() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp -} - -pkg_setup() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp -} - -src_configure() { - tc-export AR CC OBJCOPY OBJDUMP PKG_CONFIG RANLIB STRIP - - cat >> setup.cfg <<-EOF || die - [build_ext] - parallel = $(makeopts_jobs) - EOF - - # setuptools calls autotools (!) - export CONFIGURE_FLAGS - CONFIGURE_FLAGS="--disable-dependency-tracking --disable-silent-rules" - CONFIGURE_FLAGS+=" --with-libkdumpfile" - CONFIGURE_FLAGS+=" --enable-libdrgn" - CONFIGURE_FLAGS+=" --enable-python-extension" - CONFIGURE_FLAGS+=" --disable-dlopen-debuginfod" - CONFIGURE_FLAGS+=" $(use_with debuginfod)" - CONFIGURE_FLAGS+=" $(use_with lzma)" - CONFIGURE_FLAGS+=" $(use_enable openmp)" - CONFIGURE_FLAGS+=" --build=${CBUILD}" - CONFIGURE_FLAGS+=" --host=${CHOST}" - CONFIGURE_FLAGS+=" --target=${CTARGET}" - distutils-r1_src_configure -} diff --git a/dev-debug/drgn/drgn-0.1.0.ebuild b/dev-debug/drgn/drgn-0.1.0.ebuild deleted file mode 100644 index f43acbdec2a3..000000000000 --- a/dev-debug/drgn/drgn-0.1.0.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 2024-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{13..14} ) - -inherit distutils-r1 multiprocessing pypi toolchain-funcs - -DESCRIPTION="Programmable debugger" -HOMEPAGE=" - https://github.com/osandov/drgn - https://pypi.org/project/drgn/ - https://drgn.readthedocs.io/en/latest/ -" - -LICENSE="LGPL-2.1+" -# Note that as of 0.0.31 at least, the API+ABI of libdrgn is unstable. -SLOT="0/${PV}" -KEYWORDS="~amd64" -IUSE="debuginfod lzma openmp pcre" - -DEPEND=" - >=dev-libs/elfutils-0.165[debuginfod?] - dev-libs/libkdumpfile:= - lzma? ( app-arch/xz-utils ) - pcre? ( dev-libs/libpcre2 ) -" -RDEPEND="${DEPEND}" -BDEPEND=" - virtual/pkgconfig - test? ( dev-libs/check ) -" - -distutils_enable_tests unittest - -pkg_pretend() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp -} - -pkg_setup() { - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp -} - -src_configure() { - tc-export AR CC OBJCOPY OBJDUMP PKG_CONFIG RANLIB STRIP - - cat >> setup.cfg <<-EOF || die - [build_ext] - parallel = $(makeopts_jobs) - EOF - - # setuptools calls autotools (!) - export CONFIGURE_FLAGS - CONFIGURE_FLAGS="--disable-dependency-tracking --disable-silent-rules" - CONFIGURE_FLAGS+=" --with-libkdumpfile" - CONFIGURE_FLAGS+=" --enable-libdrgn" - CONFIGURE_FLAGS+=" --enable-python-extension" - CONFIGURE_FLAGS+=" --disable-dlopen-debuginfod" - CONFIGURE_FLAGS+=" $(use_with debuginfod)" - CONFIGURE_FLAGS+=" $(use_with lzma)" - CONFIGURE_FLAGS+=" $(use_enable openmp)" - CONFIGURE_FLAGS+=" $(use_with pcre pcre2)" - CONFIGURE_FLAGS+=" --build=${CBUILD}" - CONFIGURE_FLAGS+=" --host=${CHOST}" - CONFIGURE_FLAGS+=" --target=${CTARGET}" - distutils-r1_src_configure -} diff --git a/dev-debug/drgn/metadata.xml b/dev-debug/drgn/metadata.xml deleted file mode 100644 index 3deb6540954f..000000000000 --- a/dev-debug/drgn/metadata.xml +++ /dev/null @@ -1,13 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>sam@gentoo.org</email> - <name>Sam James</name> - </maintainer> - <use> - <flag name="debuginfod">Enable debuginfod support</flag> - <flag name="lzma">Support XZ-compressed debug information (MiniDebugInfo).</flag> - </use> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/dev-debug/dtrace/Manifest b/dev-debug/dtrace/Manifest deleted file mode 100644 index 8ae8bc350f5a..000000000000 --- a/dev-debug/dtrace/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST dtrace-2.0.6.tar.gz 1728356 BLAKE2B dbb28c97a91e6759517eb6840b93b3abc5df08d33b94bd70bd03e2ffb523469324daa1d067c150244ea94c9ffc8d31703e4963f0746fed540863a8fc7f6674ef SHA512 89f9c572c2aed56fb6161d4a98681ca151fd084a21d0de455eab26dca839dd7001633a09a37d08078fce311b23b4a1b7ba7aef41a070249fd4e3fc68e328997d -DIST dtrace-2.0.7.tar.gz 1730617 BLAKE2B 971cadc74482368f1a51c89f8793f01ebf499fc3e1dc085b7e26642f157e8a58979082e9c3dd127b21443592f32d49ced4571d933392c0576650c9adc8bfb419 SHA512 5c49efde8a2bd4f4e79410bfebde07ac49415789a21351c077166d3c5e0f58a5153f8e391f7775cb9c6adb1bec30884dae2540c73ca2db25d56d30202e42f789 diff --git a/dev-debug/dtrace/dtrace-2.0.6.ebuild b/dev-debug/dtrace/dtrace-2.0.6.ebuild deleted file mode 100644 index 4c3fb6b82c29..000000000000 --- a/dev-debug/dtrace/dtrace-2.0.6.ebuild +++ /dev/null @@ -1,232 +0,0 @@ -# Copyright 2024-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -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 https://wiki.gentoo.org/wiki/DTrace" - -if [[ ${PV} == 9999 ]]; then - EGIT_BRANCH="devel" - EGIT_REPO_URI="https://github.com/oracle/dtrace" - inherit git-r3 -else - SRC_URI="https://github.com/oracle/dtrace/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" - - KEYWORDS="-* amd64 arm64" -fi - -LICENSE="UPL-1.0" -SLOT="0" -IUSE="test-install valgrind" - -# 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:= - virtual/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" - CONFIG_CHECK+=" ~BPF_KPROBE_OVERRIDE ~FUNCTION_ERROR_INJECTION" - # 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,--undefined-version) - # mold and lld can't cope with some relocation types used, e.g. - # 'test-triggers--usdt-tst-forker-prov.o:(.SUNW_dof): unknown relocation: R_X86_64_GLOB_DAT' - tc-ld-force-bfd - - # -fno-semantic-interposition seems to lead to a broken dtrace - # 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 - --prefix="${EPREFIX}"/usr - --mandir="${EPREFIX}"/usr/share/man - --docdir="${EPREFIX}"/usr/share/doc/${PF} - --with-systemd - HAVE_LIBCTF=yes - HAVE_BPFV3=yes - HAVE_VALGRIND=$(usex valgrind) - ) - - edo ./configure "${confargs[@]}" -} - -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/issues/82 - emake -j1 "${myemakeargs[@]}" -} - -src_test() { - # Needs root and is also very time-consuming - :; -} - -src_install() { - emake DESTDIR="${D}" -j1 install $(usev test-install install-test) - - # We want to strip neither the BPF libraries nor libdtrace.so itself - # as probes attach to some symbols that would get removed otherwise. - dostrip -x "/usr/$(get_libdir)" - - # It's a binary (TODO: move it?) - docompress -x /usr/share/doc/${PF}/showUSDT - - newinitd "${FILESDIR}"/dtprobed.init dtprobed -} - -pkg_postinst() { - # We need a udev reload to pick up the CUSE device node rules. - udev_reload - - 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 once all dtraces are stopped with:" - einfo " systemctl try-restart dtprobed" - else - einfo "Restart the DTrace 'dtprobed' service after upgrades 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." - - # 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" - 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 dtprobed start - eend $? - fi - fi -} - -pkg_postrm() { - udev_reload -} diff --git a/dev-debug/dtrace/dtrace-2.0.7.ebuild b/dev-debug/dtrace/dtrace-2.0.7.ebuild deleted file mode 100644 index 4c3fb6b82c29..000000000000 --- a/dev-debug/dtrace/dtrace-2.0.7.ebuild +++ /dev/null @@ -1,232 +0,0 @@ -# Copyright 2024-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -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 https://wiki.gentoo.org/wiki/DTrace" - -if [[ ${PV} == 9999 ]]; then - EGIT_BRANCH="devel" - EGIT_REPO_URI="https://github.com/oracle/dtrace" - inherit git-r3 -else - SRC_URI="https://github.com/oracle/dtrace/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" - - KEYWORDS="-* amd64 arm64" -fi - -LICENSE="UPL-1.0" -SLOT="0" -IUSE="test-install valgrind" - -# 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:= - virtual/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" - CONFIG_CHECK+=" ~BPF_KPROBE_OVERRIDE ~FUNCTION_ERROR_INJECTION" - # 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,--undefined-version) - # mold and lld can't cope with some relocation types used, e.g. - # 'test-triggers--usdt-tst-forker-prov.o:(.SUNW_dof): unknown relocation: R_X86_64_GLOB_DAT' - tc-ld-force-bfd - - # -fno-semantic-interposition seems to lead to a broken dtrace - # 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 - --prefix="${EPREFIX}"/usr - --mandir="${EPREFIX}"/usr/share/man - --docdir="${EPREFIX}"/usr/share/doc/${PF} - --with-systemd - HAVE_LIBCTF=yes - HAVE_BPFV3=yes - HAVE_VALGRIND=$(usex valgrind) - ) - - edo ./configure "${confargs[@]}" -} - -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/issues/82 - emake -j1 "${myemakeargs[@]}" -} - -src_test() { - # Needs root and is also very time-consuming - :; -} - -src_install() { - emake DESTDIR="${D}" -j1 install $(usev test-install install-test) - - # We want to strip neither the BPF libraries nor libdtrace.so itself - # as probes attach to some symbols that would get removed otherwise. - dostrip -x "/usr/$(get_libdir)" - - # It's a binary (TODO: move it?) - docompress -x /usr/share/doc/${PF}/showUSDT - - newinitd "${FILESDIR}"/dtprobed.init dtprobed -} - -pkg_postinst() { - # We need a udev reload to pick up the CUSE device node rules. - udev_reload - - 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 once all dtraces are stopped with:" - einfo " systemctl try-restart dtprobed" - else - einfo "Restart the DTrace 'dtprobed' service after upgrades 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." - - # 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" - 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 dtprobed start - eend $? - fi - fi -} - -pkg_postrm() { - udev_reload -} diff --git a/dev-debug/dtrace/dtrace-9999.ebuild b/dev-debug/dtrace/dtrace-9999.ebuild deleted file mode 100644 index a048c509f0f0..000000000000 --- a/dev-debug/dtrace/dtrace-9999.ebuild +++ /dev/null @@ -1,233 +0,0 @@ -# Copyright 2024-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -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 https://wiki.gentoo.org/wiki/DTrace" - -if [[ ${PV} == 9999 ]]; then - EGIT_BRANCH="devel" - EGIT_REPO_URI="https://github.com/oracle/dtrace" - inherit git-r3 -else - SRC_URI="https://github.com/oracle/dtrace/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" - - KEYWORDS="-* ~amd64 ~arm64" -fi - -LICENSE="UPL-1.0" -SLOT="0" -IUSE="test-install valgrind" - -# 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:= - virtual/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" - CONFIG_CHECK+=" ~BPF_KPROBE_OVERRIDE ~FUNCTION_ERROR_INJECTION" - # 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,--undefined-version) - # mold and lld can't cope with some relocation types used, e.g. - # 'test-triggers--usdt-tst-forker-prov.o:(.SUNW_dof): unknown relocation: R_X86_64_GLOB_DAT' - tc-ld-force-bfd - - # -fno-semantic-interposition seems to lead to a broken dtrace - # 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=( - --disable-dependency-tracking - # TODO: Maybe we should set the UNPRIV_UID to something? -3 is a bit... kludgy - --prefix="${EPREFIX}"/usr - --mandir="${EPREFIX}"/usr/share/man - --docdir="${EPREFIX}"/usr/share/doc/${PF} - --with-systemd - HAVE_LIBCTF=yes - HAVE_BPFV3=yes - HAVE_VALGRIND=$(usex valgrind) - ) - - edo ./configure "${confargs[@]}" -} - -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/issues/82 - emake -j1 "${myemakeargs[@]}" -} - -src_test() { - # Needs root and is also very time-consuming - :; -} - -src_install() { - emake DESTDIR="${D}" -j1 install $(usev test-install install-test) - - # We want to strip neither the BPF libraries nor libdtrace.so itself - # as probes attach to some symbols that would get removed otherwise. - dostrip -x "/usr/$(get_libdir)" - - # It's a binary (TODO: move it?) - docompress -x /usr/share/doc/${PF}/showUSDT - - newinitd "${FILESDIR}"/dtprobed.init dtprobed -} - -pkg_postinst() { - # We need a udev reload to pick up the CUSE device node rules. - udev_reload - - 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 once all dtraces are stopped with:" - einfo " systemctl try-restart dtprobed" - else - einfo "Restart the DTrace 'dtprobed' service after upgrades 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." - - # 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" - 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 dtprobed start - eend $? - fi - fi -} - -pkg_postrm() { - udev_reload -} diff --git a/dev-debug/dtrace/files/dtprobed.init b/dev-debug/dtrace/files/dtprobed.init deleted file mode 100644 index b3d039671e2f..000000000000 --- a/dev-debug/dtrace/files/dtprobed.init +++ /dev/null @@ -1,15 +0,0 @@ -#!/sbin/openrc-run - -depend() { - need localmount - need bootmisc - after logger -} - -start() { - start-stop-daemon --start --exec /usr/sbin/dtprobed -} - -stop() { - start-stop-daemon --stop --exec /usr/sbin/dtprobed -} diff --git a/dev-debug/dtrace/metadata.xml b/dev-debug/dtrace/metadata.xml deleted file mode 100644 index 83d41390d149..000000000000 --- a/dev-debug/dtrace/metadata.xml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>sam@gentoo.org</email> - <name>Sam James</name> - </maintainer> - <maintainer type="person"> - <email>arsen@gentoo.org</email> - <name>Arsen Arsenović</name> - </maintainer> - <use> - <flag name="test-install"> - Install the testsuite for manual use. It is not suitable - for automatic execution within the ebuild because it - requires root privileges. - - BTF must be available for the running kernel at build-time - with this flag. - </flag> - </use> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/dev-debug/gdb/Manifest b/dev-debug/gdb/Manifest deleted file mode 100644 index 7ec59dcc8c08..000000000000 --- a/dev-debug/gdb/Manifest +++ /dev/null @@ -1,3 +0,0 @@ -DIST gdb-16.3.tar.xz 24434444 BLAKE2B a75c8655b39580a7f6e0d85ef663f60932fbed9a92ade6d58a2e99bc8b1416b36f8410c66c23bdada83e221a65c1cdfdeb7bb7ae9a930c443557864a1769dbee SHA512 fffd6689c3405466a179670b04720dc825e4f210a761f63dd2b33027432f8cd5d1c059c431a5ec9e165eedd1901220b5329d73c522f9a444788888c731b29e9c -DIST gdb-17.1.tar.xz 24663896 BLAKE2B 35de074a50c747e6ed42faee8a87b3898b57d33e9667c9001eaf8b54c8cce555f7b16642d1583c1b4aabb45fc5e5db8c33d9f5786351e736f2db2f90d28a07ed SHA512 f1a6751e439a2128fecf3eae8b57c1608a0dc7cfe79b4356a937874e5a42bb2df0aba36eb6a9452c41966908b9a59076c7cad9720f684688ab956b65080f1d7c -DIST gdb-17.2.tar.xz 24658624 BLAKE2B 3c6c893e1d26d534918fb07b64f2e5b368825a64f888171f07443c5ebed456e7c26ed223d78bf304ee5f145c6f3c08c790c993c7b955d168e2fd8e656c6e1e9a SHA512 7794c5a185be7ed5e7ad1000c4ff7d8497c80425a1bc108aab8fd3dd8ecdde034e294dfd65b25c6b0dcd8ed2a240caf07293f3e73791b6cfc890d580d0af4581 diff --git a/dev-debug/gdb/files/gdb-8.3.1-verbose-build.patch b/dev-debug/gdb/files/gdb-8.3.1-verbose-build.patch deleted file mode 100644 index 06aa6084d2d2..000000000000 --- a/dev-debug/gdb/files/gdb-8.3.1-verbose-build.patch +++ /dev/null @@ -1,13 +0,0 @@ -Enable verbose build. By default gdb ignores even --disable-silent-rules. -Override verbosity back to non-silent. - -https://bugs.gentoo.org/695936 ---- a/gdb/silent-rules.mk -+++ b/gdb/silent-rules.mk -@@ -1,5 +1,4 @@ --# If V is undefined or V=0 is specified, use the silent/verbose/compact mode. --V ?= 0 -+V ?= 1 - ifeq ($(V),0) - ECHO_CXX = @echo " CXX $@"; - ECHO_CXXLD = @echo " CXXLD $@"; diff --git a/dev-debug/gdb/gdb-16.3.ebuild b/dev-debug/gdb/gdb-16.3.ebuild deleted file mode 100644 index fc32c360afa1..000000000000 --- a/dev-debug/gdb/gdb-16.3.ebuild +++ /dev/null @@ -1,349 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# See https://sourceware.org/gdb/wiki/DistroAdvice for general packaging -# tips & notes. - -GUILE_COMPAT=( 2-2 3-0 ) -PYTHON_COMPAT=( python3_{13..14} ) -inherit flag-o-matic guile-single linux-info python-single-r1 strip-linguas toolchain-funcs - -export CTARGET=${CTARGET:-${CHOST}} - -if [[ ${CTARGET} == ${CHOST} ]] ; then - if [[ ${CATEGORY} == cross-* ]] ; then - export CTARGET=${CATEGORY#cross-} - fi -fi - -is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } - -case ${PV} in - 9999*) - # live git tree - EGIT_REPO_URI=" - https://sourceware.org/git/binutils-gdb.git - https://git.sr.ht/~sourceware/binutils-gdb - https://gitlab.com/x86-binutils/binutils-gdb.git - " - inherit git-r3 - SRC_URI="" - ;; - *.*.50_p2???????|*.*.90_p2???????) - # Weekly snapshots - MY_PV="${PV/_p/.}" - SRC_URI=" - https://sourceware.org/pub/gdb/snapshots/branch/gdb-weekly-${MY_PV}.tar.xz - https://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${MY_PV}.tar.xz - https://distfiles.gentoo.org/pub/proj/toolchain/gdb/snapshots/gdb-weekly-${MY_PV}.tar.xz - " - S="${WORKDIR}/${PN}-${MY_PV}" - - # e.g. 13.1.90_p20230325 is a snapshot on the stable branch, so it's fine - if [[ ${PV} == *.[123456789].9?_p2??????? ]] ; then - REGULAR_RELEASE=1 - fi - ;; - *.*.9?) - # Prereleases - MY_PV="${PV/_p/.}" - SRC_URI=" - https://sourceware.org/pub/gdb/snapshots/branch/gdb-${MY_PV}.tar.xz - https://distfiles.gentoo.org/pub/proj/toolchain/gdb/snapshots/gdb-${MY_PV}.tar.xz - " - S="${WORKDIR}/${PN}-${MY_PV}" - ;; - *) - # Normal upstream release - SRC_URI=" - mirror://gnu/gdb/${P}.tar.xz - https://sourceware.org/pub/gdb/releases/${P}.tar.xz - " - - REGULAR_RELEASE=1 -esac - -PATCH_DEV="" -PATCH_VER="" -DESCRIPTION="GNU debugger" -HOMEPAGE="https://sourceware.org/gdb/" -SRC_URI=" - ${SRC_URI} - ${PATCH_DEV:+https://distfiles.gentoo.org/pub/proj/toolchain/gdb/patches/${P}-patches-${PATCH_VER}.tar.xz} -" - -LICENSE="GPL-3+ LGPL-2.1+" -SLOT="0" -IUSE="babeltrace cet +debuginfod guile lzma multitarget nls +python rocm +server sim source-highlight test vanilla xml xxhash zstd" -if [[ -n ${REGULAR_RELEASE} ]] ; then - KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos ~x64-solaris" -fi -REQUIRED_USE=" - guile? ( ${GUILE_REQUIRED_USE} ) - python? ( ${PYTHON_REQUIRED_USE} ) - rocm? ( multitarget ) -" -RESTRICT="!test? ( test )" - -# <babeltrace-2: bug #951652 -RDEPEND=" - dev-libs/mpfr:= - dev-libs/gmp:= - >=sys-libs/ncurses-5.2-r2:= - >=sys-libs/readline-7:= - virtual/zlib:= - babeltrace? ( dev-util/babeltrace:0/1 ) - debuginfod? ( - dev-libs/elfutils[debuginfod(-)] - ) - lzma? ( app-arch/xz-utils ) - python? ( ${PYTHON_DEPS} ) - guile? ( ${GUILE_DEPS} ) - xml? ( dev-libs/expat ) - rocm? ( >=dev-libs/rocdbgapi-6.3 ) - source-highlight? ( - dev-util/source-highlight - ) - xxhash? ( - dev-libs/xxhash - ) - zstd? ( app-arch/zstd:= ) -" -DEPEND="${RDEPEND}" -BDEPEND=" - app-arch/xz-utils - sys-apps/texinfo - app-alternatives/yacc - nls? ( sys-devel/gettext ) - source-highlight? ( virtual/pkgconfig ) - test? ( dev-util/dejagnu ) -" - -QA_CONFIG_IMPL_DECL_SKIP=( - MIN # gnulib FP (bug #898688) -) - -QA_PREBUILT="usr/share/gdb/guile/*" - -PATCHES=( - "${FILESDIR}"/${PN}-8.3.1-verbose-build.patch -) - -pkg_setup() { - local CONFIG_CHECK - - if [[ ${CHOST} == *-linux-* ]] ; then - if kernel_is -ge 6.11.3 ; then - # https://forums.gentoo.org/viewtopic-p-8846891.html - # - # Either CONFIG_PROC_MEM_ALWAYS_FORCE or CONFIG_PROC_MEM_FORCE_PTRACE - # should be okay, but not CONFIG_PROC_MEM_NO_FORCE. - CONFIG_CHECK+=" - ~!PROC_MEM_NO_FORCE - " - fi - fi - - linux-info_pkg_setup - - use guile && guile-single_pkg_setup - use python && python-single-r1_pkg_setup -} - -src_prepare() { - default - - use guile && guile_bump_sources - - strip-linguas -u bfd/po opcodes/po - - # Avoid using ancient termcap from host on Prefix systems - sed -i -e 's/termcap tinfow/tinfow/g' \ - gdb/configure{.ac,} || die -} - -gdb_branding() { - printf "Gentoo ${PV} " - - if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then - printf "p${PATCH_VER}" - else - printf "vanilla" - fi - - [[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}" -} - -src_configure() { - strip-unsupported-flags - - # See https://www.gnu.org/software/make/manual/html_node/Parallel-Output.html - # Avoid really confusing logs from subconfigure spam, makes logs far - # more legible. - MAKEOPTS="--output-sync=line ${MAKEOPTS}" - - local myconf=( - # portage's econf() does not detect presence of --d-d-t - # because it greps only top-level ./configure. But not - # libiberty's or gdb's configure. - --disable-dependency-tracking - --disable-silent-rules - - --with-pkgversion="$(gdb_branding)" - --with-bugurl='https://bugs.gentoo.org/' - --disable-werror - # Disable modules that are in a combined binutils/gdb tree. bug #490566 - --disable-{binutils,etc,gas,gold,gprof,gprofng,ld} - - $(use_with babeltrace) - $(use_with debuginfod) - - $(use_enable test unit-tests) - - # Allow user to opt into CET for host libraries. - # Ideally we would like automagic-or-disabled here. - # But the check does not quite work on i686: bug #760926. - $(use_enable cet) - - # Helps when cross-compiling. Not to be confused with --with-sysroot. - --with-build-sysroot="${ESYSROOT}" - ) - - is_cross && myconf+=( - --with-sysroot="\${prefix}/${CTARGET}" - --includedir="\${prefix}/include/${CTARGET}" - --with-gdb-datadir="\${datadir}/gdb/${CTARGET}" - ) - - # gdbserver only works for native targets (CHOST==CTARGET). - # it also doesn't support all targets, so rather than duplicate - # the target list (which changes between versions), use the - # "auto" value when things are turned on, which is triggered - # whenever no --enable or --disable is given - if is_cross || use !server ; then - myconf+=( --disable-gdbserver ) - fi - - myconf+=( - --enable-64-bit-bfd - --disable-install-libbfd - --disable-install-libiberty - --enable-obsolete - # This only disables building in the readline subdir. - # For gdb itself, it'll use the system version. - --disable-readline - --with-system-readline - # This only disables building in the zlib subdir. - # For gdb itself, it'll use the system version. - --without-zlib - --with-system-zlib - --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug - --with-amd-dbgapi=$(usex rocm) - $(use_with xml expat) - $(use_with lzma) - $(use_enable nls) - $(use_enable sim) - $(use_enable source-highlight) - $(use multitarget && echo --enable-targets=all) - $(use_with python python "${EPYTHON}") - $(use_with xxhash) - $(use_with guile) - $(use_with zstd) - - # Find libraries using the toolchain sysroot rather than the configured - # prefix. Needed when cross-compiling. - # - # Check which libraries to apply this to with: - # "${S}"/gdb/configure --help | grep without-lib | sort - --without-lib{babeltrace,expat,gmp,iconv,ipt,lzma,mpfr,xxhash}-prefix - ) - - # source-highlight is detected with pkg-config: bug #716558 - export ac_cv_path_pkg_config_prog_path="$(tc-getPKG_CONFIG)" - - export CC_FOR_BUILD="$(tc-getBUILD_CC)" - - # ensure proper compiler is detected for Clang builds: bug #831202 - export GCC_FOR_TARGET="${CC_FOR_TARGET:-$(tc-getCC)}" - - econf "${myconf[@]}" -} - -src_test() { - # Run the unittests (nabbed invocation from Fedora's spec file) at least - emake -k -C gdb run GDBFLAGS='-batch -ex "maintenance selftest"' - - # Too many failures - # In fact, gdb's test suite needs some work to get passing. - # See e.g. https://sourceware.org/gdb/wiki/TestingGDB. - # As of 11.2, on amd64: "# of unexpected failures 8600" - # Also, ia64 kernel crashes when gdb testsuite is running. - #emake -k check -} - -src_install() { - emake DESTDIR="${D}" install - - find "${ED}"/usr -name libiberty.a -delete || die - - # Delete translations that conflict with binutils-libs. bug #528088 - # Note: Should figure out how to store these in an internal gdb dir. - if use nls ; then - find "${ED}" \ - -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \ - -delete || die - fi - - # Don't install docs when building a cross-gdb - if [[ ${CTARGET} != ${CHOST} ]] ; then - rm -rf "${ED}"/usr/share/{doc,info,locale} || die - local f - for f in "${ED}"/usr/share/man/*/* ; do - if [[ ${f##*/} != ${CTARGET}-* ]] ; then - mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die - fi - done - return 0 - fi - - # Install it by hand for now: - # https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html - # Only install if it exists due to the twisted behavior (see - # notes in src_configure above). - [[ -e gdbserver/gdbreplay ]] && dobin gdbserver/gdbreplay - - docinto gdb - dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ - gdb/NEWS gdb/PROBLEMS - docinto sim - dodoc sim/{MAINTAINERS,README-HACKING} - - if use server ; then - docinto gdbserver - dodoc gdbserver/README - fi - - # Remove shared info pages - rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,ctf-spec,standards}.info* - - use guile && guile_unstrip_ccache - - if use python ; then - python_optimize "${ED}"/usr/share/gdb/python/gdb - fi -} - -pkg_postinst() { - # Portage doesn't unmerge files in /etc - rm -vf "${EROOT}"/etc/skel/.gdbinit - - if use prefix && [[ ${CHOST} == *-darwin* ]] ; then - ewarn "gdb is unable to get a mach task port when installed by Prefix" - ewarn "Portage, unprivileged. To make gdb fully functional you'll" - ewarn "have to perform the following steps:" - ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" - ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" - fi -} diff --git a/dev-debug/gdb/gdb-17.1.ebuild b/dev-debug/gdb/gdb-17.1.ebuild deleted file mode 100644 index e634b4f5812e..000000000000 --- a/dev-debug/gdb/gdb-17.1.ebuild +++ /dev/null @@ -1,354 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# See https://sourceware.org/gdb/wiki/DistroAdvice for general packaging -# tips & notes. - -GUILE_COMPAT=( 2-2 3-0 ) -PYTHON_COMPAT=( python3_{13..14} ) -inherit flag-o-matic guile-single linux-info python-single-r1 strip-linguas toolchain-funcs - -export CTARGET=${CTARGET:-${CHOST}} - -if [[ ${CTARGET} == ${CHOST} ]] ; then - if [[ ${CATEGORY} == cross-* ]] ; then - export CTARGET=${CATEGORY#cross-} - fi -fi - -is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } - -case ${PV} in - 9999*) - # live git tree - EGIT_REPO_URI=" - https://sourceware.org/git/binutils-gdb.git - https://git.sr.ht/~sourceware/binutils-gdb - https://gitlab.com/x86-binutils/binutils-gdb.git - " - inherit git-r3 - SRC_URI="" - ;; - *.*.50_p2???????|*.*.90_p2???????) - # Weekly snapshots - MY_PV="${PV/_p/.}" - SRC_URI=" - https://sourceware.org/pub/gdb/snapshots/branch/gdb-weekly-${MY_PV}.tar.xz - https://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${MY_PV}.tar.xz - https://distfiles.gentoo.org/pub/proj/toolchain/gdb/snapshots/gdb-weekly-${MY_PV}.tar.xz - " - S="${WORKDIR}/${PN}-${MY_PV}" - - # e.g. 13.1.90_p20230325 is a snapshot on the stable branch, so it's fine - if [[ ${PV} == *.[123456789].9?_p2??????? ]] ; then - REGULAR_RELEASE=1 - fi - ;; - *.*.9?) - # Prereleases - MY_PV="${PV/_p/.}" - SRC_URI=" - https://sourceware.org/pub/gdb/snapshots/branch/gdb-${MY_PV}.tar.xz - https://distfiles.gentoo.org/pub/proj/toolchain/gdb/snapshots/gdb-${MY_PV}.tar.xz - " - S="${WORKDIR}/${PN}-${MY_PV}" - ;; - *) - # Normal upstream release - SRC_URI=" - mirror://gnu/gdb/${P}.tar.xz - https://sourceware.org/pub/gdb/releases/${P}.tar.xz - " - - REGULAR_RELEASE=1 -esac - -PATCH_DEV="" -PATCH_VER="" -DESCRIPTION="GNU debugger" -HOMEPAGE="https://sourceware.org/gdb/" -SRC_URI=" - ${SRC_URI} - ${PATCH_DEV:+https://distfiles.gentoo.org/pub/proj/toolchain/gdb/patches/${P}-patches-${PATCH_VER}.tar.xz} -" - -LICENSE="GPL-3+ LGPL-2.1+" -SLOT="0" -IUSE="babeltrace cet +debuginfod guile lzma multitarget nls +python rocm +server sim source-highlight test vanilla +xml xxhash zstd" -if [[ -n ${REGULAR_RELEASE} ]] ; then - KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos ~x64-solaris" -fi -REQUIRED_USE=" - guile? ( ${GUILE_REQUIRED_USE} ) - python? ( ${PYTHON_REQUIRED_USE} ) - rocm? ( multitarget ) -" -RESTRICT="!test? ( test )" - -# <babeltrace-2: bug #951652 -RDEPEND=" - dev-libs/mpfr:= - dev-libs/gmp:= - >=sys-libs/ncurses-5.2-r2:= - >=sys-libs/readline-7:= - virtual/zlib:= - babeltrace? ( dev-util/babeltrace:0/1 ) - debuginfod? ( - dev-libs/elfutils[debuginfod(-)] - ) - lzma? ( app-arch/xz-utils ) - python? ( ${PYTHON_DEPS} ) - guile? ( ${GUILE_DEPS} ) - xml? ( dev-libs/expat ) - rocm? ( >=dev-libs/rocdbgapi-6.3 ) - source-highlight? ( - dev-util/source-highlight - ) - xxhash? ( - dev-libs/xxhash - ) - zstd? ( app-arch/zstd:= ) -" -DEPEND="${RDEPEND}" -BDEPEND=" - app-arch/xz-utils - sys-apps/texinfo - app-alternatives/yacc - nls? ( sys-devel/gettext ) - source-highlight? ( virtual/pkgconfig ) - test? ( dev-util/dejagnu ) -" - -QA_CONFIG_IMPL_DECL_SKIP=( - MIN # gnulib FP (bug #898688) -) - -QA_PREBUILT="usr/share/gdb/guile/*" - -PATCHES=( - "${FILESDIR}"/${PN}-8.3.1-verbose-build.patch -) - -pkg_setup() { - local CONFIG_CHECK - - if [[ ${CHOST} == *-linux-* ]] ; then - if kernel_is -ge 6.11.3 ; then - # https://forums.gentoo.org/viewtopic-p-8846891.html - # See also PR31520. - # - # Either CONFIG_PROC_MEM_ALWAYS_FORCE or CONFIG_PROC_MEM_FORCE_PTRACE - # should be okay, but not CONFIG_PROC_MEM_NO_FORCE. - CONFIG_CHECK+=" - ~!PROC_MEM_NO_FORCE - " - fi - fi - - linux-info_pkg_setup - - use guile && guile-single_pkg_setup - use python && python-single-r1_pkg_setup -} - -src_prepare() { - default - - use guile && guile_bump_sources - - strip-linguas -u bfd/po opcodes/po - - # Avoid using ancient termcap from host on Prefix systems - sed -i -e 's/termcap tinfow/tinfow/g' \ - gdb/configure{.ac,} || die -} - -gdb_branding() { - printf "Gentoo ${PV} " - - if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then - printf "p${PATCH_VER}" - else - printf "vanilla" - fi - - [[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}" -} - -src_configure() { - strip-unsupported-flags - - # See https://www.gnu.org/software/make/manual/html_node/Parallel-Output.html - # Avoid really confusing logs from subconfigure spam, makes logs far - # more legible. - MAKEOPTS="--output-sync=line ${MAKEOPTS}" - - local myconf=( - # portage's econf() does not detect presence of --d-d-t - # because it greps only top-level ./configure. But not - # libiberty's or gdb's configure. - --disable-dependency-tracking - --disable-silent-rules - - --with-pkgversion="$(gdb_branding)" - --with-bugurl='https://bugs.gentoo.org/' - --disable-werror - # Disable modules that are in a combined binutils/gdb tree. bug #490566 - --disable-{binutils,etc,gas,gold,gprof,gprofng,ld} - - $(use_with babeltrace) - $(use_with debuginfod) - - $(use_enable test unit-tests) - - # Allow user to opt into CET for host libraries. - # Ideally we would like automagic-or-disabled here. - # But the check does not quite work on i686: bug #760926. - $(use_enable cet) - - # Helps when cross-compiling. Not to be confused with --with-sysroot. - --with-build-sysroot="${ESYSROOT}" - ) - - is_cross && myconf+=( - --with-sysroot="\${prefix}/${CTARGET}" - --includedir="\${prefix}/include/${CTARGET}" - --with-gdb-datadir="\${datadir}/gdb/${CTARGET}" - ) - - # gdbserver only works for native targets (CHOST==CTARGET). - # it also doesn't support all targets, so rather than duplicate - # the target list (which changes between versions), use the - # "auto" value when things are turned on, which is triggered - # whenever no --enable or --disable is given - if is_cross || use !server ; then - myconf+=( --disable-gdbserver ) - fi - - myconf+=( - --enable-64-bit-bfd - --disable-install-libbfd - --disable-install-libiberty - --enable-obsolete - # This only disables building in the readline subdir. - # For gdb itself, it'll use the system version. - --disable-readline - --with-system-readline - # This only disables building in the zlib subdir. - # For gdb itself, it'll use the system version. - --without-zlib - --with-system-zlib - --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug - --with-amd-dbgapi=$(usex rocm) - $(use_with xml expat) - $(use_with lzma) - $(use_enable nls) - $(use_enable sim) - $(use_enable source-highlight) - $(use multitarget && echo --enable-targets=all) - $(use_with python python "${EPYTHON}") - $(use_with xxhash) - $(use_with guile) - $(use_with zstd) - - # Find libraries using the toolchain sysroot rather than the configured - # prefix. Needed when cross-compiling. - # - # Check which libraries to apply this to with: - # "${S}"/gdb/configure --help | grep without-lib | sort - --without-lib{babeltrace,expat,gmp,iconv,ipt,lzma,mpfr,xxhash}-prefix - ) - - # source-highlight is detected with pkg-config: bug #716558 - export ac_cv_path_pkg_config_prog_path="$(tc-getPKG_CONFIG)" - - export CC_FOR_BUILD="$(tc-getBUILD_CC)" - - # ensure proper compiler is detected for Clang builds: bug #831202 - export GCC_FOR_TARGET="${CC_FOR_TARGET:-$(tc-getCC)}" - - econf "${myconf[@]}" -} - -src_test() { - # Run the unittests (nabbed invocation from Fedora's spec file) at least - emake -k -C gdb run GDBFLAGS='-batch -ex "maintenance selftest"' - - # Too many failures - # In fact, gdb's test suite needs some work to get passing. - # See e.g. https://sourceware.org/gdb/wiki/TestingGDB. - # As of 11.2, on amd64: "# of unexpected failures 8600" - # Also, ia64 kernel crashes when gdb testsuite is running. - #emake -k check -} - -src_install() { - emake DESTDIR="${D}" install - - find "${ED}"/usr -name libiberty.a -delete || die - - # Delete translations that conflict with binutils-libs. bug #528088 - # Note: Should figure out how to store these in an internal gdb dir. - if use nls ; then - find "${ED}" \ - -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \ - -delete || die - fi - - # Don't install docs when building a cross-gdb - if [[ ${CTARGET} != ${CHOST} ]] ; then - rm -rf "${ED}"/usr/share/{doc,info,locale} || die - local f - for f in "${ED}"/usr/share/man/*/* ; do - if [[ ${f##*/} != ${CTARGET}-* ]] ; then - mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die - fi - done - return 0 - fi - - # Install it by hand for now: - # https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html - # Only install if it exists due to the twisted behavior (see - # notes in src_configure above). - [[ -e gdbserver/gdbreplay ]] && dobin gdbserver/gdbreplay - - docinto gdb - dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ - gdb/NEWS gdb/PROBLEMS - docinto sim - dodoc sim/{MAINTAINERS,README-HACKING} - - if use server ; then - docinto gdbserver - dodoc gdbserver/README - fi - - # Remove shared info pages - rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,ctf-spec,standards}.info* - - use guile && guile_unstrip_ccache - - if use python ; then - python_optimize "${ED}"/usr/share/gdb/python/gdb - fi - - if use kernel_Hurd ; then - mv "${ED}"/usr/bin/gcore "${ED}"/usr/bin/gcore.gdb || die - fi -} - -pkg_postinst() { - # Portage doesn't unmerge files in /etc - rm -vf "${EROOT}"/etc/skel/.gdbinit - - if use prefix && [[ ${CHOST} == *-darwin* ]] ; then - ewarn "gdb is unable to get a mach task port when installed by Prefix" - ewarn "Portage, unprivileged. To make gdb fully functional you'll" - ewarn "have to perform the following steps:" - ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" - ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" - fi -} diff --git a/dev-debug/gdb/gdb-17.2.ebuild b/dev-debug/gdb/gdb-17.2.ebuild deleted file mode 100644 index 74d14782e7fd..000000000000 --- a/dev-debug/gdb/gdb-17.2.ebuild +++ /dev/null @@ -1,354 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# See https://sourceware.org/gdb/wiki/DistroAdvice for general packaging -# tips & notes. - -GUILE_COMPAT=( 2-2 3-0 ) -PYTHON_COMPAT=( python3_{13..14} ) -inherit flag-o-matic guile-single linux-info python-single-r1 strip-linguas toolchain-funcs - -export CTARGET=${CTARGET:-${CHOST}} - -if [[ ${CTARGET} == ${CHOST} ]] ; then - if [[ ${CATEGORY} == cross-* ]] ; then - export CTARGET=${CATEGORY#cross-} - fi -fi - -is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } - -case ${PV} in - 9999*) - # live git tree - EGIT_REPO_URI=" - https://sourceware.org/git/binutils-gdb.git - https://git.sr.ht/~sourceware/binutils-gdb - https://gitlab.com/x86-binutils/binutils-gdb.git - " - inherit git-r3 - SRC_URI="" - ;; - *.*.50_p2???????|*.*.90_p2???????) - # Weekly snapshots - MY_PV="${PV/_p/.}" - SRC_URI=" - https://sourceware.org/pub/gdb/snapshots/branch/gdb-weekly-${MY_PV}.tar.xz - https://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${MY_PV}.tar.xz - https://distfiles.gentoo.org/pub/proj/toolchain/gdb/snapshots/gdb-weekly-${MY_PV}.tar.xz - " - S="${WORKDIR}/${PN}-${MY_PV}" - - # e.g. 13.1.90_p20230325 is a snapshot on the stable branch, so it's fine - if [[ ${PV} == *.[123456789].9?_p2??????? ]] ; then - REGULAR_RELEASE=1 - fi - ;; - *.*.9?) - # Prereleases - MY_PV="${PV/_p/.}" - SRC_URI=" - https://sourceware.org/pub/gdb/snapshots/branch/gdb-${MY_PV}.tar.xz - https://distfiles.gentoo.org/pub/proj/toolchain/gdb/snapshots/gdb-${MY_PV}.tar.xz - " - S="${WORKDIR}/${PN}-${MY_PV}" - ;; - *) - # Normal upstream release - SRC_URI=" - mirror://gnu/gdb/${P}.tar.xz - https://sourceware.org/pub/gdb/releases/${P}.tar.xz - " - - REGULAR_RELEASE=1 -esac - -PATCH_DEV="" -PATCH_VER="" -DESCRIPTION="GNU debugger" -HOMEPAGE="https://sourceware.org/gdb/" -SRC_URI=" - ${SRC_URI} - ${PATCH_DEV:+https://distfiles.gentoo.org/pub/proj/toolchain/gdb/patches/${P}-patches-${PATCH_VER}.tar.xz} -" - -LICENSE="GPL-3+ LGPL-2.1+" -SLOT="0" -IUSE="babeltrace cet +debuginfod guile lzma multitarget nls +python rocm +server sim source-highlight test vanilla +xml xxhash zstd" -if [[ -n ${REGULAR_RELEASE} ]] ; then - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos ~x64-solaris" -fi -REQUIRED_USE=" - guile? ( ${GUILE_REQUIRED_USE} ) - python? ( ${PYTHON_REQUIRED_USE} ) - rocm? ( multitarget ) -" -RESTRICT="!test? ( test )" - -# <babeltrace-2: bug #951652 -RDEPEND=" - dev-libs/mpfr:= - dev-libs/gmp:= - >=sys-libs/ncurses-5.2-r2:= - >=sys-libs/readline-7:= - virtual/zlib:= - babeltrace? ( dev-util/babeltrace:0/1 ) - debuginfod? ( - dev-libs/elfutils[debuginfod(-)] - ) - lzma? ( app-arch/xz-utils ) - python? ( ${PYTHON_DEPS} ) - guile? ( ${GUILE_DEPS} ) - xml? ( dev-libs/expat ) - rocm? ( >=dev-libs/rocdbgapi-6.3 ) - source-highlight? ( - dev-util/source-highlight - ) - xxhash? ( - dev-libs/xxhash - ) - zstd? ( app-arch/zstd:= ) -" -DEPEND="${RDEPEND}" -BDEPEND=" - app-arch/xz-utils - sys-apps/texinfo - app-alternatives/yacc - nls? ( sys-devel/gettext ) - source-highlight? ( virtual/pkgconfig ) - test? ( dev-util/dejagnu ) -" - -QA_CONFIG_IMPL_DECL_SKIP=( - MIN # gnulib FP (bug #898688) -) - -QA_PREBUILT="usr/share/gdb/guile/*" - -PATCHES=( - "${FILESDIR}"/${PN}-8.3.1-verbose-build.patch -) - -pkg_setup() { - local CONFIG_CHECK - - if [[ ${CHOST} == *-linux-* ]] ; then - if kernel_is -ge 6.11.3 ; then - # https://forums.gentoo.org/viewtopic-p-8846891.html - # See also PR31520. - # - # Either CONFIG_PROC_MEM_ALWAYS_FORCE or CONFIG_PROC_MEM_FORCE_PTRACE - # should be okay, but not CONFIG_PROC_MEM_NO_FORCE. - CONFIG_CHECK+=" - ~!PROC_MEM_NO_FORCE - " - fi - fi - - linux-info_pkg_setup - - use guile && guile-single_pkg_setup - use python && python-single-r1_pkg_setup -} - -src_prepare() { - default - - use guile && guile_bump_sources - - strip-linguas -u bfd/po opcodes/po - - # Avoid using ancient termcap from host on Prefix systems - sed -i -e 's/termcap tinfow/tinfow/g' \ - gdb/configure{.ac,} || die -} - -gdb_branding() { - printf "Gentoo ${PV} " - - if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then - printf "p${PATCH_VER}" - else - printf "vanilla" - fi - - [[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}" -} - -src_configure() { - strip-unsupported-flags - - # See https://www.gnu.org/software/make/manual/html_node/Parallel-Output.html - # Avoid really confusing logs from subconfigure spam, makes logs far - # more legible. - MAKEOPTS="--output-sync=line ${MAKEOPTS}" - - local myconf=( - # portage's econf() does not detect presence of --d-d-t - # because it greps only top-level ./configure. But not - # libiberty's or gdb's configure. - --disable-dependency-tracking - --disable-silent-rules - - --with-pkgversion="$(gdb_branding)" - --with-bugurl='https://bugs.gentoo.org/' - --disable-werror - # Disable modules that are in a combined binutils/gdb tree. bug #490566 - --disable-{binutils,etc,gas,gold,gprof,gprofng,ld} - - $(use_with babeltrace) - $(use_with debuginfod) - - $(use_enable test unit-tests) - - # Allow user to opt into CET for host libraries. - # Ideally we would like automagic-or-disabled here. - # But the check does not quite work on i686: bug #760926. - $(use_enable cet) - - # Helps when cross-compiling. Not to be confused with --with-sysroot. - --with-build-sysroot="${ESYSROOT}" - ) - - is_cross && myconf+=( - --with-sysroot="\${prefix}/${CTARGET}" - --includedir="\${prefix}/include/${CTARGET}" - --with-gdb-datadir="\${datadir}/gdb/${CTARGET}" - ) - - # gdbserver only works for native targets (CHOST==CTARGET). - # it also doesn't support all targets, so rather than duplicate - # the target list (which changes between versions), use the - # "auto" value when things are turned on, which is triggered - # whenever no --enable or --disable is given - if is_cross || use !server ; then - myconf+=( --disable-gdbserver ) - fi - - myconf+=( - --enable-64-bit-bfd - --disable-install-libbfd - --disable-install-libiberty - --enable-obsolete - # This only disables building in the readline subdir. - # For gdb itself, it'll use the system version. - --disable-readline - --with-system-readline - # This only disables building in the zlib subdir. - # For gdb itself, it'll use the system version. - --without-zlib - --with-system-zlib - --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug - --with-amd-dbgapi=$(usex rocm) - $(use_with xml expat) - $(use_with lzma) - $(use_enable nls) - $(use_enable sim) - $(use_enable source-highlight) - $(use multitarget && echo --enable-targets=all) - $(use_with python python "${EPYTHON}") - $(use_with xxhash) - $(use_with guile) - $(use_with zstd) - - # Find libraries using the toolchain sysroot rather than the configured - # prefix. Needed when cross-compiling. - # - # Check which libraries to apply this to with: - # "${S}"/gdb/configure --help | grep without-lib | sort - --without-lib{babeltrace,expat,gmp,iconv,ipt,lzma,mpfr,xxhash}-prefix - ) - - # source-highlight is detected with pkg-config: bug #716558 - export ac_cv_path_pkg_config_prog_path="$(tc-getPKG_CONFIG)" - - export CC_FOR_BUILD="$(tc-getBUILD_CC)" - - # ensure proper compiler is detected for Clang builds: bug #831202 - export GCC_FOR_TARGET="${CC_FOR_TARGET:-$(tc-getCC)}" - - econf "${myconf[@]}" -} - -src_test() { - # Run the unittests (nabbed invocation from Fedora's spec file) at least - emake -k -C gdb run GDBFLAGS='-batch -ex "maintenance selftest"' - - # Too many failures - # In fact, gdb's test suite needs some work to get passing. - # See e.g. https://sourceware.org/gdb/wiki/TestingGDB. - # As of 11.2, on amd64: "# of unexpected failures 8600" - # Also, ia64 kernel crashes when gdb testsuite is running. - #emake -k check -} - -src_install() { - emake DESTDIR="${D}" install - - find "${ED}"/usr -name libiberty.a -delete || die - - # Delete translations that conflict with binutils-libs. bug #528088 - # Note: Should figure out how to store these in an internal gdb dir. - if use nls ; then - find "${ED}" \ - -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \ - -delete || die - fi - - # Don't install docs when building a cross-gdb - if [[ ${CTARGET} != ${CHOST} ]] ; then - rm -rf "${ED}"/usr/share/{doc,info,locale} || die - local f - for f in "${ED}"/usr/share/man/*/* ; do - if [[ ${f##*/} != ${CTARGET}-* ]] ; then - mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die - fi - done - return 0 - fi - - # Install it by hand for now: - # https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html - # Only install if it exists due to the twisted behavior (see - # notes in src_configure above). - [[ -e gdbserver/gdbreplay ]] && dobin gdbserver/gdbreplay - - docinto gdb - dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ - gdb/NEWS gdb/PROBLEMS - docinto sim - dodoc sim/{MAINTAINERS,README-HACKING} - - if use server ; then - docinto gdbserver - dodoc gdbserver/README - fi - - # Remove shared info pages - rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,ctf-spec,standards}.info* - - use guile && guile_unstrip_ccache - - if use python ; then - python_optimize "${ED}"/usr/share/gdb/python/gdb - fi - - if use kernel_Hurd ; then - mv "${ED}"/usr/bin/gcore "${ED}"/usr/bin/gcore.gdb || die - fi -} - -pkg_postinst() { - # Portage doesn't unmerge files in /etc - rm -vf "${EROOT}"/etc/skel/.gdbinit - - if use prefix && [[ ${CHOST} == *-darwin* ]] ; then - ewarn "gdb is unable to get a mach task port when installed by Prefix" - ewarn "Portage, unprivileged. To make gdb fully functional you'll" - ewarn "have to perform the following steps:" - ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" - ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" - fi -} diff --git a/dev-debug/gdb/gdb-9999.ebuild b/dev-debug/gdb/gdb-9999.ebuild deleted file mode 100644 index e584bcc141c6..000000000000 --- a/dev-debug/gdb/gdb-9999.ebuild +++ /dev/null @@ -1,351 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# See https://sourceware.org/gdb/wiki/DistroAdvice for general packaging -# tips & notes. - -GUILE_COMPAT=( 2-2 3-0 ) -PYTHON_COMPAT=( python3_{13..14} ) -inherit flag-o-matic guile-single linux-info python-single-r1 strip-linguas toolchain-funcs - -export CTARGET=${CTARGET:-${CHOST}} - -if [[ ${CTARGET} == ${CHOST} ]] ; then - if [[ ${CATEGORY} == cross-* ]] ; then - export CTARGET=${CATEGORY#cross-} - fi -fi - -is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } - -case ${PV} in - 9999*) - # live git tree - EGIT_REPO_URI=" - https://sourceware.org/git/binutils-gdb.git - https://git.sr.ht/~sourceware/binutils-gdb - https://gitlab.com/x86-binutils/binutils-gdb.git - " - inherit git-r3 - SRC_URI="" - ;; - *.*.50_p2???????|*.*.90_p2???????) - # Weekly snapshots - MY_PV="${PV/_p/.}" - SRC_URI=" - https://sourceware.org/pub/gdb/snapshots/branch/gdb-weekly-${MY_PV}.tar.xz - https://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${MY_PV}.tar.xz - https://distfiles.gentoo.org/pub/proj/toolchain/gdb/snapshots/gdb-weekly-${MY_PV}.tar.xz - " - S="${WORKDIR}/${PN}-${MY_PV}" - - # e.g. 13.1.90_p20230325 is a snapshot on the stable branch, so it's fine - if [[ ${PV} == *.[123456789].9?_p2??????? ]] ; then - REGULAR_RELEASE=1 - fi - ;; - *.*.9?) - # Prereleases - MY_PV="${PV/_p/.}" - SRC_URI=" - https://sourceware.org/pub/gdb/snapshots/branch/gdb-${MY_PV}.tar.xz - https://distfiles.gentoo.org/pub/proj/toolchain/gdb/snapshots/gdb-${MY_PV}.tar.xz - " - S="${WORKDIR}/${PN}-${MY_PV}" - ;; - *) - # Normal upstream release - SRC_URI=" - mirror://gnu/gdb/${P}.tar.xz - https://sourceware.org/pub/gdb/releases/${P}.tar.xz - " - - REGULAR_RELEASE=1 -esac - -PATCH_DEV="" -PATCH_VER="" -DESCRIPTION="GNU debugger" -HOMEPAGE="https://sourceware.org/gdb/" -SRC_URI=" - ${SRC_URI} - ${PATCH_DEV:+https://distfiles.gentoo.org/pub/proj/toolchain/gdb/patches/${P}-patches-${PATCH_VER}.tar.xz} -" - -LICENSE="GPL-3+ LGPL-2.1+" -SLOT="0" -IUSE="cet +debuginfod guile lzma multitarget nls +python rocm +server sim source-highlight test vanilla +xml xxhash zstd" -if [[ -n ${REGULAR_RELEASE} ]] ; then - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos ~x64-solaris" -fi -REQUIRED_USE=" - guile? ( ${GUILE_REQUIRED_USE} ) - python? ( ${PYTHON_REQUIRED_USE} ) - rocm? ( multitarget ) -" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-libs/mpfr:= - dev-libs/gmp:= - >=sys-libs/ncurses-5.2-r2:= - >=sys-libs/readline-7:= - virtual/zlib:= - debuginfod? ( - dev-libs/elfutils[debuginfod(-)] - ) - lzma? ( app-arch/xz-utils ) - python? ( ${PYTHON_DEPS} ) - guile? ( ${GUILE_DEPS} ) - xml? ( dev-libs/expat ) - rocm? ( >=dev-libs/rocdbgapi-6.3 ) - source-highlight? ( - dev-util/source-highlight - ) - xxhash? ( - dev-libs/xxhash - ) - zstd? ( app-arch/zstd:= ) -" -DEPEND="${RDEPEND}" -BDEPEND=" - app-arch/xz-utils - sys-apps/texinfo - app-alternatives/yacc - nls? ( sys-devel/gettext ) - source-highlight? ( virtual/pkgconfig ) - test? ( dev-util/dejagnu ) -" - -QA_CONFIG_IMPL_DECL_SKIP=( - MIN # gnulib FP (bug #898688) -) - -QA_PREBUILT="usr/share/gdb/guile/*" - -PATCHES=( - "${FILESDIR}"/${PN}-8.3.1-verbose-build.patch -) - -pkg_setup() { - local CONFIG_CHECK - - if [[ ${CHOST} == *-linux-* ]] ; then - if kernel_is -ge 6.11.3 ; then - # https://forums.gentoo.org/viewtopic-p-8846891.html - # See also PR31520. - # - # Either CONFIG_PROC_MEM_ALWAYS_FORCE or CONFIG_PROC_MEM_FORCE_PTRACE - # should be okay, but not CONFIG_PROC_MEM_NO_FORCE. - CONFIG_CHECK+=" - ~!PROC_MEM_NO_FORCE - " - fi - fi - - linux-info_pkg_setup - - use guile && guile-single_pkg_setup - use python && python-single-r1_pkg_setup -} - -src_prepare() { - default - - use guile && guile_bump_sources - - strip-linguas -u bfd/po opcodes/po - - # Avoid using ancient termcap from host on Prefix systems - sed -i -e 's/termcap tinfow/tinfow/g' \ - gdb/configure{.ac,} || die -} - -gdb_branding() { - printf "Gentoo ${PV} " - - if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then - printf "p${PATCH_VER}" - else - printf "vanilla" - fi - - [[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}" -} - -src_configure() { - strip-unsupported-flags - - # See https://www.gnu.org/software/make/manual/html_node/Parallel-Output.html - # Avoid really confusing logs from subconfigure spam, makes logs far - # more legible. - MAKEOPTS="--output-sync=line ${MAKEOPTS}" - - local myconf=( - # portage's econf() does not detect presence of --d-d-t - # because it greps only top-level ./configure. But not - # libiberty's or gdb's configure. - --disable-dependency-tracking - --disable-silent-rules - - --with-pkgversion="$(gdb_branding)" - --with-bugurl='https://bugs.gentoo.org/' - --disable-werror - # Disable modules that are in a combined binutils/gdb tree. bug #490566 - --disable-{binutils,etc,gas,gold,gprof,gprofng,ld} - - $(use_with debuginfod) - - $(use_enable test unit-tests) - - # Allow user to opt into CET for host libraries. - # Ideally we would like automagic-or-disabled here. - # But the check does not quite work on i686: bug #760926. - $(use_enable cet) - - # Helps when cross-compiling. Not to be confused with --with-sysroot. - --with-build-sysroot="${ESYSROOT}" - ) - - is_cross && myconf+=( - --with-sysroot="\${prefix}/${CTARGET}" - --includedir="\${prefix}/include/${CTARGET}" - --with-gdb-datadir="\${datadir}/gdb/${CTARGET}" - ) - - # gdbserver only works for native targets (CHOST==CTARGET). - # it also doesn't support all targets, so rather than duplicate - # the target list (which changes between versions), use the - # "auto" value when things are turned on, which is triggered - # whenever no --enable or --disable is given - if is_cross || use !server ; then - myconf+=( --disable-gdbserver ) - fi - - myconf+=( - --enable-64-bit-bfd - --disable-install-libbfd - --disable-install-libiberty - --enable-obsolete - # This only disables building in the readline subdir. - # For gdb itself, it'll use the system version. - --disable-readline - --with-system-readline - # This only disables building in the zlib subdir. - # For gdb itself, it'll use the system version. - --without-zlib - --with-system-zlib - --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug - --with-amd-dbgapi=$(usex rocm) - $(use_with xml expat) - $(use_with lzma) - $(use_enable nls) - $(use_enable sim) - $(use_enable source-highlight) - $(use multitarget && echo --enable-targets=all) - $(use_with python python "${EPYTHON}") - $(use_with xxhash) - $(use_with guile) - $(use_with zstd) - - # Find libraries using the toolchain sysroot rather than the configured - # prefix. Needed when cross-compiling. - # - # Check which libraries to apply this to with: - # "${S}"/gdb/configure --help | grep without-lib | sort - --without-lib{expat,gmp,iconv,ipt,lzma,mpfr,xxhash}-prefix - ) - - # source-highlight is detected with pkg-config: bug #716558 - export ac_cv_path_pkg_config_prog_path="$(tc-getPKG_CONFIG)" - - export CC_FOR_BUILD="$(tc-getBUILD_CC)" - - # ensure proper compiler is detected for Clang builds: bug #831202 - export GCC_FOR_TARGET="${CC_FOR_TARGET:-$(tc-getCC)}" - - econf "${myconf[@]}" -} - -src_test() { - # Run the unittests (nabbed invocation from Fedora's spec file) at least - emake -k -C gdb run GDBFLAGS='-batch -ex "maintenance selftest"' - - # Too many failures - # In fact, gdb's test suite needs some work to get passing. - # See e.g. https://sourceware.org/gdb/wiki/TestingGDB. - # As of 11.2, on amd64: "# of unexpected failures 8600" - # Also, ia64 kernel crashes when gdb testsuite is running. - #emake -k check -} - -src_install() { - emake DESTDIR="${D}" install - - find "${ED}"/usr -name libiberty.a -delete || die - - # Delete translations that conflict with binutils-libs. bug #528088 - # Note: Should figure out how to store these in an internal gdb dir. - if use nls ; then - find "${ED}" \ - -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \ - -delete || die - fi - - # Don't install docs when building a cross-gdb - if [[ ${CTARGET} != ${CHOST} ]] ; then - rm -rf "${ED}"/usr/share/{doc,info,locale} || die - local f - for f in "${ED}"/usr/share/man/*/* ; do - if [[ ${f##*/} != ${CTARGET}-* ]] ; then - mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die - fi - done - return 0 - fi - - # Install it by hand for now: - # https://sourceware.org/ml/gdb-patches/2011-12/msg00915.html - # Only install if it exists due to the twisted behavior (see - # notes in src_configure above). - [[ -e gdbserver/gdbreplay ]] && dobin gdbserver/gdbreplay - - docinto gdb - dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ - gdb/NEWS gdb/PROBLEMS - docinto sim - dodoc sim/{MAINTAINERS,README-HACKING} - - if use server ; then - docinto gdbserver - dodoc gdbserver/README - fi - - # Remove shared info pages - rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,ctf-spec,standards}.info* - - use guile && guile_unstrip_ccache - - if use python ; then - python_optimize "${ED}"/usr/share/gdb/python/gdb - fi - - if use kernel_Hurd ; then - mv "${ED}"/usr/bin/gcore "${ED}"/usr/bin/gcore.gdb || die - fi -} - -pkg_postinst() { - # Portage doesn't unmerge files in /etc - rm -vf "${EROOT}"/etc/skel/.gdbinit - - if use prefix && [[ ${CHOST} == *-darwin* ]] ; then - ewarn "gdb is unable to get a mach task port when installed by Prefix" - ewarn "Portage, unprivileged. To make gdb fully functional you'll" - ewarn "have to perform the following steps:" - ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" - ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" - fi -} diff --git a/dev-debug/gdb/metadata.xml b/dev-debug/gdb/metadata.xml deleted file mode 100644 index e9a6045cd6b0..000000000000 --- a/dev-debug/gdb/metadata.xml +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>toolchain@gentoo.org</email> - <name>Gentoo Toolchain Project</name> - </maintainer> - <use> - <flag name="babeltrace">Enable <pkg>dev-util/babeltrace</pkg> support</flag> - <flag name="cet">Enable Intel Control-flow Enforcement Technology.</flag> - <flag name="lzma">Support lzma compression in ELF debug info</flag> - <flag name="multitarget">Support all known targets in one gdb binary</flag> - <flag name="python">Enable support for the new internal scripting language, as well as extended pretty printers</flag> - <flag name="rocm">Enable support for AMD GPU debugging via <pkg>dev-libs/rocdbgapi</pkg> - </flag> - <flag name="server">Install the "gdbserver" program (useful for embedded/remote targets)</flag> - <flag name="sim">Build gdb's simulators for various hardware platforms. See https://sourceware.org/gdb/wiki/Sim.</flag> - <flag name="source-highlight">Enable listing highlighting via <pkg>dev-util/source-highlight</pkg> - </flag> - <flag name="xml">Support parsing XML data files needed (at least) for cpu features, memory maps, and syscall tracing</flag> - <flag name="xxhash">Use <pkg>dev-libs/xxhash</pkg> to speed up internal hashing.</flag> - <flag name="debuginfod">Enable debuginfod support via <pkg>dev-libs/elfutils</pkg> libdebuginfod</flag> - </use> - <upstream> - <remote-id type="cpe">cpe:/a:gnu:gdb</remote-id> - </upstream> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/dev-debug/gef/Manifest b/dev-debug/gef/Manifest deleted file mode 100644 index 5437980b1ac4..000000000000 --- a/dev-debug/gef/Manifest +++ /dev/null @@ -1,3 +0,0 @@ -DIST gef-2023.08.tar.gz 230347 BLAKE2B b9b8fed1bdf81fa870583921c4bdd6df2d98112748c939da48acae7e636ec6e22dc751d8ed75e52e72ff0aa04835720293f0e82e99ff614c447f2a614c76e48a SHA512 d3a26826b991db7e8d475da945b16933ce046dd64381f5df60ea0fe310d0325f39b05142de5f75abbbd5693c93ad70ff25e982d0ff3526a6fe66fd7526a359c5 -DIST gef-2025.01.tar.gz 246677 BLAKE2B a607d882ed62efa4da7a60d594852a9bc2f6d6583bd7049fd6db616e71fcfb1caf9a7fd9be261b604257740974cbd1ce7ce1b11c061006a22e85dac57e7011db SHA512 0a028c0457b6b35a78ab4e8030010d586bb38bf8968ff1b4bf67d7f0bacedb78f3627699674f50217154f9254fac0ec5d65922845af3da0f72fed7b9bfc2ad8d -DIST gef-2026.01.tar.gz 247419 BLAKE2B 5dffee69689aaa988dc35e56809f1a7775e872f12c20d047de9ee4f5b5bf1146c567549080e65cf98ae7310a1735263fdf525fd930099f694dc57f001c3660d0 SHA512 20e1bd398b1bc0345a7a637fe058a0aaee9f4c2b5a65ce67f3774d9fcf4a5c865f43fbe1ff9cb2d5e04091d025dded43e08f88b5333211084616955a3fc5eac6 diff --git a/dev-debug/gef/gef-2023.08.ebuild b/dev-debug/gef/gef-2023.08.ebuild deleted file mode 100644 index f1e8b847ea11..000000000000 --- a/dev-debug/gef/gef-2023.08.ebuild +++ /dev/null @@ -1,82 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{13..14} ) - -DOCS_BUILDER="mkdocs" -DOCS_DEPEND=" - dev-python/mkdocs-material -" - -inherit python-single-r1 docs wrapper - -DESCRIPTION="GDB Enhanced Features for exploit devs & reversers" -HOMEPAGE="https://github.com/hugsy/gef" - -if [[ ${PV} == 9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/hugsy/gef" -else - SRC_URI="https://github.com/hugsy/gef/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86" -fi - -LICENSE="MIT" -SLOT="0" -IUSE="test" -# Seem to hang right now? -RESTRICT="!test? ( test ) test" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -RDEPEND=" - ${PYTHON_DEPS} - dev-debug/gdb[python,${PYTHON_SINGLE_USEDEP}] - dev-util/ropper[${PYTHON_SINGLE_USEDEP}] - $(python_gen_cond_dep ' - dev-libs/capstone[python,${PYTHON_USEDEP}] - dev-libs/keystone[python,${PYTHON_USEDEP}] - dev-python/pylint[${PYTHON_USEDEP}] - dev-util/unicorn[python,${PYTHON_USEDEP}] - ')" - -BDEPEND=" - test? ( - $(python_gen_cond_dep ' - dev-python/pytest[${PYTHON_USEDEP}] - dev-python/pytest-xdist[${PYTHON_USEDEP}] - ') - )" - -DOCS=( README.md ) - -src_prepare() { - default - - sed -i -e '/pylint/d' tests/requirements.txt || die -} - -src_compile() { - # Tries to compile tests - : - - docs_compile -} - -src_install() { - insinto "/usr/share/${PN}" - doins -r *.py - - python_optimize "${ED}/usr/share/${PN}" - - make_wrapper "gdb-gef" \ - "gdb -x \"/usr/share/${PN}/gef.py\"" || die - - einstalldocs -} - -pkg_postinst() { - einfo "\nUsage:" - einfo " ~$ gdb-gef <program>\n" -} diff --git a/dev-debug/gef/gef-2025.01.ebuild b/dev-debug/gef/gef-2025.01.ebuild deleted file mode 100644 index 0ad1e35635be..000000000000 --- a/dev-debug/gef/gef-2025.01.ebuild +++ /dev/null @@ -1,83 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{13..14} ) - -DOCS_BUILDER="mkdocs" -DOCS_DEPEND=" - dev-python/mkdocs-material -" - -inherit python-single-r1 docs wrapper - -DESCRIPTION="GDB Enhanced Features for exploit devs & reversers" -HOMEPAGE="https://github.com/hugsy/gef" - -if [[ ${PV} == 9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/hugsy/gef" -else - SRC_URI="https://github.com/hugsy/gef/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="amd64 ~arm64 x86" -fi - -LICENSE="MIT" -SLOT="0" -IUSE="test" -# Seem to hang right now? -RESTRICT="!test? ( test ) test" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -RDEPEND=" - ${PYTHON_DEPS} - dev-util/ropper[${PYTHON_SINGLE_USEDEP}] - dev-debug/gdb[python,${PYTHON_SINGLE_USEDEP}] - $(python_gen_cond_dep ' - dev-libs/capstone[python,${PYTHON_USEDEP}] - dev-libs/keystone[python,${PYTHON_USEDEP}] - dev-python/pylint[${PYTHON_USEDEP}] - dev-python/rpyc[${PYTHON_USEDEP}] - dev-util/unicorn[python,${PYTHON_USEDEP}] - ')" - -BDEPEND=" - test? ( - $(python_gen_cond_dep ' - dev-python/pytest[${PYTHON_USEDEP}] - dev-python/pytest-xdist[${PYTHON_USEDEP}] - ') - )" - -DOCS=( README.md ) - -src_prepare() { - default - - sed -i -e '/pylint/d' tests/requirements.txt || die -} - -src_compile() { - # Tries to compile tests - : - - docs_compile -} - -src_install() { - insinto "/usr/share/${PN}" - doins -r *.py - - python_optimize "${ED}/usr/share/${PN}" - - make_wrapper "gdb-gef" \ - "gdb -x \"/usr/share/${PN}/gef.py\"" || die - - einstalldocs -} - -pkg_postinst() { - einfo "\nUsage:" - einfo " ~$ gdb-gef <program>\n" -} diff --git a/dev-debug/gef/gef-2026.01.ebuild b/dev-debug/gef/gef-2026.01.ebuild deleted file mode 100644 index 3026e6c21870..000000000000 --- a/dev-debug/gef/gef-2026.01.ebuild +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{13..14} ) - -DOCS_BUILDER="mkdocs" -DOCS_DEPEND=" - dev-python/mkdocs-material -" - -inherit python-single-r1 docs wrapper - -DESCRIPTION="GDB Enhanced Features for exploit devs & reversers" -HOMEPAGE="https://github.com/hugsy/gef" - -if [[ ${PV} == 9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/hugsy/gef" -else - SRC_URI="https://github.com/hugsy/gef/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="amd64 ~arm64 x86" -fi - -LICENSE="MIT" -SLOT="0" -# Needs network access and possibly privileges -RESTRICT="test" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -RDEPEND=" - ${PYTHON_DEPS} - dev-util/ropper[${PYTHON_SINGLE_USEDEP}] - dev-debug/gdb[python,${PYTHON_SINGLE_USEDEP}] - $(python_gen_cond_dep ' - dev-libs/capstone[python,${PYTHON_USEDEP}] - dev-libs/keystone[python,${PYTHON_USEDEP}] - dev-python/pylint[${PYTHON_USEDEP}] - dev-python/rpyc[${PYTHON_USEDEP}] - dev-util/unicorn[python,${PYTHON_USEDEP}] - ') -" - -DOCS=( README.md ) - -src_prepare() { - default - - sed -i -e '/pylint/d' tests/requirements.txt || die -} - -src_compile() { - # Tries to compile tests - : - - docs_compile -} - -src_install() { - insinto "/usr/share/${PN}" - doins -r *.py - - python_optimize "${ED}/usr/share/${PN}" - - make_wrapper "gdb-gef" \ - "gdb -x \"/usr/share/${PN}/gef.py\"" || die - - einstalldocs -} - -pkg_postinst() { - einfo "\nUsage:" - einfo " ~$ gdb-gef <program>\n" -} diff --git a/dev-debug/gef/gef-9999.ebuild b/dev-debug/gef/gef-9999.ebuild deleted file mode 100644 index e6f8121a7c7a..000000000000 --- a/dev-debug/gef/gef-9999.ebuild +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{13..14} ) - -DOCS_BUILDER="mkdocs" -DOCS_DEPEND=" - dev-python/mkdocs-material -" - -inherit python-single-r1 docs wrapper - -DESCRIPTION="GDB Enhanced Features for exploit devs & reversers" -HOMEPAGE="https://github.com/hugsy/gef" - -if [[ ${PV} == 9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/hugsy/gef" -else - SRC_URI="https://github.com/hugsy/gef/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm64 ~x86" -fi - -LICENSE="MIT" -SLOT="0" -# Needs network access and possibly privileges -RESTRICT="test" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -RDEPEND=" - ${PYTHON_DEPS} - dev-util/ropper[${PYTHON_SINGLE_USEDEP}] - dev-debug/gdb[python,${PYTHON_SINGLE_USEDEP}] - $(python_gen_cond_dep ' - dev-libs/capstone[python,${PYTHON_USEDEP}] - dev-libs/keystone[python,${PYTHON_USEDEP}] - dev-python/pylint[${PYTHON_USEDEP}] - dev-python/rpyc[${PYTHON_USEDEP}] - dev-util/unicorn[python,${PYTHON_USEDEP}] - ') -" - -DOCS=( README.md ) - -src_prepare() { - default - - sed -i -e '/pylint/d' tests/requirements.txt || die -} - -src_compile() { - # Tries to compile tests - : - - docs_compile -} - -src_install() { - insinto "/usr/share/${PN}" - doins -r *.py - - python_optimize "${ED}/usr/share/${PN}" - - make_wrapper "gdb-gef" \ - "gdb -x \"/usr/share/${PN}/gef.py\"" || die - - einstalldocs -} - -pkg_postinst() { - einfo "\nUsage:" - einfo " ~$ gdb-gef <program>\n" -} diff --git a/dev-debug/gef/metadata.xml b/dev-debug/gef/metadata.xml deleted file mode 100644 index 99e980ca8334..000000000000 --- a/dev-debug/gef/metadata.xml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person" proxied="yes"> - <email>mario.haustein@hrz.tu-chemnitz.de</email> - <name>Mario Haustein</name> - </maintainer> - <maintainer type="person"> - <email>sam@gentoo.org</email> - <name>Sam James</name> - </maintainer> - <longdescription> - GEF is a set of commands for x86/64, ARM, MIPS, PowerPC and SPARC to - assist exploit developers and reverse-engineers when using old school - GDB. It provides additional features to GDB using the Python API to - assist during the process of dynamic analysis and exploit development. - Application developers will also benefit from it, as GEF lifts a great - part of regular GDB obscurity, avoiding repeating traditional commands, - or bringing out the relevant information from the debugging runtime. - </longdescription> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/dev-debug/gfxreconstruct/Manifest b/dev-debug/gfxreconstruct/Manifest deleted file mode 100644 index e990b269f393..000000000000 --- a/dev-debug/gfxreconstruct/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST SPIRV-Reflect-1.4.341.0.tar.gz 348384 BLAKE2B 1fc461f02a3e35b610cae0b2e41cfc8b0938a13d5c1fe62d2e3a53d3822cf7bc94d3d3a5cda3ba3707ecc9aa34415b351f1ac25f92922e63378a2822e766fb68 SHA512 ee8abc9958af8887300eece7dbcf11ed4bf79d9ee281318e6794f093a988438736e0da642d61b975912475cc3a0b13fe8cd17d3a6b0fcfff653c9831f5d86ba0 -DIST gfxreconstruct-1.4.341.0.tar.gz 50763927 BLAKE2B b532535012088bb043f1098886bd30ce1e3345515e217a77a05229f98b36678703ed9773169cf7cfa0f09f4694635c69532127df86649cd3e19daa2b6768ec4f SHA512 0efb51431b8ae40e723d06ff3ab6a2505094dc88104a0f2da42f4c1e301dbdd929398e7183a996b7b31854f45506ea636cec40f9fa883aafbe8d8b0b493716aa diff --git a/dev-debug/gfxreconstruct/files/1.3.313.0-use-system-vulkan.patch b/dev-debug/gfxreconstruct/files/1.3.313.0-use-system-vulkan.patch deleted file mode 100644 index 419ec4134ebe..000000000000 --- a/dev-debug/gfxreconstruct/files/1.3.313.0-use-system-vulkan.patch +++ /dev/null @@ -1,38 +0,0 @@ -From 900940f63432dac21b397150031355c7511032a4 Mon Sep 17 00:00:00 2001 -From: Matt Turner <mattst88@gmail.com> -Date: Thu, 15 May 2025 23:28:26 -0400 -Subject: [PATCH] Use system Vulkan Headers instead of embedded ones. - ---- - cmake/FindVulkanVersion.cmake | 8 ++------ - 1 file changed, 2 insertions(+), 6 deletions(-) - -diff --git ./cmake/FindVulkanVersion.cmake ./cmake/FindVulkanVersion.cmake -index 3821c2c8..f7744813 100644 ---- ./cmake/FindVulkanVersion.cmake -+++ ./cmake/FindVulkanVersion.cmake -@@ -13,9 +13,7 @@ set(FIND_VULKAN_DIR ${CMAKE_CURRENT_LIST_DIR}) - find_file (VULKAN_HEADER - vulkan_core.h - HINTS -- external/Vulkan-Headers/include/vulkan -- ${FIND_VULKAN_DIR}/../external/Vulkan-Headers/include/vulkan -- ${FIND_VULKAN_DIR}/../../external/Vulkan-Headers/include/vulkan -+ /usr/include/vulkan/ - NO_DEFAULT_PATH - NO_CMAKE_FIND_ROOT_PATH - ) -@@ -28,9 +26,7 @@ else() - find_file(VULKAN_HEADER - vulkan.h - HINTS -- external/Vulkan-Headers/include/vulkan -- ${FIND_VULKAN_DIR}/../external/Vulkan-Headers/include/vulkan -- ${FIND_VULKAN_DIR}/../../external/Vulkan-Headers/include/vulkan -+ /usr/include/vulkan/ - NO_DEFAULT_PATH - NO_CMAKE_FIND_ROOT_PATH - ) --- -2.49.0 - diff --git a/dev-debug/gfxreconstruct/gfxreconstruct-1.4.341.0.ebuild b/dev-debug/gfxreconstruct/gfxreconstruct-1.4.341.0.ebuild deleted file mode 100644 index 00f8000090bd..000000000000 --- a/dev-debug/gfxreconstruct/gfxreconstruct-1.4.341.0.ebuild +++ /dev/null @@ -1,76 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{13..14} ) -inherit cmake - -if [[ ${PV} == 9999* ]]; then - EGIT_REPO_URI="https://github.com/LunarG/gfxreconstruct.git" - EGIT_SUBMODULES=( external/{Vulkan-Headers,SPIRV-Headers,SPIRV-Reflect} ) - inherit git-r3 -else - SRC_URI=" - https://github.com/LunarG/${PN}/archive/vulkan-sdk-${PV}.tar.gz -> ${P}.tar.gz - https://github.com/KhronosGroup/SPIRV-Reflect/archive/vulkan-sdk-${PV}.tar.gz -> SPIRV-Reflect-${PV}.tar.gz - " - KEYWORDS="~amd64" - S="${WORKDIR}"/${PN}-vulkan-sdk-${PV} -fi - -DESCRIPTION="Graphics API Capture and Replay Tools" -HOMEPAGE="https://github.com/LunarG/gfxreconstruct" - -LICENSE="MIT" -SLOT="0" -IUSE="wayland X" - -RDEPEND=" - app-arch/lz4:= - app-arch/zstd:= - virtual/zlib:= - - media-libs/vulkan-loader[wayland?,X?] - wayland? ( dev-libs/wayland ) - X? ( - x11-libs/libX11 - x11-libs/libxcb - x11-libs/xcb-util-keysyms - ) -" -DEPEND="${RDEPEND} - X? ( x11-libs/libXrandr ) -" -if [[ ${PV} != 9999* ]]; then - DEPEND+=" - ~dev-util/spirv-headers-${PV} - ~dev-util/vulkan-headers-${PV} - " - PATCHES=( - "${FILESDIR}"/1.3.313.0-use-system-vulkan.patch - ) -fi - -src_unpack() { - if [[ ${PV} == 9999* ]]; then - git-r3_src_unpack - else - default - rmdir "${S}"/external/SPIRV-Reflect || die - mv "${WORKDIR}"/SPIRV-Reflect-vulkan-sdk-${PV} "${S}"/external/SPIRV-Reflect || die - fi -} - -src_configure() { - local mycmakeargs=( - -DCMAKE_SKIP_RPATH=ON - -DBUILD_WERROR=OFF - -DBUILD_WSI_DISPLAY_SUPPORT=ON - -DBUILD_WSI_WAYLAND_SUPPORT=$(usex wayland) - -DBUILD_WSI_XCB_SUPPORT=$(usex X) - -DBUILD_WSI_XLIB_SUPPORT=$(usex X) - -DGFXRECON_ENABLE_OPENXR=OFF - ) - cmake_src_configure -} diff --git a/dev-debug/gfxreconstruct/gfxreconstruct-9999.ebuild b/dev-debug/gfxreconstruct/gfxreconstruct-9999.ebuild deleted file mode 100644 index 00f8000090bd..000000000000 --- a/dev-debug/gfxreconstruct/gfxreconstruct-9999.ebuild +++ /dev/null @@ -1,76 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{13..14} ) -inherit cmake - -if [[ ${PV} == 9999* ]]; then - EGIT_REPO_URI="https://github.com/LunarG/gfxreconstruct.git" - EGIT_SUBMODULES=( external/{Vulkan-Headers,SPIRV-Headers,SPIRV-Reflect} ) - inherit git-r3 -else - SRC_URI=" - https://github.com/LunarG/${PN}/archive/vulkan-sdk-${PV}.tar.gz -> ${P}.tar.gz - https://github.com/KhronosGroup/SPIRV-Reflect/archive/vulkan-sdk-${PV}.tar.gz -> SPIRV-Reflect-${PV}.tar.gz - " - KEYWORDS="~amd64" - S="${WORKDIR}"/${PN}-vulkan-sdk-${PV} -fi - -DESCRIPTION="Graphics API Capture and Replay Tools" -HOMEPAGE="https://github.com/LunarG/gfxreconstruct" - -LICENSE="MIT" -SLOT="0" -IUSE="wayland X" - -RDEPEND=" - app-arch/lz4:= - app-arch/zstd:= - virtual/zlib:= - - media-libs/vulkan-loader[wayland?,X?] - wayland? ( dev-libs/wayland ) - X? ( - x11-libs/libX11 - x11-libs/libxcb - x11-libs/xcb-util-keysyms - ) -" -DEPEND="${RDEPEND} - X? ( x11-libs/libXrandr ) -" -if [[ ${PV} != 9999* ]]; then - DEPEND+=" - ~dev-util/spirv-headers-${PV} - ~dev-util/vulkan-headers-${PV} - " - PATCHES=( - "${FILESDIR}"/1.3.313.0-use-system-vulkan.patch - ) -fi - -src_unpack() { - if [[ ${PV} == 9999* ]]; then - git-r3_src_unpack - else - default - rmdir "${S}"/external/SPIRV-Reflect || die - mv "${WORKDIR}"/SPIRV-Reflect-vulkan-sdk-${PV} "${S}"/external/SPIRV-Reflect || die - fi -} - -src_configure() { - local mycmakeargs=( - -DCMAKE_SKIP_RPATH=ON - -DBUILD_WERROR=OFF - -DBUILD_WSI_DISPLAY_SUPPORT=ON - -DBUILD_WSI_WAYLAND_SUPPORT=$(usex wayland) - -DBUILD_WSI_XCB_SUPPORT=$(usex X) - -DBUILD_WSI_XLIB_SUPPORT=$(usex X) - -DGFXRECON_ENABLE_OPENXR=OFF - ) - cmake_src_configure -} diff --git a/dev-debug/gfxreconstruct/metadata.xml b/dev-debug/gfxreconstruct/metadata.xml deleted file mode 100644 index 811825f90a16..000000000000 --- a/dev-debug/gfxreconstruct/metadata.xml +++ /dev/null @@ -1,9 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>vulkan@gentoo.org</email> - <name>Vulkan Project</name> - </maintainer> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/dev-debug/gprofng-gui/Manifest b/dev-debug/gprofng-gui/Manifest deleted file mode 100644 index 831e13c32afe..000000000000 --- a/dev-debug/gprofng-gui/Manifest +++ /dev/null @@ -1,3 +0,0 @@ -DIST gprofng-gui-2.0.tar.gz 1297153 BLAKE2B 0a0c921a2ba1e81cdec3cba5fbe66ae8079fcce3f3fcad2ad792e2758ca218bd667dd9722d32e25027d9eb1b6ddb3897c94098db07f24915928347c4ff804b19 SHA512 2e27eb3632de6a81c9301bea740a1bda288d0c74a788a59cc44cd3c3a172a45e7be8bacb7ffe454924f707728b38bfb539998a41a8ef0b363039d7d6fcc6ac0a -DIST gprofng-gui-2.1.tar.gz 1323092 BLAKE2B b7618272f9798e2b4798b5c234d4ed323b086bae086f8df86407c129598db881ad5c87262a4f8093b22708e444db31421d157e2b1aff216adcca5a06713935a2 SHA512 c9351933594a9af06fadb7771a74fbec44a5d5a44672267f857c654ce871ca0b542cd5cfc287cdeed2b25f962696fa4b302c0733326cdf4d13ee4e13ed4f32ac -DIST gprofng-gui-2.2.tar.gz 1323156 BLAKE2B 102168c2ffc2f5c0b034d7047ba072c0df6000aa9e3f42fc5f6604f2f083f51bfc12d3ea41e10fb316cbb3cdac811730425a517ad3c01bb309bc57817bbd9e5d SHA512 3cb90479dbc30724d4b779ec9b070d39e5cb571dafe3a455a3cd3f323497dac43d3a6a275363940ee75e7e906671398e51a86dfffda9b7e6a73b888acb54c782 diff --git a/dev-debug/gprofng-gui/gprofng-gui-2.0.ebuild b/dev-debug/gprofng-gui/gprofng-gui-2.0.ebuild deleted file mode 100644 index 562dab19b40b..000000000000 --- a/dev-debug/gprofng-gui/gprofng-gui-2.0.ebuild +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 2024-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit java-pkg-2 xdg - -DESCRIPTION="Full-fledged graphical interface to operate gprofng" -HOMEPAGE="https://www.gnu.org/software/gprofng-gui/" -if [[ ${PV} == 9999 ]] ; then - EGIT_REPO_URI="https://git.savannah.gnu.org/git/gprofng-gui.git" - inherit autotools git-r3 -else - SRC_URI="mirror://gnu/gprofng-gui/${P}.tar.gz" - S="${WORKDIR}/${P}" - - KEYWORDS="~amd64" -fi - -LICENSE="GPL-3+" -SLOT="0" - -DEPEND=">=virtual/jdk-1.8:*" -RDEPEND=" - sys-devel/binutils:*[gprofng(-)] - >=virtual/jre-1.8:* -" - -src_prepare() { - default - - [[ ${PV} == 9999 ]] && eautoreconf - - java-pkg-2_src_prepare -} diff --git a/dev-debug/gprofng-gui/gprofng-gui-2.1.ebuild b/dev-debug/gprofng-gui/gprofng-gui-2.1.ebuild deleted file mode 100644 index 984f2988c01c..000000000000 --- a/dev-debug/gprofng-gui/gprofng-gui-2.1.ebuild +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 2024-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit java-pkg-2 xdg - -DESCRIPTION="Full-fledged graphical interface to operate gprofng" -HOMEPAGE="https://www.gnu.org/software/gprofng-gui/" - -if [[ ${PV} == 9999 ]] ; then - EGIT_REPO_URI="https://git.savannah.gnu.org/git/gprofng-gui.git" - inherit autotools git-r3 -else - SRC_URI="mirror://gnu/gprofng-gui/${P}.tar.gz" - S="${WORKDIR}/${P}" - - KEYWORDS="~amd64" -fi - -LICENSE="GPL-3+" -SLOT="0" - -DEPEND=">=virtual/jdk-1.8:*" -RDEPEND=" - sys-devel/binutils:*[gprofng(-)] - >=virtual/jre-1.8:* -" - -src_prepare() { - default - - mkdir "${WORKDIR}"/build || die - - [[ ${PV} == 9999 ]] && eautoreconf - - java-pkg-2_src_prepare -} - -src_configure() { - cd "${WORKDIR}"/build || die - ECONF_SOURCE="${S}" econf -} - -src_compile() { - emake -C "${WORKDIR}"/build -} - -src_install() { - einstalldocs - emake -C "${WORKDIR}"/build DESTDIR="${D}" install -} diff --git a/dev-debug/gprofng-gui/gprofng-gui-2.2.ebuild b/dev-debug/gprofng-gui/gprofng-gui-2.2.ebuild deleted file mode 100644 index 984f2988c01c..000000000000 --- a/dev-debug/gprofng-gui/gprofng-gui-2.2.ebuild +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 2024-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit java-pkg-2 xdg - -DESCRIPTION="Full-fledged graphical interface to operate gprofng" -HOMEPAGE="https://www.gnu.org/software/gprofng-gui/" - -if [[ ${PV} == 9999 ]] ; then - EGIT_REPO_URI="https://git.savannah.gnu.org/git/gprofng-gui.git" - inherit autotools git-r3 -else - SRC_URI="mirror://gnu/gprofng-gui/${P}.tar.gz" - S="${WORKDIR}/${P}" - - KEYWORDS="~amd64" -fi - -LICENSE="GPL-3+" -SLOT="0" - -DEPEND=">=virtual/jdk-1.8:*" -RDEPEND=" - sys-devel/binutils:*[gprofng(-)] - >=virtual/jre-1.8:* -" - -src_prepare() { - default - - mkdir "${WORKDIR}"/build || die - - [[ ${PV} == 9999 ]] && eautoreconf - - java-pkg-2_src_prepare -} - -src_configure() { - cd "${WORKDIR}"/build || die - ECONF_SOURCE="${S}" econf -} - -src_compile() { - emake -C "${WORKDIR}"/build -} - -src_install() { - einstalldocs - emake -C "${WORKDIR}"/build DESTDIR="${D}" install -} diff --git a/dev-debug/gprofng-gui/gprofng-gui-9999.ebuild b/dev-debug/gprofng-gui/gprofng-gui-9999.ebuild deleted file mode 100644 index 984f2988c01c..000000000000 --- a/dev-debug/gprofng-gui/gprofng-gui-9999.ebuild +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 2024-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit java-pkg-2 xdg - -DESCRIPTION="Full-fledged graphical interface to operate gprofng" -HOMEPAGE="https://www.gnu.org/software/gprofng-gui/" - -if [[ ${PV} == 9999 ]] ; then - EGIT_REPO_URI="https://git.savannah.gnu.org/git/gprofng-gui.git" - inherit autotools git-r3 -else - SRC_URI="mirror://gnu/gprofng-gui/${P}.tar.gz" - S="${WORKDIR}/${P}" - - KEYWORDS="~amd64" -fi - -LICENSE="GPL-3+" -SLOT="0" - -DEPEND=">=virtual/jdk-1.8:*" -RDEPEND=" - sys-devel/binutils:*[gprofng(-)] - >=virtual/jre-1.8:* -" - -src_prepare() { - default - - mkdir "${WORKDIR}"/build || die - - [[ ${PV} == 9999 ]] && eautoreconf - - java-pkg-2_src_prepare -} - -src_configure() { - cd "${WORKDIR}"/build || die - ECONF_SOURCE="${S}" econf -} - -src_compile() { - emake -C "${WORKDIR}"/build -} - -src_install() { - einstalldocs - emake -C "${WORKDIR}"/build DESTDIR="${D}" install -} diff --git a/dev-debug/gprofng-gui/metadata.xml b/dev-debug/gprofng-gui/metadata.xml deleted file mode 100644 index 0853793ec926..000000000000 --- a/dev-debug/gprofng-gui/metadata.xml +++ /dev/null @@ -1,9 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>toolchain@gentoo.org</email> - <name>Gentoo Toolchain Project</name> - </maintainer> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/dev-debug/hotspot/Manifest b/dev-debug/hotspot/Manifest deleted file mode 100644 index fdd2f6fb1bc0..000000000000 --- a/dev-debug/hotspot/Manifest +++ /dev/null @@ -1,4 +0,0 @@ -DIST PrefixTickLabels-7cd6d5a04cf3747cc9327efdbcbf43620efaa0c1.gh.tar.gz 21553 BLAKE2B c804b6a573db0015fea032c4e1497d19e70a6d1fac85e980a8a9467bb773b583be0e4ffcc92802083760c56541fc17f3f5ed698f34913e49451a064768a4ad7f SHA512 d0f9d5f1e4b597f55d612bdcb9c870f0a490a5c66cb72e10bb1e73278be3f33bfb0a9c4ba0f4dfd3973f030814b594f9225f9d49a190de176961aa7677287d6f -DIST hotspot-1.6.0.gh.tar.gz 4108062 BLAKE2B fa60d3cee1f2551b97ec7806d0f05de95ba50f533a8528488a3bb6ed026ae2702761d006139bdf300becd9f4846851f5bd2f5935d76054593e5f7a746896df73 SHA512 ddd252ae828dd5086f67b074078eecb3bdff44be9b614eec72b15dbfb0fdab574fadd8d0f32136f1f8f92ed3359ef5194236f3c9bbb3beb0eb93d509ca146a0f -DIST hotspot-b61451d827dd23e35c5f611e3626226a119dfa48.gh.tar.gz 4103942 BLAKE2B 0ccdc66f1bde032c981d49807a659589ac51023f747afc462a75c27594cc806e67b3ec9525e0236da568c1ecf8f1d4fefcbd539ed5577f9a23850b20a478671b SHA512 e77111fe9213b24aca6070eb21ea1e608dd30472bf72d6433a5e72f2d8e17926bee169aa70820776dbcb966e610fef43f0091db98443e929a2fb1437956f7300 -DIST perfparser-65472541f74da213583535c8bb4fea831e875109.gh.tar.gz 3312538 BLAKE2B d2443e60c93047d7f5714d56ed24e5d3f94ace7cef152a6ea70539f8c0e0eb720297635da122715cd07f7efacbed9010951d368f1fc94142a5ebd130ea39377e SHA512 7ee0ec21dfdc201618921d1878c19c32cafecb268ecf45b513048730d8c34202fd28b531ec938ef13666d7b5dd83b75b68f33a607a6e016fcd8759af980bb223 diff --git a/dev-debug/hotspot/files/hotspot-odr.patch b/dev-debug/hotspot/files/hotspot-odr.patch deleted file mode 100644 index 75f11ad1b698..000000000000 --- a/dev-debug/hotspot/files/hotspot-odr.patch +++ /dev/null @@ -1,234 +0,0 @@ ---- a/src/models/disassemblymodel.cpp -+++ b/src/models/disassemblymodel.cpp -@@ -240,7 +240,7 @@ QModelIndex DisassemblyModel::indexForFileLine(const Data::FileLine& fileLine) c - return index(bestMatch, 0); - } - --void DisassemblyModel::find(const QString& search, Direction direction, int current) -+void DisassemblyModel::find(const QString& search, SearchDirection direction, int current) - { - auto searchFunc = [&search](const DisassemblyOutput::DisassemblyLine& line) { - return line.disassembly.indexOf(search, 0, Qt::CaseInsensitive) != -1; ---- a/src/models/disassemblymodel.h -+++ b/src/models/disassemblymodel.h -@@ -20,7 +20,7 @@ class Definition; - class Repository; - } - --enum class Direction; -+enum class SearchDirection; - - class DisassemblyModel : public QAbstractTableModel - { -@@ -76,7 +76,7 @@ signals: - - public slots: - void updateHighlighting(int line); -- void find(const QString& search, Direction direction, int offset); -+ void find(const QString& search, SearchDirection direction, int offset); - void scrollToLine(const QString& lineNumber); - - private: ---- a/src/models/search.h -+++ b/src/models/search.h -@@ -10,7 +10,7 @@ - #include <algorithm> - #include <iterator> - --enum class Direction -+enum class SearchDirection - { - Forward, - Backward -@@ -45,7 +45,7 @@ int search_helper(const it begin, const it end, const it current, SearchFunc sea - } - - template<typename it, typename SearchFunc, typename EndReached> --int search(const it begin, const it end, int current, Direction direction, SearchFunc searchFunc, EndReached endReached) -+int search(const it begin, const it end, int current, SearchDirection direction, SearchFunc searchFunc, EndReached endReached) - { - if (begin == end) - return -1; -@@ -54,7 +54,7 @@ int search(const it begin, const it end, int current, Direction direction, Searc - current = std::clamp(current, 0, static_cast<int>(size) - 1); - const auto currentIt = begin + current; - -- if (direction == Direction::Forward) { -+ if (direction == SearchDirection::Forward) { - return search_helper(begin, end, std::next(currentIt), searchFunc, endReached); - } - ---- a/src/models/sourcecodemodel.cpp -+++ b/src/models/sourcecodemodel.cpp -@@ -258,7 +258,7 @@ void SourceCodeModel::setSysroot(const QString& sysroot) - m_sysroot = sysroot; - } - --void SourceCodeModel::find(const QString& search, Direction direction, int current) -+void SourceCodeModel::find(const QString& search, SearchDirection direction, int current) - { - auto searchFunc = [&search](const QString& line) { return line.indexOf(search, 0, Qt::CaseInsensitive) != -1; }; - ---- a/src/models/sourcecodemodel.h -+++ b/src/models/sourcecodemodel.h -@@ -20,7 +20,7 @@ class Repository; - class Definition; - } - --enum class Direction; -+enum class SearchDirection; - - Q_DECLARE_METATYPE(QTextLine) - -@@ -73,7 +73,7 @@ public slots: - void updateHighlighting(int line); - void setSysroot(const QString& sysroot); - -- void find(const QString& search, Direction direction, int current); -+ void find(const QString& search, SearchDirection direction, int current); - void scrollToLine(const QString& lineNumber); - - private: ---- a/src/resultsdisassemblypage.cpp -+++ b/src/resultsdisassemblypage.cpp -@@ -407,12 +407,12 @@ ResultsDisassemblyPage::ResultsDisassemblyPage(CostContextMenu* costContextMenu, - - auto searchNext = [model, edit, additionalRows, searchResultIndex] { - const auto offset = searchResultIndex->isValid() ? searchResultIndex->row() - additionalRows : 0; -- model->find(edit->text(), Direction::Forward, offset); -+ model->find(edit->text(), SearchDirection::Forward, offset); - }; - - auto searchPrev = [model, edit, additionalRows, searchResultIndex] { - const auto offset = searchResultIndex->isValid() ? searchResultIndex->row() - additionalRows : 0; -- model->find(edit->text(), Direction::Backward, offset); -+ model->find(edit->text(), SearchDirection::Backward, offset); - }; - - auto findNextAction = KStandardAction::findNext(this, searchNext, actions); ---- a/tests/modeltests/tst_models.cpp -+++ b/tests/modeltests/tst_models.cpp -@@ -514,7 +514,7 @@ private slots: - // check if search works in general - QSignalSpy searchSpy(&model, &SourceCodeModel::resultFound); - for (int i = 0; i < 5; i++) { -- model.find(QStringLiteral("Line 5"), Direction::Forward, i); -+ model.find(QStringLiteral("Line 5"), SearchDirection::Forward, i); - auto result = searchSpy.takeFirst(); - QCOMPARE(result.at(0).value<QModelIndex>(), model.index(3, SourceCodeModel::SourceCodeColumn)); - } -@@ -522,21 +522,21 @@ private slots: - // Check wrap around - for (int i = 1; i < 4; i++) { - QSignalSpy endReached(&model, &SourceCodeModel::searchEndReached); -- model.find(QStringLiteral("Line 3"), Direction::Forward, i); -+ model.find(QStringLiteral("Line 3"), SearchDirection::Forward, i); - QCOMPARE(endReached.size(), 1); - } - - // check if no result found works - searchSpy.clear(); - for (int i = 0; i < 5; i++) { -- model.find(QStringLiteral("Line 8"), Direction::Forward, i); -+ model.find(QStringLiteral("Line 8"), SearchDirection::Forward, i); - auto result = searchSpy.takeFirst(); - QCOMPARE(result.at(0).value<QModelIndex>().isValid(), false); - } - - // test backward search - for (int i = 4; i > 0; i--) { -- model.find(QStringLiteral("Line 7"), Direction::Backward, i); -+ model.find(QStringLiteral("Line 7"), SearchDirection::Backward, i); - auto result = searchSpy.takeFirst(); - QCOMPARE(result.at(0).value<QModelIndex>(), model.index(5, SourceCodeModel::SourceCodeColumn)); - } -@@ -544,14 +544,14 @@ private slots: - // Check wrap around - for (int i = 4; i > 0; i--) { - QSignalSpy endReached(&model, &SourceCodeModel::searchEndReached); -- model.find(QStringLiteral("Line 7"), Direction::Backward, i); -+ model.find(QStringLiteral("Line 7"), SearchDirection::Backward, i); - QCOMPARE(endReached.size(), 1); - } - - // check if no result found works - searchSpy.clear(); - for (int i = 0; i < 5; i++) { -- model.find(QStringLiteral("Line 8"), Direction::Backward, i); -+ model.find(QStringLiteral("Line 8"), SearchDirection::Backward, i); - auto result = searchSpy.takeFirst(); - QCOMPARE(result.at(0).value<QModelIndex>().isValid(), false); - } ---- a/tests/modeltests/tst_search.cpp -+++ b/tests/modeltests/tst_search.cpp -@@ -24,9 +24,9 @@ private slots: - const std::array<int, 0> testArray = {}; - - QCOMPARE( -- search(testArray.cbegin(), testArray.cend(), 0, Direction::Forward, [](int) { return false; }, [] {}), -1); -+ search(testArray.cbegin(), testArray.cend(), 0, SearchDirection::Forward, [](int) { return false; }, [] {}), -1); - QCOMPARE( -- search(testArray.cbegin(), testArray.cend(), 0, Direction::Backward, [](int) { return false; }, [] {}), -1); -+ search(testArray.cbegin(), testArray.cend(), 0, SearchDirection::Backward, [](int) { return false; }, [] {}), -1); - } - void testSearch() - { -@@ -35,11 +35,11 @@ private slots: - int maxOffset = testArray.size() - 1; - for (int offset = 0; offset < maxOffset; offset++) { - QCOMPARE(search( -- testArray.cbegin(), testArray.cend(), offset, Direction::Forward, -+ testArray.cbegin(), testArray.cend(), offset, SearchDirection::Forward, - [](int num) { return num == 2; }, [] {}), - 1); - QCOMPARE(search( -- testArray.cbegin(), testArray.cend(), offset, Direction::Backward, -+ testArray.cbegin(), testArray.cend(), offset, SearchDirection::Backward, - [](int num) { return num == 2; }, [] {}), - 1); - } -@@ -51,7 +51,7 @@ private slots: - { - bool endReached = false; - QCOMPARE(search( -- testArray.cbegin(), testArray.cend(), 1, Direction::Forward, [](int i) { return i == 1; }, -+ testArray.cbegin(), testArray.cend(), 1, SearchDirection::Forward, [](int i) { return i == 1; }, - [&endReached] { endReached = true; }), - 0); - QCOMPARE(endReached, true); -@@ -60,7 +60,7 @@ private slots: - { - bool endReached = false; - QCOMPARE(search( -- testArray.cbegin(), testArray.cend(), 1, Direction::Backward, [](int i) { return i == 4; }, -+ testArray.cbegin(), testArray.cend(), 1, SearchDirection::Backward, [](int i) { return i == 4; }, - [&endReached] { endReached = true; }), - 3); - QCOMPARE(endReached, true); -@@ -73,7 +73,7 @@ private slots: - - for (int i = 0; i < 2; i++) { - QCOMPARE(search( -- testArray.cbegin(), testArray.cend(), 0, Direction::Forward, [](int) { return true; }, [] {}), -+ testArray.cbegin(), testArray.cend(), 0, SearchDirection::Forward, [](int) { return true; }, [] {}), - -1); - } - } -@@ -83,7 +83,7 @@ private slots: - const std::array<int, 1> testArray = {0}; - - QCOMPARE(search( -- testArray.cbegin(), testArray.cend(), 1, Direction::Forward, [](int i) { return i == 0; }, [] {}), -+ testArray.cbegin(), testArray.cend(), 1, SearchDirection::Forward, [](int i) { return i == 0; }, [] {}), - 0); - } - -@@ -93,7 +93,7 @@ private slots: - - for (std::size_t i = 0; i < testArray.size(); i++) { - QCOMPARE(search( -- testArray.cbegin() + 1, testArray.cbegin() + 3, i, Direction::Forward, -+ testArray.cbegin() + 1, testArray.cbegin() + 3, i, SearchDirection::Forward, - [](int i) { return i == 0; }, [] {}), - -1); - } diff --git a/dev-debug/hotspot/hotspot-1.5.1_p20250907-r1.ebuild b/dev-debug/hotspot/hotspot-1.5.1_p20250907-r1.ebuild deleted file mode 100644 index b5ff51ae0faa..000000000000 --- a/dev-debug/hotspot/hotspot-1.5.1_p20250907-r1.ebuild +++ /dev/null @@ -1,126 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -QTMIN=6.8.1 -KFMIN=6.18.0 - -inherit ecm xdg - -DESCRIPTION="Linux perf GUI for performance analysis" -HOMEPAGE="https://github.com/KDAB/hotspot" - -if [[ ${PV} == 9999 ]] ; then - EGIT_REPO_URI="https://github.com/KDAB/hotspot" - inherit git-r3 -elif [[ ${PV} == *_p* ]] ; then - HOTSPOT_COMMIT="b61451d827dd23e35c5f611e3626226a119dfa48" - PERFPARSER_COMMIT="65472541f74da213583535c8bb4fea831e875109" - PREFIXTICKLABELS_COMMIT="7cd6d5a04cf3747cc9327efdbcbf43620efaa0c1" - SRC_URI=" - https://github.com/KDAB/hotspot/archive/${HOTSPOT_COMMIT}.tar.gz - -> ${PN}-${HOTSPOT_COMMIT}.gh.tar.gz - https://github.com/KDAB/perfparser/archive/${PERFPARSER_COMMIT}.tar.gz - -> perfparser-${PERFPARSER_COMMIT}.gh.tar.gz - https://github.com/koenpoppe/PrefixTickLabels/archive/${PREFIXTICKLABELS_COMMIT}.tar.gz - -> PrefixTickLabels-${PREFIXTICKLABELS_COMMIT}.gh.tar.gz - " - S="${WORKDIR}"/${PN}-${HOTSPOT_COMMIT} -else - SRC_URI=" - https://github.com/KDAB/hotspot/releases/download/v${PV}/${PN}-v${PV}.tar.gz - https://github.com/KDAB/hotspot/releases/download/v${PV}/${PN}-perfparser-v${PV}.tar.gz - -> ${PN}-v${PV}-perfparser.tar.gz - https://github.com/KDAB/hotspot/releases/download/v${PV}/${PN}-PrefixTickLabels-v${PV}.tar.gz - -> ${PN}-v${PV}-PrefixTickLabels.tar.gz - " - S="${WORKDIR}"/${PN} -fi - -# hotspot itself is GPL-2 or GPL-3 -# bundled perfparser is GPL-3 -# bundled PrefixTickLabels is GPL-3 -LICENSE="|| ( GPL-2 GPL-3 ) GPL-3" -SLOT="0" -IUSE="debuginfod" -if [[ ${PV} != 9999 ]] ; then - KEYWORDS="~amd64" -fi - -DEPEND=" - app-arch/zstd:= - dev-libs/elfutils[debuginfod?] - dev-libs/qcustomplot - >=dev-qt/qtbase-${QTMIN}:6=[network,widgets] - >=dev-qt/qtsvg-${QTMIN}:6 - gui-libs/kddockwidgets:= - >=kde-frameworks/karchive-${KFMIN}:6 - >=kde-frameworks/kconfigwidgets-${KFMIN}:6 - >=kde-frameworks/kcoreaddons-${KFMIN}:6 - >=kde-frameworks/ki18n-${KFMIN}:6 - >=kde-frameworks/kiconthemes-${KFMIN}:6 - >=kde-frameworks/kio-${KFMIN}:6 - >=kde-frameworks/kitemviews-${KFMIN}:6 - >=kde-frameworks/kitemmodels-${KFMIN}:6 - >=kde-frameworks/knotifications-${KFMIN}:6 - >=kde-frameworks/kparts-${KFMIN}:6 - >=kde-frameworks/kwindowsystem-${KFMIN}:6 - >=kde-frameworks/solid-${KFMIN}:6 - >=kde-frameworks/syntax-highlighting-${KFMIN}:6 - >=kde-frameworks/threadweaver-${KFMIN}:6 - media-gfx/kgraphviewer - sys-devel/gettext -" -RDEPEND=" - ${DEPEND} - dev-util/perf - sys-devel/binutils:* -" - -PATCHES=( - "${FILESDIR}"/${PN}-odr.patch -) - -src_unpack() { - if [[ ${PV} == 9999 ]] ; then - git-r3_src_unpack - elif [[ ${PV} == *_p* ]] ; then - unpack ${PN}-${HOTSPOT_COMMIT}.gh.tar.gz - tar -xf "${DISTDIR}"/perfparser-${PERFPARSER_COMMIT}.gh.tar.gz --strip-components=1 \ - -C "${S}"/3rdparty/perfparser || die - tar -xf "${DISTDIR}"/PrefixTickLabels-${PREFIXTICKLABELS_COMMIT}.gh.tar.gz --strip-components=1 \ - -C "${S}"/3rdparty/PrefixTickLabels || die - else - unpack ${PN}-v${PV}.tar.gz - tar -xf "${DISTDIR}"/${PN}-v${PV}-perfparser.tar.gz --strip-components=1 \ - -C "${S}"/3rdparty/perfparser || die - tar -xf "${DISTDIR}"/${PN}-v${PV}-PrefixTickLabels.tar.gz --strip-components=1 \ - -C "${S}"/3rdparty/PrefixTickLabels || die - fi -} - -src_configure() { - local mycmakeargs=( - -DQT6_BUILD=true - ) - - if ! use debuginfod; then - mycmakeargs+=( - -DHAVE_DWFL_GET_DEBUGINFOD_CLIENT_SYMBOL="no" - -DHAVE_DEBUGINFOD_SET_USER_DATA="no" - ) - fi - - ecm_src_configure -} - -src_test() { - CMAKE_SKIP_TESTS=( - # Complains about {d,rustc}_demangle missing, but may fail - # for other reasons too. - tst_perfparser - ) - - ecm_src_test -} diff --git a/dev-debug/hotspot/hotspot-1.6.0.ebuild b/dev-debug/hotspot/hotspot-1.6.0.ebuild deleted file mode 100644 index 41d986efdb47..000000000000 --- a/dev-debug/hotspot/hotspot-1.6.0.ebuild +++ /dev/null @@ -1,127 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -QTMIN=6.8.1 -KFMIN=6.18.0 - -inherit ecm xdg - -DESCRIPTION="Linux perf GUI for performance analysis" -HOMEPAGE="https://github.com/KDAB/hotspot" - -if [[ ${PV} == 9999 ]] ; then - EGIT_REPO_URI="https://github.com/KDAB/hotspot" - inherit git-r3 -elif [[ ${PV} == *_p* ]] ; then - HOTSPOT_COMMIT="b61451d827dd23e35c5f611e3626226a119dfa48" - PERFPARSER_COMMIT="65472541f74da213583535c8bb4fea831e875109" - PREFIXTICKLABELS_COMMIT="7cd6d5a04cf3747cc9327efdbcbf43620efaa0c1" - SRC_URI=" - https://github.com/KDAB/hotspot/archive/${HOTSPOT_COMMIT}.tar.gz - -> ${PN}-${HOTSPOT_COMMIT}.gh.tar.gz - https://github.com/KDAB/perfparser/archive/${PERFPARSER_COMMIT}.tar.gz - -> perfparser-${PERFPARSER_COMMIT}.gh.tar.gz - https://github.com/koenpoppe/PrefixTickLabels/archive/${PREFIXTICKLABELS_COMMIT}.tar.gz - -> PrefixTickLabels-${PREFIXTICKLABELS_COMMIT}.gh.tar.gz - " - S="${WORKDIR}"/${PN}-${HOTSPOT_COMMIT} -else - PERFPARSER_COMMIT="65472541f74da213583535c8bb4fea831e875109" - PREFIXTICKLABELS_COMMIT="7cd6d5a04cf3747cc9327efdbcbf43620efaa0c1" - SRC_URI=" - https://github.com/KDAB/hotspot/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz - https://github.com/KDAB/perfparser/archive/${PERFPARSER_COMMIT}.tar.gz - -> perfparser-${PERFPARSER_COMMIT}.gh.tar.gz - https://github.com/koenpoppe/PrefixTickLabels/archive/${PREFIXTICKLABELS_COMMIT}.tar.gz - -> PrefixTickLabels-${PREFIXTICKLABELS_COMMIT}.gh.tar.gz - " -fi - -# hotspot itself is GPL-2 or GPL-3 -# bundled perfparser is GPL-3 -# bundled PrefixTickLabels is GPL-3 -LICENSE="|| ( GPL-2 GPL-3 ) GPL-3" -SLOT="0" -IUSE="debuginfod" -if [[ ${PV} != 9999 ]] ; then - KEYWORDS="~amd64" -fi - -DEPEND=" - app-arch/zstd:= - dev-libs/elfutils[debuginfod?] - dev-libs/qcustomplot - >=dev-qt/qtbase-${QTMIN}:6=[network,widgets] - >=dev-qt/qtsvg-${QTMIN}:6 - gui-libs/kddockwidgets:= - >=kde-frameworks/karchive-${KFMIN}:6 - >=kde-frameworks/kconfigwidgets-${KFMIN}:6 - >=kde-frameworks/kcoreaddons-${KFMIN}:6 - >=kde-frameworks/ki18n-${KFMIN}:6 - >=kde-frameworks/kiconthemes-${KFMIN}:6 - >=kde-frameworks/kio-${KFMIN}:6 - >=kde-frameworks/kitemviews-${KFMIN}:6 - >=kde-frameworks/kitemmodels-${KFMIN}:6 - >=kde-frameworks/knotifications-${KFMIN}:6 - >=kde-frameworks/kparts-${KFMIN}:6 - >=kde-frameworks/kwindowsystem-${KFMIN}:6 - >=kde-frameworks/solid-${KFMIN}:6 - >=kde-frameworks/syntax-highlighting-${KFMIN}:6 - >=kde-frameworks/threadweaver-${KFMIN}:6 - media-gfx/kgraphviewer - sys-devel/gettext -" -RDEPEND=" - ${DEPEND} - dev-util/perf - sys-devel/binutils:* -" - -PATCHES=( - "${FILESDIR}"/${PN}-odr.patch -) - -src_unpack() { - if [[ ${PV} == 9999 ]] ; then - git-r3_src_unpack - elif [[ ${PV} == *_p* ]] ; then - unpack ${PN}-${HOTSPOT_COMMIT}.gh.tar.gz - tar -xf "${DISTDIR}"/perfparser-${PERFPARSER_COMMIT}.gh.tar.gz --strip-components=1 \ - -C "${S}"/3rdparty/perfparser || die - tar -xf "${DISTDIR}"/PrefixTickLabels-${PREFIXTICKLABELS_COMMIT}.gh.tar.gz --strip-components=1 \ - -C "${S}"/3rdparty/PrefixTickLabels || die - else - unpack ${P}.gh.tar.gz - tar -xf "${DISTDIR}"/perfparser-${PERFPARSER_COMMIT}.gh.tar.gz --strip-components=1 \ - -C "${S}"/3rdparty/perfparser || die - tar -xf "${DISTDIR}"/PrefixTickLabels-${PREFIXTICKLABELS_COMMIT}.gh.tar.gz --strip-components=1 \ - -C "${S}"/3rdparty/PrefixTickLabels || die - fi -} - -src_configure() { - local mycmakeargs=( - -DQT6_BUILD=true - ) - - if ! use debuginfod; then - mycmakeargs+=( - -DHAVE_DWFL_GET_DEBUGINFOD_CLIENT_SYMBOL="no" - -DHAVE_DEBUGINFOD_SET_USER_DATA="no" - ) - fi - - ecm_src_configure -} - -src_test() { - CMAKE_SKIP_TESTS=( - # Complains about {d,rustc}_demangle missing, but may fail - # for other reasons too. - tst_perfparser - ) - - ecm_src_test -} diff --git a/dev-debug/hotspot/hotspot-9999.ebuild b/dev-debug/hotspot/hotspot-9999.ebuild deleted file mode 100644 index 41d986efdb47..000000000000 --- a/dev-debug/hotspot/hotspot-9999.ebuild +++ /dev/null @@ -1,127 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -QTMIN=6.8.1 -KFMIN=6.18.0 - -inherit ecm xdg - -DESCRIPTION="Linux perf GUI for performance analysis" -HOMEPAGE="https://github.com/KDAB/hotspot" - -if [[ ${PV} == 9999 ]] ; then - EGIT_REPO_URI="https://github.com/KDAB/hotspot" - inherit git-r3 -elif [[ ${PV} == *_p* ]] ; then - HOTSPOT_COMMIT="b61451d827dd23e35c5f611e3626226a119dfa48" - PERFPARSER_COMMIT="65472541f74da213583535c8bb4fea831e875109" - PREFIXTICKLABELS_COMMIT="7cd6d5a04cf3747cc9327efdbcbf43620efaa0c1" - SRC_URI=" - https://github.com/KDAB/hotspot/archive/${HOTSPOT_COMMIT}.tar.gz - -> ${PN}-${HOTSPOT_COMMIT}.gh.tar.gz - https://github.com/KDAB/perfparser/archive/${PERFPARSER_COMMIT}.tar.gz - -> perfparser-${PERFPARSER_COMMIT}.gh.tar.gz - https://github.com/koenpoppe/PrefixTickLabels/archive/${PREFIXTICKLABELS_COMMIT}.tar.gz - -> PrefixTickLabels-${PREFIXTICKLABELS_COMMIT}.gh.tar.gz - " - S="${WORKDIR}"/${PN}-${HOTSPOT_COMMIT} -else - PERFPARSER_COMMIT="65472541f74da213583535c8bb4fea831e875109" - PREFIXTICKLABELS_COMMIT="7cd6d5a04cf3747cc9327efdbcbf43620efaa0c1" - SRC_URI=" - https://github.com/KDAB/hotspot/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz - https://github.com/KDAB/perfparser/archive/${PERFPARSER_COMMIT}.tar.gz - -> perfparser-${PERFPARSER_COMMIT}.gh.tar.gz - https://github.com/koenpoppe/PrefixTickLabels/archive/${PREFIXTICKLABELS_COMMIT}.tar.gz - -> PrefixTickLabels-${PREFIXTICKLABELS_COMMIT}.gh.tar.gz - " -fi - -# hotspot itself is GPL-2 or GPL-3 -# bundled perfparser is GPL-3 -# bundled PrefixTickLabels is GPL-3 -LICENSE="|| ( GPL-2 GPL-3 ) GPL-3" -SLOT="0" -IUSE="debuginfod" -if [[ ${PV} != 9999 ]] ; then - KEYWORDS="~amd64" -fi - -DEPEND=" - app-arch/zstd:= - dev-libs/elfutils[debuginfod?] - dev-libs/qcustomplot - >=dev-qt/qtbase-${QTMIN}:6=[network,widgets] - >=dev-qt/qtsvg-${QTMIN}:6 - gui-libs/kddockwidgets:= - >=kde-frameworks/karchive-${KFMIN}:6 - >=kde-frameworks/kconfigwidgets-${KFMIN}:6 - >=kde-frameworks/kcoreaddons-${KFMIN}:6 - >=kde-frameworks/ki18n-${KFMIN}:6 - >=kde-frameworks/kiconthemes-${KFMIN}:6 - >=kde-frameworks/kio-${KFMIN}:6 - >=kde-frameworks/kitemviews-${KFMIN}:6 - >=kde-frameworks/kitemmodels-${KFMIN}:6 - >=kde-frameworks/knotifications-${KFMIN}:6 - >=kde-frameworks/kparts-${KFMIN}:6 - >=kde-frameworks/kwindowsystem-${KFMIN}:6 - >=kde-frameworks/solid-${KFMIN}:6 - >=kde-frameworks/syntax-highlighting-${KFMIN}:6 - >=kde-frameworks/threadweaver-${KFMIN}:6 - media-gfx/kgraphviewer - sys-devel/gettext -" -RDEPEND=" - ${DEPEND} - dev-util/perf - sys-devel/binutils:* -" - -PATCHES=( - "${FILESDIR}"/${PN}-odr.patch -) - -src_unpack() { - if [[ ${PV} == 9999 ]] ; then - git-r3_src_unpack - elif [[ ${PV} == *_p* ]] ; then - unpack ${PN}-${HOTSPOT_COMMIT}.gh.tar.gz - tar -xf "${DISTDIR}"/perfparser-${PERFPARSER_COMMIT}.gh.tar.gz --strip-components=1 \ - -C "${S}"/3rdparty/perfparser || die - tar -xf "${DISTDIR}"/PrefixTickLabels-${PREFIXTICKLABELS_COMMIT}.gh.tar.gz --strip-components=1 \ - -C "${S}"/3rdparty/PrefixTickLabels || die - else - unpack ${P}.gh.tar.gz - tar -xf "${DISTDIR}"/perfparser-${PERFPARSER_COMMIT}.gh.tar.gz --strip-components=1 \ - -C "${S}"/3rdparty/perfparser || die - tar -xf "${DISTDIR}"/PrefixTickLabels-${PREFIXTICKLABELS_COMMIT}.gh.tar.gz --strip-components=1 \ - -C "${S}"/3rdparty/PrefixTickLabels || die - fi -} - -src_configure() { - local mycmakeargs=( - -DQT6_BUILD=true - ) - - if ! use debuginfod; then - mycmakeargs+=( - -DHAVE_DWFL_GET_DEBUGINFOD_CLIENT_SYMBOL="no" - -DHAVE_DEBUGINFOD_SET_USER_DATA="no" - ) - fi - - ecm_src_configure -} - -src_test() { - CMAKE_SKIP_TESTS=( - # Complains about {d,rustc}_demangle missing, but may fail - # for other reasons too. - tst_perfparser - ) - - ecm_src_test -} diff --git a/dev-debug/hotspot/metadata.xml b/dev-debug/hotspot/metadata.xml deleted file mode 100644 index f8814792a86f..000000000000 --- a/dev-debug/hotspot/metadata.xml +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>sam@gentoo.org</email> - <name>Sam James</name> - </maintainer> - <use> - <flag name="debuginfod">Enable debuginfod support via <pkg>dev-libs/elfutils</pkg> libdebuginfod</flag> - </use> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/dev-debug/kdbg/Manifest b/dev-debug/kdbg/Manifest deleted file mode 100644 index 656196b14f1f..000000000000 --- a/dev-debug/kdbg/Manifest +++ /dev/null @@ -1,3 +0,0 @@ -DIST kdbg-3.1.0_p20250406-patchset.tar.xz 3812 BLAKE2B bbdc08408b9ff123dcd3e283f8862e541031646e4a303dbe0c311571282ddf6a7d580fb68637def3685d779f598c7ea2b4f5b280963629bd964c0ae408e0ddd6 SHA512 6cce46cb257cedb31c13fa556ec6c5ca0ba558ac1fb21e29be99996011c8077e3563bb39e0895c84c66e3246d871a51a6cdc3157c9cda9f06569090add3e53be -DIST kdbg-3.1.0_p20250406.tar.gz 454669 BLAKE2B c4aafba0df4841d972dc3c48d8ac0cfaa4ea9dd4a689105fb4f93ed82595b0a058d798b42243ac9475125855fa2130587ba0e2dd9f5cf9c40c699b85f6bdb9d6 SHA512 57bb250251c43e83fc1897c3798cb8ae740e2b549014cdc54d44fb9775bff7ab786acfddfc5b0f159b9d22c39b84793236fbf6db712c00df8f8938b196a56454 -DIST kdbg-3.2.0.gh.tar.gz 439388 BLAKE2B 6d43397806a275f259cfa12cedd34b9c280ab0b5c1b44e62ac69cc32684ad308b0de1823c6fbae7a8ba8706078093c00e9d7151b822acce92ae0497b4d0bb708 SHA512 ef86103bb52721ab3e35a8de99a24987f68bbae8f0b714e6c6274124ad6d9b17e61e81ed0f13589516b33796d43a0c4209eac2cd0a8eb89a71eeb1f1d3a61a41 diff --git a/dev-debug/kdbg/kdbg-3.1.0_p20250406-r1.ebuild b/dev-debug/kdbg/kdbg-3.1.0_p20250406-r1.ebuild deleted file mode 100644 index 7a00440c5b6c..000000000000 --- a/dev-debug/kdbg/kdbg-3.1.0_p20250406-r1.ebuild +++ /dev/null @@ -1,54 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -COMMIT="78450aec94de5c2c5e07f9a448f454ebe39e4fc0" -PATCHSET="${P}-patchset.tar.xz" -ECM_HANDBOOK="true" -KFMIN=6.9.0 -QTMIN=6.8.1 -inherit ecm xdg - -DESCRIPTION="Graphical debugger interface" -HOMEPAGE="https://www.kdbg.org/" -SRC_URI="https://github.com/j6t/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz - https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}" -S="${WORKDIR}/${PN}-${COMMIT}" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~riscv ~x86" - -DEPEND=" - >=dev-qt/qt5compat-${QTMIN}:6 - >=dev-qt/qtbase-${QTMIN}:6[gui,widgets] - >=kde-frameworks/kconfig-${KFMIN}:6 - >=kde-frameworks/kconfigwidgets-${KFMIN}:6 - >=kde-frameworks/kcoreaddons-${KFMIN}:6 - >=kde-frameworks/ki18n-${KFMIN}:6 - >=kde-frameworks/kiconthemes-${KFMIN}:6 - >=kde-frameworks/kwidgetsaddons-${KFMIN}:6 - >=kde-frameworks/kwindowsystem-${KFMIN}:6[X] - >=kde-frameworks/kxmlgui-${KFMIN}:6 -" -RDEPEND="${DEPEND} - !${CATEGORY}/${PN}:5 - dev-debug/gdb -" - -# Patchset containing queued up upstream MRs, in order: -# https://github.com/j6t/kdbg/pull/48 (only partially picked) -# https://github.com/j6t/kdbg/commit/2e5de789 (Switch to KX11Extras) -# https://github.com/j6t/kdbg/pull/49 (Cast to QChar) -# https://github.com/j6t/kdbg/pull/50 -PATCHES=( "${WORKDIR}"/${PATCHSET/.tar.xz/} ) - -src_prepare() { - ecm_src_prepare - # TODO: raising ECM leads to many more deprecations erroring out: - sed -e "/^find_package(ECM/ s/\${KF_MIN_VERSION} //" -i CMakeLists.txt || die - if ! use handbook; then - cmake_run_in kdbg cmake_comment_add_subdirectory doc - fi -} diff --git a/dev-debug/kdbg/kdbg-3.1.0_p20250406.ebuild b/dev-debug/kdbg/kdbg-3.1.0_p20250406.ebuild deleted file mode 100644 index 74303154d897..000000000000 --- a/dev-debug/kdbg/kdbg-3.1.0_p20250406.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -COMMIT="78450aec94de5c2c5e07f9a448f454ebe39e4fc0" -PATCHSET="${P}-patchset.tar.xz" -ECM_HANDBOOK="true" -KFMIN=6.9.0 -QTMIN=6.8.1 -inherit ecm xdg - -DESCRIPTION="Graphical debugger interface" -HOMEPAGE="https://www.kdbg.org/" -SRC_URI="https://github.com/j6t/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz - https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}" -S="${WORKDIR}/${PN}-${COMMIT}" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~riscv ~x86" - -DEPEND=" - >=dev-qt/qtbase-${QTMIN}:6[gui,widgets] - >=kde-frameworks/kconfig-${KFMIN}:6 - >=kde-frameworks/kconfigwidgets-${KFMIN}:6 - >=kde-frameworks/kcoreaddons-${KFMIN}:6 - >=kde-frameworks/ki18n-${KFMIN}:6 - >=kde-frameworks/kiconthemes-${KFMIN}:6 - >=kde-frameworks/kwidgetsaddons-${KFMIN}:6 - >=kde-frameworks/kwindowsystem-${KFMIN}:6[X] - >=kde-frameworks/kxmlgui-${KFMIN}:6 -" -RDEPEND="${DEPEND} - !${CATEGORY}/${PN}:5 - dev-debug/gdb -" - -# Patchset containing queued up upstream MRs, in order: -# https://github.com/j6t/kdbg/pull/48 (only partially picked) -# https://github.com/j6t/kdbg/commit/2e5de789 (Switch to KX11Extras) -# https://github.com/j6t/kdbg/pull/49 (Cast to QChar) -# https://github.com/j6t/kdbg/pull/50 -PATCHES=( "${WORKDIR}"/${PATCHSET/.tar.xz/} ) - -src_prepare() { - ecm_src_prepare - # TODO: raising ECM leads to many more deprecations erroring out: - sed -e "/^find_package(ECM/ s/\${KF_MIN_VERSION} //" -i CMakeLists.txt || die - if ! use handbook; then - cmake_run_in kdbg cmake_comment_add_subdirectory doc - fi -} diff --git a/dev-debug/kdbg/kdbg-3.2.0.ebuild b/dev-debug/kdbg/kdbg-3.2.0.ebuild deleted file mode 100644 index 08c1a4cdbd42..000000000000 --- a/dev-debug/kdbg/kdbg-3.2.0.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -ECM_HANDBOOK="true" -KFMIN=6.9.0 -QTMIN=6.8.1 -inherit ecm xdg - -DESCRIPTION="Graphical debugger interface" -HOMEPAGE="https://www.kdbg.org/" -SRC_URI="https://github.com/j6t/${PN}/archive/refs/tags/${P}.tar.gz -> ${P}.gh.tar.gz" -S="${WORKDIR}/${PN}-${P}" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~riscv ~x86" - -DEPEND=" - >=dev-qt/qt5compat-${QTMIN}:6 - >=dev-qt/qtbase-${QTMIN}:6[gui,widgets] - >=kde-frameworks/kconfig-${KFMIN}:6 - >=kde-frameworks/kconfigwidgets-${KFMIN}:6 - >=kde-frameworks/kcoreaddons-${KFMIN}:6 - >=kde-frameworks/ki18n-${KFMIN}:6 - >=kde-frameworks/kiconthemes-${KFMIN}:6 - >=kde-frameworks/kwidgetsaddons-${KFMIN}:6 - >=kde-frameworks/kwindowsystem-${KFMIN}:6[X] - >=kde-frameworks/kxmlgui-${KFMIN}:6 -" -RDEPEND="${DEPEND} - !${CATEGORY}/${PN}:5 - dev-debug/gdb -" - -src_prepare() { - ecm_src_prepare - if ! use handbook; then - cmake_run_in kdbg cmake_comment_add_subdirectory doc - fi -} - -src_configure() { - local mycmakeargs=( - -DBUILD_FOR_KDE_VERSION=6 - ) - ecm_src_configure -} diff --git a/dev-debug/kdbg/metadata.xml b/dev-debug/kdbg/metadata.xml deleted file mode 100644 index 02ffb2bf11fe..000000000000 --- a/dev-debug/kdbg/metadata.xml +++ /dev/null @@ -1,9 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>kde@gentoo.org</email> - <name>Gentoo KDE Project</name> - </maintainer> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/dev-debug/leaktracer/Manifest b/dev-debug/leaktracer/Manifest deleted file mode 100644 index f48add3e2c81..000000000000 --- a/dev-debug/leaktracer/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST leaktracer-2.4-gentoo_p2.tbz2 11957 BLAKE2B 0af20e7a43c88a16027e859779924ef3fc86af5fb8324a96721f190db4ef59d78681ea4b91ef9843ed467541c9ca3a9b1618339174fdc1901a13b5221acc5479 SHA512 12f348564933c8cf372208f846bb21b175f041e7687811e9c6ce8062e7f285b9d2395e7853a20df11d9b0d5b8fff89efc76ccbac9f8b7c0bc4fd4ea25d476718 diff --git a/dev-debug/leaktracer/leaktracer-2.4-r3.ebuild b/dev-debug/leaktracer/leaktracer-2.4-r3.ebuild deleted file mode 100644 index e0ba6140a682..000000000000 --- a/dev-debug/leaktracer/leaktracer-2.4-r3.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit toolchain-funcs - -# Upstream-package has no version in it's name. -# We therefore repackage it directly, together with the patches. -PATCH_LEVEL="2" - -DESCRIPTION="Trace and analyze memory leaks in C++ programs" -HOMEPAGE="https://andreasen.org/LeakTracer/" -SRC_URI="mirror://gentoo/${P}-gentoo_p${PATCH_LEVEL}.tbz2" - -LICENSE="public-domain" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" - -DEPEND="dev-lang/perl - dev-debug/gdb" -RDEPEND="${DEPEND}" - -# leaktracer is being realized using LD_PRELOAD and segfaults -# when being run in the sandbox and the library is _not_ in -# /usr/$(get_libdir) which is not possible before installation -RESTRICT="test" - -src_prepare() { - eapply -p1 "${WORKDIR}/patches/01_all_gcc-cflags.patch" - eapply -p0 "${WORKDIR}/patches/05_all_libdir.patch" - eapply -p1 "${WORKDIR}/patches/15_all_printf.patch" - - sed -i \ - -e "s|%LIBDIR%|$(get_libdir)|" \ - LeakCheck || die "sed for setting lib path failed" - - eapply_user -} - -src_compile() { - emake CXX="$(tc-getCXX)" -} - -src_install() { - dobin LeakCheck leak-analyze - dolib.so LeakTracer.so - dodoc README test.cc - docinto html - dodoc README.html -} - -pkg_postinst() { - elog "To use LeakTracer, run LeakCheck my_prog and then leak-analyze my_prog leak.out" - elog "Please refer to README file for more info." -} diff --git a/dev-debug/leaktracer/metadata.xml b/dev-debug/leaktracer/metadata.xml deleted file mode 100644 index 5f33304011d5..000000000000 --- a/dev-debug/leaktracer/metadata.xml +++ /dev/null @@ -1,5 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/dev-debug/ltrace/Manifest b/dev-debug/ltrace/Manifest deleted file mode 100644 index 4ba9c741a472..000000000000 --- a/dev-debug/ltrace/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST ltrace-0.7.91_pre20221216.tar.bz2 288077 BLAKE2B cadc2ac551a96dfa95aee0d0eb251d8f41a8631350ba3be3f67d0cb10774a3db6abbd42481d24febdfcb0d565107e66b4de0056a85a7954bb050adb8e8fa5b4a SHA512 993c247797551b4fbb202c04f9af08063c8641946825b17d1f32c4647c606ece803a6b049c4afa3046c798add161ab58f01d90106f3b6029a223af03bca27a99 -DIST ltrace-0.8.1.tar.bz2 296963 BLAKE2B 4fb938f3511668f836f7f9cd3d3ab88b9e46a749bce9f506609c1ebfced552c71f868272766be7d902c0151eba55061d6aa9f5c88b0f40cf040cc6f4a43d9ce6 SHA512 68fdf10abb3c9534987cb4fcf2531502f8376c56299d56908406ba903fa63af2e0a82c3b902ed0cd47e4985154155a4e9387a11ada066515de26486301dddbaf diff --git a/dev-debug/ltrace/files/ltrace-0.7.3-CXX-for-tests.patch b/dev-debug/ltrace/files/ltrace-0.7.3-CXX-for-tests.patch deleted file mode 100644 index 06db36c46818..000000000000 --- a/dev-debug/ltrace/files/ltrace-0.7.3-CXX-for-tests.patch +++ /dev/null @@ -1,11 +0,0 @@ -Testsuite uses CXX to trace mangled symbols. ---- a/configure.ac -+++ b/configure.ac -@@ -53,6 +53,7 @@ AC_SUBST(HOST_CPU) - - # Checks for programs. - AC_PROG_CC -+AC_PROG_CXX - LT_INIT - # libtool-2: LT_INIT() - AM_INIT_AUTOMAKE([foreign no-exeext dist-bzip2]) diff --git a/dev-debug/ltrace/files/ltrace-0.7.3-alpha-protos.patch b/dev-debug/ltrace/files/ltrace-0.7.3-alpha-protos.patch deleted file mode 100644 index 7ff573272963..000000000000 --- a/dev-debug/ltrace/files/ltrace-0.7.3-alpha-protos.patch +++ /dev/null @@ -1,12 +0,0 @@ -Fix build failure on alpha: - plt.c:32:12: error: dereferencing pointer to incomplete type ‘struct library_symbol’ - return sym->enter_addr; - ^ ---- a/sysdeps/linux-gnu/alpha/plt.c 2012-11-10 13:43:55.000000000 +0100 -+++ b/sysdeps/linux-gnu/alpha/plt.c 2016-06-27 23:21:28.000000000 +0200 -@@ -23,0 +24 @@ -+#include "library.h" ---- a/sysdeps/linux-gnu/alpha/trace.c 2016-06-27 23:30:08.000000000 +0200 -+++ b/sysdeps/linux-gnu/alpha/trace.c 2016-06-27 23:25:20.000000000 +0200 -@@ -29,0 +30 @@ -+#include "backend.h" diff --git a/dev-debug/ltrace/files/ltrace-0.7.3-ia64-pid_t.patch b/dev-debug/ltrace/files/ltrace-0.7.3-ia64-pid_t.patch deleted file mode 100644 index c466ce17e02d..000000000000 --- a/dev-debug/ltrace/files/ltrace-0.7.3-ia64-pid_t.patch +++ /dev/null @@ -1,6 +0,0 @@ ---- a/sysdeps/linux-gnu/ia64/breakpoint.c -+++ b/sysdeps/linux-gnu/ia64/breakpoint.c -@@ -26,2 +26,3 @@ - #include <sys/ptrace.h> -+#include <sys/types.h> /* pid_t */ - #include <string.h> diff --git a/dev-debug/ltrace/files/ltrace-0.7.3-ia64.patch b/dev-debug/ltrace/files/ltrace-0.7.3-ia64.patch deleted file mode 100644 index 4fb1c4eba734..000000000000 --- a/dev-debug/ltrace/files/ltrace-0.7.3-ia64.patch +++ /dev/null @@ -1,39 +0,0 @@ -Fix build fauilure on ia64. - -Build fails due to bitrot: some definitions -moved off from <sys/pthrace.h> to <asm/ptrace.h> -(similar to other arches). - -fetch.c:39:26: error: field 'regs' has incomplete type - struct pt_all_user_regs regs; - ^~~~ -fetch.c:209:25: warning: 'struct ia64_fpreg' declared inside parameter list will not be visible outside of this definition or declaration - fpreg_to_double (struct ia64_fpreg *fp) { - ^~~~~~~~~~ -fetch.c: In function 'fpreg_to_double': -fetch.c:211:45: error: dereferencing pointer to incomplete type 'struct ia64_fpreg' - asm ("ldf.fill %0=%1" : "=f"(result) : "m"(*fp)); - ^~~ - -diff --git a/sysdeps/linux-gnu/ia64/fetch.c b/sysdeps/linux-gnu/ia64/fetch.c -index 54dc5b8..b3b9a9a 100644 ---- a/sysdeps/linux-gnu/ia64/fetch.c -+++ b/sysdeps/linux-gnu/ia64/fetch.c -@@ -134,9 +134,4 @@ allocate_reg(struct fetch_context *ctx, struct Process *proc, - return 0; - -- /* This would normally be brought over from asm/ptrace.h, but -- * when we do, we get namespace conflicts between asm/fpu.h -- * and libunwind. */ -- enum { PT_AUR_BSP = 17 }; -- - union cfm_t cfm = { .value = ctx->regs.cfm }; - unsigned long *bsp = (unsigned long *)ctx->regs.ar[PT_AUR_BSP]; -diff --git a/sysdeps/linux-gnu/ia64/ptrace.h b/sysdeps/linux-gnu/ia64/ptrace.h -index ef63b4f..8b131f1 100644 ---- a/sysdeps/linux-gnu/ia64/ptrace.h -+++ b/sysdeps/linux-gnu/ia64/ptrace.h -@@ -20,2 +20,3 @@ - - #include <sys/ptrace.h> -+#include <asm/ptrace.h> diff --git a/dev-debug/ltrace/files/ltrace-0.7.3-musl-host.patch b/dev-debug/ltrace/files/ltrace-0.7.3-musl-host.patch deleted file mode 100644 index 7729449d0604..000000000000 --- a/dev-debug/ltrace/files/ltrace-0.7.3-musl-host.patch +++ /dev/null @@ -1,11 +0,0 @@ -https://bugs.gentoo.org/713428 ---- a/configure.ac -+++ b/configure.ac -@@ -33,6 +33,7 @@ AC_CANONICAL_HOST - - case "${host_os}" in - linux-gnu*) HOST_OS="linux-gnu" ;; -+ linux-musl*) HOST_OS="linux-gnu" ;; - linux-uclibc*) HOST_OS="linux-gnu" ;; - *) AC_MSG_ERROR([unkown host-os ${host_os}]) ;; - esac diff --git a/dev-debug/ltrace/files/ltrace-0.7.3-print-test-pie.patch b/dev-debug/ltrace/files/ltrace-0.7.3-print-test-pie.patch deleted file mode 100644 index 5e46135add3e..000000000000 --- a/dev-debug/ltrace/files/ltrace-0.7.3-print-test-pie.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- a/testsuite/ltrace.minor/print-instruction-pointer.exp -+++ b/testsuite/ltrace.minor/print-instruction-pointer.exp -@@ -32,6 +32,12 @@ catch "exec sh -c {objdump -d $objdir/$subdir/$binfile | sed -n '/^\[0-9a-fA-F\] - catch "exec sh -c {echo \"$output\" | sed -n '2p'| awk -F' ' '{print \$1}'|awk -F: '{print \$1}'}" addr1 - catch "exec sh -c {echo \"$output\" | sed -n '5p'| awk -F' ' '{print \$1}'|awk -F: '{print \$1}'}" addr2 - -+# Pick at most last 3 digits: -+# PIE binaries randomize address on page level. -+# Let's assume page size is no bigger than 4096 (3 hex digits) -+set addr1 [string range $addr1 3 end] -+set addr2 [string range $addr2 3 end] -+ - verbose "addr1 = $addr1" - verbose "addr2 = $addr2" - # Verify the output by checking numbers of print in main.ltrace. diff --git a/dev-debug/ltrace/files/ltrace-0.7.91-debian-patchset-6.4.patch b/dev-debug/ltrace/files/ltrace-0.7.91-debian-patchset-6.4.patch deleted file mode 100644 index 1f3bb5ec6a21..000000000000 --- a/dev-debug/ltrace/files/ltrace-0.7.91-debian-patchset-6.4.patch +++ /dev/null @@ -1,77 +0,0 @@ -Patches imported from the Debian patch set 6.4 for ltrace-0.7.3: - - 01-avoid-libstdc++ (adapted to account for the absence of configure), - - 03-alpha-debug.h - - 05-sparc-ftbfs - - 06-unexpected-breakpoint -The other two have since been merged upstream. - ---- a/configure.ac -+++ b/configure.ac -@@ -126,6 +126,15 @@ - libstdcxx_LIBS=""]) - AC_SUBST(libstdcxx_LIBS) - -+if test "x$liberty_LIBS" != "x" -+then -+ libsupcxx_LIBS="" -+ libstdcxx_LIBS="" -+elif test "x$libsupcxx_LIBS" != "x" -+then -+ libstdcxx_LIBS="" -+fi -+ - - dnl Check security_get_boolean_active availability. - AC_CHECK_HEADERS(selinux/selinux.h) ---- a/handle_event.c -+++ b/handle_event.c -@@ -740,9 +740,12 @@ - - if ((sbp = address2bpstruct(leader, brk_addr)) != NULL) - breakpoint_on_hit(sbp, event->proc); -- else if (event->proc->state != STATE_IGNORED) -+ else if (event->proc->state != STATE_IGNORED) { - output_line(event->proc, - "unexpected breakpoint at %p", brk_addr); -+ continue_process(event->proc->pid); -+ return; -+ } - - /* breakpoint_on_hit may delete its own breakpoint, so we have - * to look it up again. */ ---- a/sysdeps/linux-gnu/alpha/trace.c -+++ b/sysdeps/linux-gnu/alpha/trace.c -@@ -29,7 +29,6 @@ - - #include "proc.h" - #include "common.h" --#include "debug.h" - - #if (!defined(PTRACE_PEEKUSER) && defined(PTRACE_PEEKUSR)) - # define PTRACE_PEEKUSER PTRACE_PEEKUSR ---- a/sysdeps/linux-gnu/sparc/plt.c -+++ b/sysdeps/linux-gnu/sparc/plt.c -@@ -19,8 +19,9 @@ - */ - - #include <gelf.h> -+ - #include "proc.h" --#include "common.h" -+#include "library.h" - - GElf_Addr - arch_plt_sym_val(struct ltelf *lte, size_t ndx, GElf_Rela * rela) { ---- a/sysdeps/linux-gnu/sparc/trace.c -+++ b/sysdeps/linux-gnu/sparc/trace.c -@@ -26,8 +26,10 @@ - #include <sys/wait.h> - #include <signal.h> - #include <string.h> -+ - #include "ptrace.h" - #include "proc.h" -+#include "backend.h" - #include "common.h" - - void diff --git a/dev-debug/ltrace/files/ltrace-0.7.91-pid_t.patch b/dev-debug/ltrace/files/ltrace-0.7.91-pid_t.patch deleted file mode 100644 index 06075006b2e1..000000000000 --- a/dev-debug/ltrace/files/ltrace-0.7.91-pid_t.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/proc.h -+++ b/proc.h -@@ -27,6 +27,7 @@ - - #include <sys/time.h> - #include <stdint.h> -+#include <unistd.h> /* pid_t */ - - #if defined(HAVE_LIBDW) - # include <elfutils/libdwfl.h> diff --git a/dev-debug/ltrace/files/ltrace-0.7.91-test-glibc-2.33.patch b/dev-debug/ltrace/files/ltrace-0.7.91-test-glibc-2.33.patch deleted file mode 100644 index b78d4580b050..000000000000 --- a/dev-debug/ltrace/files/ltrace-0.7.91-test-glibc-2.33.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/testsuite/ltrace.main/system_calls.exp -+++ b/testsuite/ltrace.main/system_calls.exp -@@ -133,7 +133,7 @@ - { {^write$} == 1 } - { {^unlink(at)?$} >= 2 } - { {^open(at)?$} == 1 } -- { {^(new|f)?stat(64)?$} >= 1 } -+ { {^(new)?stat|fstatat64|newfstatat$} >= 1 } - { {^close$} == 1 } - { {^getcwd$} == 1 } - { {^chdir$} == 1 } diff --git a/dev-debug/ltrace/files/ltrace-0.7.91-tuple-tests.patch b/dev-debug/ltrace/files/ltrace-0.7.91-tuple-tests.patch deleted file mode 100644 index c7c997d5545e..000000000000 --- a/dev-debug/ltrace/files/ltrace-0.7.91-tuple-tests.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/testsuite/Makefile.am -+++ b/testsuite/Makefile.am -@@ -42,6 +42,8 @@ - echo set elfutils_LD_LIBRARY_PATH '"$(elfutils_LD_LIBRARY_PATH)"' >> $@ - echo set libunwind_LD_LIBRARY_PATH '"$(libunwind_LD_LIBRARY_PATH)"' >> $@ - echo set PREFIX '"$(prefix)"' >> $@ -+ echo set CC_FOR_TARGET '"$(CC)"' >> $@ -+ echo set CXX_FOR_TARGET '"$(CXX)"' >> $@ - - CLEANFILES = *.o *.so *.log *.sum *.ltrace site.bak setval.tmp site.exp env.exp - diff --git a/dev-debug/ltrace/ltrace-0.7.91_pre20221216-r1.ebuild b/dev-debug/ltrace/ltrace-0.7.91_pre20221216-r1.ebuild deleted file mode 100644 index 3320d0f4b602..000000000000 --- a/dev-debug/ltrace/ltrace-0.7.91_pre20221216-r1.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools - -EGIT_COMMIT="5cffc0d2134f697fbac8627ec5b5f0085cd47c8a" - -DESCRIPTION="trace library calls made at runtime" -HOMEPAGE="https://gitlab.com/cespedes/ltrace" -SRC_URI="https://gitlab.com/cespedes/${PN}/-/archive/${EGIT_COMMIT}.tar.bz2 -> ${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha amd64 ~arm ~mips ppc ~ppc64 ~sparc x86" -IUSE="debug elfutils selinux test unwind" - -REQUIRED_USE="?? ( elfutils unwind )" - -RDEPEND="virtual/libelf:= - elfutils? ( dev-libs/elfutils ) - selinux? ( sys-libs/libselinux ) - unwind? ( sys-libs/libunwind:= )" -DEPEND="${RDEPEND} - sys-libs/binutils-libs - test? ( dev-util/dejagnu )" - -# Effectively abandoned upstream. Extremely sensitive to the sandbox, versions -# of core libraries, kernel security settings... -RESTRICT="test" - -S=${WORKDIR}/${PN}-${EGIT_COMMIT} - -PATCHES=( - "${FILESDIR}"/${PN}-0.7.91-debian-patchset-6.4.patch - "${FILESDIR}"/${PN}-0.7.3-CXX-for-tests.patch - "${FILESDIR}"/${PN}-0.7.3-alpha-protos.patch - "${FILESDIR}"/${PN}-0.7.3-ia64.patch - "${FILESDIR}"/${PN}-0.7.3-ia64-pid_t.patch - "${FILESDIR}"/${PN}-0.7.3-musl-host.patch - "${FILESDIR}"/${PN}-0.7.3-print-test-pie.patch - "${FILESDIR}"/${PN}-0.7.91-pid_t.patch - "${FILESDIR}"/${PN}-0.7.91-test-glibc-2.33.patch - "${FILESDIR}"/${PN}-0.7.91-tuple-tests.patch -) - -src_prepare() { - default - - sed -i '/^dist_doc_DATA/d' Makefile.am || die - eautoreconf -} - -src_configure() { - ac_cv_header_selinux_selinux_h=$(usex selinux) \ - ac_cv_lib_selinux_security_get_boolean_active=$(usex selinux) \ - econf \ - --disable-werror \ - $(use_enable debug) \ - $(use_with elfutils) \ - $(use_with unwind libunwind) -} diff --git a/dev-debug/ltrace/ltrace-0.8.1.ebuild b/dev-debug/ltrace/ltrace-0.8.1.ebuild deleted file mode 100644 index ef3efbf598f0..000000000000 --- a/dev-debug/ltrace/ltrace-0.8.1.ebuild +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools - -DESCRIPTION="trace library calls made at runtime" -HOMEPAGE="https://gitlab.com/cespedes/ltrace" -SRC_URI="https://gitlab.com/cespedes/${PN}/-/archive/${PV}/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha amd64 ~arm ~mips ppc ~ppc64 ~sparc x86" -IUSE="debug elfutils selinux test unwind" - -REQUIRED_USE="?? ( elfutils unwind )" - -RDEPEND="virtual/libelf:= - elfutils? ( dev-libs/elfutils ) - selinux? ( sys-libs/libselinux ) - unwind? ( sys-libs/libunwind:= )" -DEPEND="${RDEPEND} - sys-libs/binutils-libs - test? ( dev-util/dejagnu )" - -# Effectively abandoned upstream. Extremely sensitive to the sandbox, versions -# of core libraries, kernel security settings... -RESTRICT="test" - -PATCHES=( - "${FILESDIR}"/${PN}-0.7.91-debian-patchset-6.4.patch - "${FILESDIR}"/${PN}-0.7.3-CXX-for-tests.patch - "${FILESDIR}"/${PN}-0.7.3-alpha-protos.patch - "${FILESDIR}"/${PN}-0.7.3-ia64.patch - "${FILESDIR}"/${PN}-0.7.3-ia64-pid_t.patch - "${FILESDIR}"/${PN}-0.7.3-musl-host.patch - "${FILESDIR}"/${PN}-0.7.3-print-test-pie.patch - "${FILESDIR}"/${PN}-0.7.91-pid_t.patch - "${FILESDIR}"/${PN}-0.7.91-tuple-tests.patch -) - -src_prepare() { - default - - sed -i '/^dist_doc_DATA/d' Makefile.am || die - eautoreconf -} - -src_configure() { - ac_cv_header_selinux_selinux_h=$(usex selinux) \ - ac_cv_lib_selinux_security_get_boolean_active=$(usex selinux) \ - econf \ - --disable-werror \ - $(use_enable debug) \ - $(use_with elfutils) \ - $(use_with unwind libunwind) -} diff --git a/dev-debug/ltrace/metadata.xml b/dev-debug/ltrace/metadata.xml deleted file mode 100644 index 16b809002c10..000000000000 --- a/dev-debug/ltrace/metadata.xml +++ /dev/null @@ -1,9 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <use> - <flag name="elfutils">Use libdwfl from <pkg>dev-libs/elfutils</pkg> for frame unwinding support</flag> - <flag name="unwind">Use <pkg>sys-libs/libunwind</pkg> for frame unwinding support</flag> - </use> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/dev-debug/peda/Manifest b/dev-debug/peda/Manifest deleted file mode 100644 index 91865e140d1d..000000000000 --- a/dev-debug/peda/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST peda-1.2.tar.gz 65331 BLAKE2B 6942b99d714eb1114167b80ba202d86f6dee52cd47c8047b4cb78d4a91f45e1594521440a3318a968e35c5dc56a616393c0837d6f9db5ba41505641a385fb573 SHA512 e69844b8c3a51af96096d97ebfa4a67ac8ff16e4a9e0edb64bbb5e946b1ebeaa56260663718b90145f4191cc25762f3e351a8de92bf9b56f9f1d11389c563c43 diff --git a/dev-debug/peda/files/peda-1.2-gdb_logging.patch b/dev-debug/peda/files/peda-1.2-gdb_logging.patch deleted file mode 100644 index 8abee7df38a4..000000000000 --- a/dev-debug/peda/files/peda-1.2-gdb_logging.patch +++ /dev/null @@ -1,48 +0,0 @@ -From baaecddc58db23db1b0d85651090b743ddf7899a Mon Sep 17 00:00:00 2001 -From: Nikolaos Chatzikonstantinou <nchatz314@gmail.com> -Date: Thu, 8 Feb 2024 03:51:51 -0500 -Subject: [PATCH] remove deprecated notice -Upstream: https://github.com/longld/peda/pull/176 - -From GDB 12.1+, `set logging on|off` is deprecated, and a notice is -given. See -<https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob_plain;f=gdb/NEWS;hb=gdb-12.1-release>. -This patch fixes the issue for the newer gdb versions. ---- a/peda.py -+++ b/peda.py -@@ -108,22 +108,22 @@ def execute_redirect(self, gdb_command, silent=False): - else: - logfd = tmpfile() - logname = logfd.name -- gdb.execute('set logging off') # prevent nested call -+ gdb.execute('set logging enabled off') # prevent nested call - gdb.execute('set height 0') # disable paging - gdb.execute('set logging file %s' % logname) - gdb.execute('set logging overwrite on') - gdb.execute('set logging redirect on') -- gdb.execute('set logging on') -+ gdb.execute('set logging enabled on') - try: - gdb.execute(gdb_command) - gdb.flush() -- gdb.execute('set logging off') -+ gdb.execute('set logging enabled off') - if not silent: - logfd.flush() - result = logfd.read() - logfd.close() - except Exception as e: -- gdb.execute('set logging off') #to be sure -+ gdb.execute('set logging enabled off') #to be sure - if config.Option.get("debug") == "on": - msg('Exception (%s): %s' % (gdb_command, e), "red") - traceback.print_exc() -@@ -6112,7 +6112,7 @@ def complete(self, text, word): - # handle SIGINT / Ctrl-C - def sigint_handler(signal, frame): - warning_msg("Got Ctrl+C / SIGINT!") -- gdb.execute("set logging off") -+ gdb.execute("set logging enabled off") - peda.restore_user_command("all") - raise KeyboardInterrupt - signal.signal(signal.SIGINT, sigint_handler) diff --git a/dev-debug/peda/files/peda-1.2-python3_14.patch b/dev-debug/peda/files/peda-1.2-python3_14.patch deleted file mode 100644 index 5c1b6a9c2d9e..000000000000 --- a/dev-debug/peda/files/peda-1.2-python3_14.patch +++ /dev/null @@ -1,438 +0,0 @@ -From 8a7985f971b255931ea38ea83bbe736ec07f2e45 Mon Sep 17 00:00:00 2001 -From: punixcorn <ohyunwoods663@gmail.com> -Date: Thu, 4 Jul 2024 04:05:44 +0000 -Subject: [PATCH 1/6] SyntaxWarning: invalid escape sequence #177 fixed -Upstream: https://github.com/longld/peda/pull/179 - ---- a/peda.py -+++ b/peda.py -@@ -18,7 +18,6 @@ - import signal - import traceback - import codecs -- - # point to absolute path of peda.py - PEDAFILE = os.path.abspath(os.path.expanduser(__file__)) - if os.path.islink(PEDAFILE): -@@ -26,7 +25,7 @@ - sys.path.insert(0, os.path.dirname(PEDAFILE) + "/lib/") - - # Use six library to provide Python 2/3 compatibility --import six -+#import six - from six.moves import range - from six.moves import input - try: -@@ -35,7 +34,6 @@ - import pickle - - -- - from skeleton import * - from shellcode import * - from utils import * -@@ -148,10 +146,10 @@ def parse_and_eval(self, exp): - if "$"+r not in exp and "e"+r not in exp and "r"+r not in exp: - exp = exp.replace(r, "$%s" % r) - -- p = re.compile("(.*)\[(.*)\]") # DWORD PTR [esi+eax*1] -+ p = re.compile(r"(.*)\[(.*)\]") # DWORD PTR [esi+eax*1] - matches = p.search(exp) - if not matches: -- p = re.compile("(.*).s:(0x.*)") # DWORD PTR ds:0xdeadbeef -+ p = re.compile(r"(.*).s:(0x.*)") # DWORD PTR ds:0xdeadbeef - matches = p.search(exp) - - if matches: -@@ -370,12 +368,12 @@ def getfile(self): - result = None - out = self.execute_redirect('info files') - if out and '"' in out: -- p = re.compile(".*exec file:\s*`(.*)'") -+ p = re.compile(r".*exec file:\s*`(.*)'") - m = p.search(out) - if m: - result = m.group(1) - else: # stripped file, get symbol file -- p = re.compile("Symbols from \"([^\"]*)") -+ p = re.compile(r"Symbols from \"([^\"]*)") - m = p.search(out) - if m: - result = m.group(1) -@@ -547,11 +545,11 @@ def get_breakpoint(self, num): - - lines = out.splitlines()[1:] - # breakpoint regex -- p = re.compile("^(\d*)\s*(.*breakpoint)\s*(keep|del)\s*(y|n)\s*(0x[^ ]*)\s*(.*)") -+ p = re.compile(r"^(\d*)\s*(.*breakpoint)\s*(keep|del)\s*(y|n)\s*(0x[^ ]*)\s*(.*)") - m = p.match(lines[0]) - if not m: - # catchpoint/watchpoint regex -- p = re.compile("^(\d*)\s*(.*point)\s*(keep|del)\s*(y|n)\s*(.*)") -+ p = re.compile(r"^(\d*)\s*(.*point)\s*(keep|del)\s*(y|n)\s*(.*)") - m = p.match(lines[0]) - if not m: - return None -@@ -564,7 +562,7 @@ def get_breakpoint(self, num): - disp = True if disp == "keep" else False - enb = True if enb == "y" else False - addr = to_int(addr) -- m = re.match("in.*at(.*:\d*)", what) -+ m = re.match(r"in.*at(.*:\d*)", what) - if m: - what = m.group(1) - else: -@@ -593,7 +591,7 @@ def get_breakpoints(self): - - bplist = [] - for line in out.splitlines(): -- m = re.match("^(\d*).*", line) -+ m = re.match(r"^(\d*).*", line) - if m and to_int(m.group(1)): - bplist += [to_int(m.group(1))] - -@@ -625,7 +623,7 @@ def save_breakpoints(self, filename): - try: - fd = open(filename, "w") - for (num, type, disp, enb, addr, what, commands) in bplist: -- m = re.match("(.*)point", type) -+ m = re.match(r"(.*)point", type) - if m: - cmd = m.group(1).split()[-1] - else: -@@ -786,7 +784,7 @@ def prev_inst(self, address, count=1): - if len(lines) > count and "(bad)" not in " ".join(lines): - for line in lines[-count-1:-1]: - (addr, code) = line.split(":", 1) -- addr = re.search("(0x[^ ]*)", addr).group(1) -+ addr = re.search(r"(0x[^ ]*)", addr).group(1) - result += [(to_int(addr), code)] - return result - return None -@@ -807,7 +805,7 @@ def current_inst(self, address): - return None - - (addr, code) = out.split(":", 1) -- addr = re.search("(0x[^ ]*)", addr).group(1) -+ addr = re.search(r"(0x[^ ]*)", addr).group(1) - addr = to_int(addr) - code = code.strip() - -@@ -833,7 +831,7 @@ def next_inst(self, address, count=1): - lines = code.strip().splitlines() - for i in range(1, count+1): - (addr, code) = lines[i].split(":", 1) -- addr = re.search("(0x[^ ]*)", addr).group(1) -+ addr = re.search(r"(0x[^ ]*)", addr).group(1) - result += [(to_int(addr), code)] - return result - -@@ -913,9 +911,9 @@ def xrefs(self, search="", filename=None): - out = self.execute_redirect("x/i 0x%x" % addr) - if out: - line = out -- p = re.compile("\s*(0x[^ ]*).*?:\s*([^ ]*)\s*(.*)") -+ p = re.compile(r"\s*(0x[^ ]*).*?:\s*([^ ]*)\s*(.*)") - else: -- p = re.compile("(.*?)\s*<.*?>\s*([^ ]*)\s*(.*)") -+ p = re.compile(r"(.*?)\s*<.*?>\s*([^ ]*)\s*(.*)") - - m = p.search(line) - if m: -@@ -934,7 +932,7 @@ def _get_function_args_32(self, code, argc=None): - """ - if not argc: - argc = 0 -- p = re.compile(".*mov.*\[esp(.*)\],") -+ p = re.compile(r".*mov.*\[esp(.*)\],") - matches = p.findall(code) - if matches: - l = len(matches) -@@ -966,11 +964,11 @@ def _get_function_args_64(self, code, argc=None): - - # just retrieve max 6 args - arg_order = ["rdi", "rsi", "rdx", "rcx", "r8", "r9"] -- p = re.compile(":\s*([^ ]*)\s*(.*),") -+ p = re.compile(r":\s*([^ ]*)\s*(.*),") - matches = p.findall(code) - regs = [r for (_, r) in matches] - p = re.compile(("di|si|dx|cx|r8|r9")) -- m = p.findall(" ".join(regs)) -+ m = p.findall(r" ".join(regs)) - m = list(set(m)) # uniqify - argc = 0 - if "si" in m and "di" not in m: # dirty fix -@@ -1106,14 +1104,14 @@ def stepuntil(self, inst, mapname=None, depth=None): - current_instruction = "End of execution" - break - -- p = re.compile(".*?(0x[^ :]*)") -+ p = re.compile(r".*?(0x[^ :]*)") - addr = p.search(current_instruction).group(1) - addr = to_int(addr) - if addr is None: - break - -- #p = re.compile(".*?:\s*([^ ]*)") -- p = re.compile(".*?:\s*(.*)") -+ #p = re.compile(r".*?:\s*([^ ]*)") -+ p = re.compile(r".*?:\s*(.*)") - code = p.match(current_instruction).group(1) - found = 0 - for i in inst.replace(",", " ").split(): -@@ -1220,10 +1218,10 @@ def eval_target(self, inst): - inst = inst.strip() - opcode = inst.split(":\t")[-1].split()[0] - # this regex includes x86_64 RIP relateive address reference -- p = re.compile(".*?:\s*[^ ]*\s*(.* PTR ).*(0x[^ ]*)") -+ p = re.compile(r".*?:\s*[^ ]*\s*(.* PTR ).*(0x[^ ]*)") - m = p.search(inst) - if not m: -- p = re.compile(".*?:\s.*\s(0x[^ ]*|\w+)") -+ p = re.compile(r".*?:\s.*\s(0x[^ ]*|\w+)") - m = p.search(inst) - if m: - target = m.group(1) -@@ -1232,7 +1230,7 @@ def eval_target(self, inst): - target = None - else: - if "]" in m.group(2): # e.g DWORD PTR [ebx+0xc] -- p = re.compile(".*?:\s*[^ ]*\s*(.* PTR ).*\[(.*)\]") -+ p = re.compile(r".*?:\s*[^ ]*\s*(.* PTR ).*\[(.*)\]") - m = p.search(inst) - target = self.parse_and_eval("%s[%s]" % (m.group(1), m.group(2).strip())) - -@@ -1427,7 +1425,7 @@ def _get_offline_maps(): - def _get_allmaps_osx(pid, remote=False): - maps = [] - #_DATA 00007fff77975000-00007fff77976000 [ 4K] rw-/rw- SM=COW /usr/lib/system/libremovefile.dylib -- pattern = re.compile("([^\n]*)\s* ([0-9a-f][^-\s]*)-([^\s]*) \[.*\]\s([^/]*).* (.*)") -+ pattern = re.compile(r"([^\n]*)\s* ([0-9a-f][^-\s]*)-([^\s]*) \[.*\]\s([^/]*).* (.*)") - - if remote: # remote target, not yet supported - return maps -@@ -1452,7 +1450,7 @@ def _get_allmaps_freebsd(pid, remote=False): - maps = [] - mpath = "/proc/%s/map" % pid - # 0x8048000 0x8049000 1 0 0xc36afdd0 r-x 1 0 0x1000 COW NC vnode /path/to/file NCH -1 -- pattern = re.compile("0x([0-9a-f]*) 0x([0-9a-f]*)(?: [^ ]*){3} ([rwx-]*)(?: [^ ]*){6} ([^ ]*)") -+ pattern = re.compile(r"0x([0-9a-f]*) 0x([0-9a-f]*)(?: [^ ]*){3} ([rwx-]*)(?: [^ ]*){6} ([^ ]*)") - - if remote: # remote target, not yet supported - return maps -@@ -1479,7 +1477,7 @@ def _get_allmaps_linux(pid, remote=False): - maps = [] - mpath = "/proc/%s/maps" % pid - #00400000-0040b000 r-xp 00000000 08:02 538840 /path/to/file -- pattern = re.compile("([0-9a-f]*)-([0-9a-f]*) ([rwxps-]*)(?: [^ ]*){3} *(.*)") -+ pattern = re.compile(r"([0-9a-f]*)-([0-9a-f]*) ([rwxps-]*)(?: [^ ]*){3} *(.*)") - - if remote: # remote target - tmp = tmpfile() -@@ -2093,7 +2091,7 @@ def examine_data(value, bits=32): - if value >= start and value < end: - if type == "code": - out = self.get_disasm(value) -- p = re.compile(".*?0x[^ ]*?\s(.*)") -+ p = re.compile(r".*?0x[^ ]*?\s(.*)") - m = p.search(out) - result = (to_hex(value), "code", m.group(1)) - else: # rodata address -@@ -2111,7 +2109,7 @@ def examine_data(value, bits=32): - out = examine_data(value, bits) - result = (to_hex(value), "rodata", out.split(":", 1)[1].strip()) - else: -- p = re.compile(".*?0x[^ ]*?\s(.*)") -+ p = re.compile(r".*?0x[^ ]*?\s(.*)") - m = p.search(out) - result = (to_hex(value), "code", m.group(1)) - -@@ -2211,7 +2209,7 @@ def elfentry(self): - - entry address (Int) - """ - out = self.execute_redirect("info files") -- p = re.compile("Entry point: ([^\s]*)") -+ p = re.compile(r"Entry point: ([^\s]*)") - if out: - m = p.search(out) - if m: -@@ -2239,7 +2237,7 @@ def elfheader(self, name=None): - if not out: - return {} - -- p = re.compile("\s*(0x[^-]*)->(0x[^ ]*) at (0x[^:]*):\s*([^ ]*)\s*(.*)") -+ p = re.compile(r"\s*(0x[^-]*)->(0x[^ ]*) at (0x[^:]*):\s*([^ ]*)\s*(.*)") - matches = p.findall(out) - - for (start, end, offset, hname, attr) in matches: -@@ -2313,7 +2311,7 @@ def elfsymbols(self, pattern=None): - symname += "@plt" - out = self.execute_redirect("info functions %s" % symname) - if not out: continue -- m = re.findall(".*(0x[^ ]*)\s*%s" % re.escape(symname), out) -+ m = re.findall(r".*(0x[^ ]*)\s*%s" % re.escape(symname), out) - for addr in m: - addr = to_int(addr) - if self.is_address(addr, binmap): -@@ -2390,7 +2388,7 @@ def main_entry(self): - if refs: - inst = self.prev_inst(refs[0][0]) - if inst: -- addr = re.search(".*(0x.*)", inst[0][1]) -+ addr = re.search(r".*(0x.*)", inst[0][1]) - if addr: - return to_int(addr.group(1)) - return None -@@ -2413,7 +2411,7 @@ def readelf_header(self, filename, name=None): - out = execute_external_command("%s -W -S %s" % (config.READELF, filename)) - if not out: - return {} -- p = re.compile(".*\[.*\] (\.[^ ]*) [^0-9]* ([^ ]*) [^ ]* ([^ ]*)(.*)") -+ p = re.compile(r".*\[.*\] (\.[^ ]*) [^0-9]* ([^ ]*) [^ ]* ([^ ]*)(.*)") - matches = p.findall(out) - if not matches: - return result -@@ -2471,7 +2469,7 @@ def _elfheader_solib_all(): - if not out: - return None - -- p = re.compile("[^\n]*\s*(0x[^ ]*) - (0x[^ ]*) is (\.[^ ]*) in (.*)") -+ p = re.compile(r"[^\n]*\s*(0x[^ ]*) - (0x[^ ]*) is (\.[^ ]*) in (.*)") - soheaders = p.findall(out) - - result = [] -@@ -2678,7 +2676,7 @@ def decode_hex_escape(str_): - blen = gadget[-1][0] - gadget[0][0] + 1 - bytes = v[:2*blen] - asmcode_rs = "; ".join([c for _, c in gadget]) -- if re.search(re.escape(asmcode).replace("\ ",".*").replace("\?",".*"), asmcode_rs)\ -+ if re.search(re.escape(asmcode).replace(r"\ ",".*").replace(r"\?",".*"), asmcode_rs)\ - and a not in result: - result[a] = (bytes, asmcode_rs) - result = list(result.items()) -@@ -2688,7 +2686,7 @@ def decode_hex_escape(str_): - asmcode = self.execute_redirect("disassemble 0x%x, 0x%x" % (a, a+(len(v)//2))) - if asmcode: - asmcode = "\n".join(asmcode.splitlines()[1:-1]) -- matches = re.findall(".*:([^\n]*)", asmcode) -+ matches = re.findall(r".*:([^\n]*)", asmcode) - result += [(a, (v, ";".join(matches).strip()))] - - return result -@@ -2829,7 +2827,7 @@ def search_jmpcall(self, start, end, regname=None): - if regname is None: - regname = "" - regname = regname.lower() -- pattern = re.compile(b'|'.join(JMPCALL).replace(b' ', b'\ ')) -+ pattern = re.compile(r'|'.join(JMPCALL).replace(r' ', r'\ ')) - mem = self.dumpmem(start, end) - found = pattern.finditer(mem) - (arch, bits) = self.getarch() -@@ -3411,7 +3409,7 @@ def xprint(self, *arg): - """ - text = "" - exp = " ".join(list(arg)) -- m = re.search(".*\[(.*)\]|.*?s:(0x[^ ]*)", exp) -+ m = re.search(r".*\[(.*)\]|.*?s:(0x[^ ]*)", exp) - if m: - addr = peda.parse_and_eval(m.group(1)) - if to_int(addr): -@@ -3516,7 +3514,7 @@ def procinfo(self, *arg): - fdlist = os.listdir("/proc/%d/fd" % pid) - for fd in fdlist: - rpath = os.readlink("/proc/%d/fd/%s" % (pid, fd)) -- sock = re.search("socket:\[(.*)\]", rpath) -+ sock = re.search(r"socket:\[(.*)\]", rpath) - if sock: - spath = execute_external_command("netstat -aen | grep %s" % sock.group(1)) - if spath: -@@ -3526,11 +3524,11 @@ def procinfo(self, *arg): - # uid/gid, pid, ppid - info["pid"] = pid - status = open("/proc/%d/status" % pid).read() -- ppid = re.search("PPid:\s*([^\s]*)", status).group(1) -+ ppid = re.search(r"PPid:\s*([^\s]*)", status).group(1) - info["ppid"] = to_int(ppid) if ppid else -1 -- uid = re.search("Uid:\s*([^\n]*)", status).group(1) -+ uid = re.search(r"Uid:\s*([^\n]*)", status).group(1) - info["uid"] = [to_int(id) for id in uid.split()] -- gid = re.search("Gid:\s*([^\n]*)", status).group(1) -+ gid = re.search(r"Gid:\s*([^\n]*)", status).group(1) - info["gid"] = [to_int(id) for id in gid.split()] - - for opt in options: -@@ -4122,7 +4120,7 @@ def traceinst(self, *arg): - prev_depth = peda.backtrace_depth(peda.getreg("sp")) - logfd = open(logname, "w") - -- p = re.compile(".*?:\s*[^ ]*\s*([^,]*),(.*)") -+ p = re.compile(r".*?:\s*[^ ]*\s*([^,]*),(.*)") - while count: - result = peda.stepuntil(",".join(instlist), mapname, prev_depth) - if result is None: -@@ -4134,7 +4132,7 @@ def traceinst(self, *arg): - - # special case for JUMP inst - prev_code = "" -- if re.search("j[^m]", code.split(":\t")[-1].split()[0]): -+ if re.search(r"j[^m]", code.split(":\t")[-1].split()[0]): - prev_insts = peda.prev_inst(peda.getreg("pc")) - if prev_insts: - prev_code = "0x%x:%s" % prev_insts[0] -@@ -4143,7 +4141,7 @@ def traceinst(self, *arg): - text = "%s%s%s" % (" "*(prev_depth-1), " dep:%02d " % (prev_depth-1), code.strip()) - msg(text, teefd=logfd) - -- if re.search("call", code.split(":\t")[-1].split()[0]): -+ if re.search(r"call", code.split(":\t")[-1].split()[0]): - args = peda.get_function_args() - if args: - for (i, a) in enumerate(args): - -From 6b185589187a4ca7271be518780cfddbabb36b27 Mon Sep 17 00:00:00 2001 -From: potato <103060805+punixcorn@users.noreply.github.com> -Date: Sun, 7 Jul 2024 16:34:42 +0000 -Subject: [PATCH 5/6] fix invalid escape sequence errors - -in lib/utils.py and lib/nasm.py ---- a/lib/nasm.py -+++ b/lib/nasm.py -@@ -82,7 +82,7 @@ def nasm2shellcode(asmcode): - return "" - - shellcode = [] -- pattern = re.compile("([0-9A-F]{8})\s*([^\s]*)\s*(.*)") -+ pattern = re.compile(r"([0-9A-F]{8})\s*([^\s]*)\s*(.*)") - - matches = pattern.findall(asmcode) - for line in asmcode.splitlines(): ---- a/lib/utils.py -+++ b/lib/utils.py -@@ -523,7 +523,7 @@ def format_disasm_code(code, nearby=None): - result += line + "\n" - else: - color = style = None -- m = re.search(".*(0x[^ ]*).*:\s*([^ ]*)", line) -+ m = re.search(r".*(0x[^ ]*).*:\s*([^ ]*)", line) - if not m: # failed to parse - result += line + "\n" - continue -@@ -540,7 +540,7 @@ def format_disasm_code(code, nearby=None): - break - - prefix = line.split(":\t")[0] -- addr = re.search("(0x[^\s]*)", prefix) -+ addr = re.search(r"(0x[^\s]*)", prefix) - if addr: - addr = to_int(addr.group(1)) - else: -@@ -589,7 +589,7 @@ def cyclic_pattern_charset(charset_type=None): - charset[2] = "sn()" + charset[2] - - if charset_type == 2: # maximum type -- charset += ['!"#$%&\()*+,-./:;<=>?@[]^_{|}~'] # string.punctuation -+ charset += [r'!"#$%&\()*+,-./:;<=>?@[]^_{|}~'] # string.punctuation - - mixed_charset = mixed = '' - k = 0 - diff --git a/dev-debug/peda/metadata.xml b/dev-debug/peda/metadata.xml deleted file mode 100644 index 5984318cfe25..000000000000 --- a/dev-debug/peda/metadata.xml +++ /dev/null @@ -1,13 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person" proxied="yes"> - <email>mario.haustein@hrz.tu-chemnitz.de</email> - <name>Mario Haustein</name> - </maintainer> - <maintainer type="project" proxied="proxy"> - <email>proxy-maint@gentoo.org</email> - <name>Proxy Maintainers</name> - </maintainer> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/dev-debug/peda/peda-1.2-r1.ebuild b/dev-debug/peda/peda-1.2-r1.ebuild deleted file mode 100644 index 745417c6dfd7..000000000000 --- a/dev-debug/peda/peda-1.2-r1.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{13..14} ) - -inherit python-single-r1 wrapper - -DESCRIPTION="Python Exploit Development Assistance for GDB" -HOMEPAGE="https://github.com/longld/peda" - -if [[ ${PV} == "9999" ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/longld/peda" -else - SRC_URI="https://github.com/longld/peda/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="amd64 x86" -fi - -LICENSE="CC-BY-NC-SA-3.0" -SLOT="0" - -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -RDEPEND=" - ${PYTHON_DEPS} - $(python_gen_cond_dep ' - dev-debug/gdb[python,${PYTHON_SINGLE_USEDEP}] - dev-python/six[${PYTHON_USEDEP}] - ') -" - -PATCHES=( - "${FILESDIR}/${P}-gdb_logging.patch" - "${FILESDIR}/${P}-python3_14.patch" -) - -src_prepare() { - default - - # File was remove in upstream patch ${P}-python3_14.patch. To keep the - # patch file size low, we remove this file directly instead via the patch. - rm lib/six.py || die -} - -src_install() { - insinto /usr/share/${PN} - doins -r lib/ *.py - - python_optimize "${ED}"/usr/share/${PN} - - make_wrapper "gdb-peda" \ - "gdb -x \"${EPREFIX}/usr/share/${PN}/peda.py\"" || die - - dodoc README{,.md} -} - -pkg_postinst() { - einfo "\nUsage:" - einfo " ~$ gdb-peda <program>\n" -} diff --git a/dev-debug/peda/peda-9999.ebuild b/dev-debug/peda/peda-9999.ebuild deleted file mode 100644 index 25cd9d7b3489..000000000000 --- a/dev-debug/peda/peda-9999.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{13..14} ) - -inherit python-single-r1 wrapper - -DESCRIPTION="Python Exploit Development Assistance for GDB" -HOMEPAGE="https://github.com/longld/peda" - -if [[ ${PV} == "9999" ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/longld/peda" -else - SRC_URI="https://github.com/longld/peda/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~x86" -fi - -LICENSE="CC-BY-NC-SA-3.0" -SLOT="0" - -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -RDEPEND=" - ${PYTHON_DEPS} - $(python_gen_cond_dep ' - dev-debug/gdb[python,${PYTHON_SINGLE_USEDEP}] - dev-python/six[${PYTHON_USEDEP}] - ') -" - -src_install() { - insinto /usr/share/${PN} - doins -r lib/ *.py - - python_optimize "${ED}"/usr/share/${PN} - - make_wrapper "gdb-peda" \ - "gdb -x \"${EPREFIX}/usr/share/${PN}/peda.py\"" || die - - dodoc README{,.md} -} - -pkg_postinst() { - einfo "\nUsage:" - einfo " ~$ gdb-peda <program>\n" -} diff --git a/dev-debug/pwndbg/Manifest b/dev-debug/pwndbg/Manifest deleted file mode 100644 index eb71fbcd948a..000000000000 --- a/dev-debug/pwndbg/Manifest +++ /dev/null @@ -1,4 +0,0 @@ -DIST pwndbg-20250418.tar.gz 9022280 BLAKE2B 8cc3cede9abc024e485737c0c38c525456e489eb12beb908bf9bd44fbb33ed1b27a206237452b7bc741fc569a61874cc134725f90fd04d6e46723704a9fb466e SHA512 34afa5ee756f405f662f494d47a0cc324ad193f9083ef371c9946681ec58e0ce6c1a5097b3f3b88ab58beb7941317e9a6a0dc0ee643834fc90ccac2f07576de7 -DIST pwndbg-20250530.tar.gz 11924779 BLAKE2B ad372272008d3227c4ba6668745532602242ecfb0359bc10368cc55e8a9d443d923c39e3130f615b9d80c2d8a18e40837965d02dcf034f583f5ce54e398aa6b4 SHA512 10bb330f8a5c15eb82ab1f4767dd67146fa8dfe2b8b1f62190f46cdc54fbe1109d9e987c4f7848ea3e9844c1be6cb78f9e74e1ca59d1620b802d0a1d789bd290 -DIST pwndbg-20251010.tar.gz 24007425 BLAKE2B 7213c974d9219dbac7222bff60b5ba92f7c49be57844deda47ad0ef316c1e11516d0f5facf0596d8cabb6ccd409f0f95ba024f7fa218f965eae206913794fa28 SHA512 21ae4b9538cb0109d6a7ce3269deec6436e6316459fd31cf025f5d23167155c0171a9a5007feea95123df8375dc13c9c70e2b79029c561353566e31b16e4a351 -DIST pwndbg-20251020.tar.gz 24013152 BLAKE2B 50de4937ee7f13330d76f110b84853445c8600e0b5da78be581341c00c6e22f05738e3490b6d91d5bf2e8d91d37b47fd1812dde402c717e8e7833dda4d583390 SHA512 0c3137962e6df4e67601e72443bf67a9bb9400cad0ece0736ccf06394b4080c3c27f5755cb63a1e46d8be9504f0a62aa9c15c831817c2f6046fea0e880c68b6f diff --git a/dev-debug/pwndbg/files/pwndbg-20250418-no-docs.patch b/dev-debug/pwndbg/files/pwndbg-20250418-no-docs.patch deleted file mode 100644 index c456c1384818..000000000000 --- a/dev-debug/pwndbg/files/pwndbg-20250418-no-docs.patch +++ /dev/null @@ -1,22 +0,0 @@ -commit 73685a31c372d44ea90f44cdddeea23d135f1c67 -Author: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de> -Date: Sun May 11 16:25:56 2025 +0200 -Upstream: https://github.com/pwndbg/pwndbg/pull/2973 -Bug: https://bugs.gentoo.org/954386 - - Don't install `docs/` directory into site packages directory - ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -126,9 +126,11 @@ builtins-ignorelist = [ - - [tool.hatch.build.targets.sdist] - include = ["pwndbg"] -+exclude = ["docs"] - - [tool.hatch.build.targets.wheel] - include = ["pwndbg"] -+exclude = ["docs"] - - [build-system] - requires = ["hatchling"] diff --git a/dev-debug/pwndbg/metadata.xml b/dev-debug/pwndbg/metadata.xml deleted file mode 100644 index 63265e38136e..000000000000 --- a/dev-debug/pwndbg/metadata.xml +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person" proxied="yes"> - <email>mario.haustein@hrz.tu-chemnitz.de</email> - <name>Mario Haustein</name> - </maintainer> - <maintainer type="person"> - <email>sam@gentoo.org</email> - <name>Sam James</name> - </maintainer> - <longdescription> - pwndbg is a GDB plug-in that makes debugging with GDB suck less, with a - focus on features needed by low-level software developers, hardware - hackers, reverse-engineers and exploit developers. - </longdescription> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/dev-debug/pwndbg/pwndbg-20250418-r1.ebuild b/dev-debug/pwndbg/pwndbg-20250418-r1.ebuild deleted file mode 100644 index 6d1a95f91eef..000000000000 --- a/dev-debug/pwndbg/pwndbg-20250418-r1.ebuild +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=hatchling -DISTUTILS_SINGLE_IMPL=1 -PYTHON_COMPAT=( python3_{13..14} ) - -inherit distutils-r1 wrapper - -DESCRIPTION="A GDB plug-in that makes debugging with GDB suck less" -HOMEPAGE="https://github.com/pwndbg/pwndbg" - -if [[ ${PV} == "99999999" ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/pwndbg/pwndbg" -else - MY_PV="${PV:0:4}.${PV:4:2}.${PV:6:2}" - SRC_URI="https://github.com/pwndbg/pwndbg/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="amd64 ~arm64 x86" - S="${WORKDIR}/${PN}-${MY_PV}" -fi - -LICENSE="MIT" -SLOT="0" - -RDEPEND=" - dev-debug/gdb[python,${PYTHON_SINGLE_USEDEP}] - ~dev-python/gdb-pt-dump-0.0.0_p20240401[${PYTHON_SINGLE_USEDEP}] - $(python_gen_cond_dep ' - >=dev-libs/capstone-5.0.3[python,${PYTHON_USEDEP}] - >=dev-python/psutil-5.9.8[${PYTHON_USEDEP}] - >=dev-python/pycparser-2.22[${PYTHON_USEDEP}] - >=dev-python/pyelftools-0.29[${PYTHON_USEDEP}] - >=dev-python/pygments-2.18.0[${PYTHON_USEDEP}] - >=dev-python/requests-2.32.3[${PYTHON_USEDEP}] - >=dev-python/rich-13.7.1[${PYTHON_USEDEP}] - >=dev-python/sortedcontainers-2.4.0[${PYTHON_USEDEP}] - >=dev-python/tabulate-0.9.0[${PYTHON_USEDEP}] - >=dev-python/typing-extensions-4.12.0[${PYTHON_USEDEP}] - >=dev-util/pwntools-4.14.0[${PYTHON_USEDEP}] - >=dev-util/ROPgadget-7.3[${PYTHON_USEDEP}] - >=dev-util/unicorn-2.1.3[python,${PYTHON_USEDEP}] - ') -" - -# Tests are architectur-specific (precompiled binaries) -RESTRICT="test" - -PATCHES=( - "${FILESDIR}/${P}-no-docs.patch" -) - -src_install() { - distutils-r1_src_install - - insinto /usr/share/${PN} - doins gdbinit.py - - # Signal pwndbg not to create it's own python venv (Bug #918705). - # See: https://github.com/pwndbg/pwndbg/commit/139b7542cd9567eaff32bd713df971b6ac5b81de - touch "${ED}/usr/share/${PN}/.skip-venv" || die - - python_optimize "${ED}"/usr/share/${PN} - - make_wrapper "pwndbg" \ - "gdb -x \"${EPREFIX}/usr/share/${PN}/gdbinit.py\"" || die - - dodoc {README,DEVELOPING,FEATURES}.md - dodoc -r docs -} - -pkg_postinst() { - if [[ -z "${REPLACING_VERSIONS}" ]]; then - einfo "\nUsage:" - einfo " ~$ pwndbg <program>" - ewarn "\nWARNING!!!" - ewarn "Some pwndbg commands only works with libc debug symbols.\n" - ewarn "See also:" - ewarn " * https://github.com/pentoo/pentoo-overlay/issues/521#issuecomment-548975884" - ewarn " * https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html" - ewarn " * https://wiki.gentoo.org/wiki/Debugging" - fi -} diff --git a/dev-debug/pwndbg/pwndbg-20250530-r3.ebuild b/dev-debug/pwndbg/pwndbg-20250530-r3.ebuild deleted file mode 100644 index b2cfef919c06..000000000000 --- a/dev-debug/pwndbg/pwndbg-20250530-r3.ebuild +++ /dev/null @@ -1,81 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=hatchling -DISTUTILS_SINGLE_IMPL=1 -PYTHON_COMPAT=( python3_{13..14} ) - -inherit distutils-r1 wrapper - -DESCRIPTION="A GDB plug-in that makes debugging with GDB suck less" -HOMEPAGE="https://github.com/pwndbg/pwndbg" - -if [[ ${PV} == "99999999" ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/pwndbg/pwndbg" -else - MY_PV="${PV:0:4}.${PV:4:2}.${PV:6:2}" - SRC_URI="https://github.com/pwndbg/pwndbg/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm64 ~x86" - S="${WORKDIR}/${PN}-${MY_PV}" -fi - -LICENSE="MIT" -SLOT="0" - -RDEPEND=" - dev-debug/gdb[python,${PYTHON_SINGLE_USEDEP}] - ~dev-python/gdb-pt-dump-0.0.0_p20240401[${PYTHON_SINGLE_USEDEP}] - $(python_gen_cond_dep ' - ~dev-libs/capstone-6.0.0_alpha4[python,${PYTHON_USEDEP}] - >=dev-python/psutil-6.1.1[${PYTHON_USEDEP}] - >=dev-python/pycparser-2.22[${PYTHON_USEDEP}] - >=dev-python/pyelftools-0.29[${PYTHON_USEDEP}] - >=dev-python/pygments-2.18.0[${PYTHON_USEDEP}] - >=dev-python/requests-2.32.3[${PYTHON_USEDEP}] - >=dev-python/rich-13.7.1[${PYTHON_USEDEP}] - >=dev-python/sortedcontainers-2.4.0[${PYTHON_USEDEP}] - >=dev-python/tabulate-0.9.0[${PYTHON_USEDEP}] - >=dev-python/typing-extensions-4.12.0[${PYTHON_USEDEP}] - >=dev-util/pwntools-4.14.0[${PYTHON_USEDEP}] - >=dev-util/ROPgadget-7.3[${PYTHON_USEDEP}] - >=dev-util/unicorn-2.1.3[python,${PYTHON_USEDEP}] - ') -" - -# Tests are architectur-specific (precompiled binaries) -RESTRICT="test" - -src_install() { - distutils-r1_src_install - - insinto /usr/share/${PN} - doins gdbinit.py - - # Signal pwndbg not to create it's own python venv (Bug #918705). - # See: https://github.com/pwndbg/pwndbg/commit/139b7542cd9567eaff32bd713df971b6ac5b81de - touch "${ED}/usr/share/${PN}/.skip-venv" || die - - python_optimize "${ED}"/usr/share/${PN} - - make_wrapper "pwndbg" \ - "gdb -x \"${EPREFIX}/usr/share/${PN}/gdbinit.py\"" || die - - dodoc README.md - dodoc -r docs -} - -pkg_postinst() { - if [[ -z "${REPLACING_VERSIONS}" ]]; then - einfo "\nUsage:" - einfo " ~$ pwndbg <program>" - ewarn "\nWARNING!!!" - ewarn "Some pwndbg commands only works with libc debug symbols.\n" - ewarn "See also:" - ewarn " * https://github.com/pentoo/pentoo-overlay/issues/521#issuecomment-548975884" - ewarn " * https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html" - ewarn " * https://wiki.gentoo.org/wiki/Debugging" - fi -} diff --git a/dev-debug/pwndbg/pwndbg-20251010-r3.ebuild b/dev-debug/pwndbg/pwndbg-20251010-r3.ebuild deleted file mode 100644 index 2767f63e6fdc..000000000000 --- a/dev-debug/pwndbg/pwndbg-20251010-r3.ebuild +++ /dev/null @@ -1,74 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=hatchling -DISTUTILS_SINGLE_IMPL=1 -PYTHON_COMPAT=( python3_{13..14} ) - -inherit distutils-r1 - -DESCRIPTION="A GDB plug-in that makes debugging with GDB suck less" -HOMEPAGE="https://github.com/pwndbg/pwndbg" - -if [[ ${PV} == "99999999" ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/pwndbg/pwndbg" -else - MY_PV="${PV:0:4}.${PV:4:2}.${PV:6:2}" - SRC_URI="https://github.com/pwndbg/pwndbg/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm64 ~x86" - S="${WORKDIR}/${PN}-${MY_PV}" -fi - -LICENSE="MIT" -SLOT="0" - -RDEPEND=" - dev-debug/gdb[python,${PYTHON_SINGLE_USEDEP}] - ~dev-python/gdb-pt-dump-0.0.0_p20240401[${PYTHON_SINGLE_USEDEP}] - $(python_gen_cond_dep ' - >=dev-libs/capstone-6.0.0_alpha5[python,${PYTHON_USEDEP}] - >=dev-python/psutil-7.0.0[${PYTHON_USEDEP}] - >=dev-python/pycparser-2.23[${PYTHON_USEDEP}] - >=dev-python/pyelftools-0.32[${PYTHON_USEDEP}] - >=dev-python/pygments-2.19.2[${PYTHON_USEDEP}] - >=dev-python/requests-2.32.5[${PYTHON_USEDEP}] - >=dev-python/rich-14.1.0[${PYTHON_USEDEP}] - >=dev-python/sortedcontainers-2.4.0[${PYTHON_USEDEP}] - >=dev-python/tabulate-0.9.0[${PYTHON_USEDEP}] - >=dev-python/typing-extensions-4.15.0[${PYTHON_USEDEP}] - >=dev-util/pwntools-4.14.1[${PYTHON_USEDEP}] - >=dev-util/ROPgadget-7.6[${PYTHON_USEDEP}] - >=dev-util/unicorn-2.1.4[python,${PYTHON_USEDEP}] - ') -" - -# Tests are architectur-specific (precompiled binaries) -RESTRICT="test" - -src_install() { - distutils-r1_src_install - - insinto /usr/share/${PN} - doins gdbinit.py - - python_optimize "${ED}"/usr/share/${PN} - - dodoc README.md - dodoc -r docs -} - -pkg_postinst() { - if [[ -z "${REPLACING_VERSIONS}" ]]; then - einfo "\nUsage:" - einfo " ~$ pwndbg <program>" - ewarn "\nWARNING!!!" - ewarn "Some pwndbg commands only works with libc debug symbols.\n" - ewarn "See also:" - ewarn " * https://github.com/pentoo/pentoo-overlay/issues/521#issuecomment-548975884" - ewarn " * https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html" - ewarn " * https://wiki.gentoo.org/wiki/Debugging" - fi -} diff --git a/dev-debug/pwndbg/pwndbg-20251020-r3.ebuild b/dev-debug/pwndbg/pwndbg-20251020-r3.ebuild deleted file mode 100644 index 2767f63e6fdc..000000000000 --- a/dev-debug/pwndbg/pwndbg-20251020-r3.ebuild +++ /dev/null @@ -1,74 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=hatchling -DISTUTILS_SINGLE_IMPL=1 -PYTHON_COMPAT=( python3_{13..14} ) - -inherit distutils-r1 - -DESCRIPTION="A GDB plug-in that makes debugging with GDB suck less" -HOMEPAGE="https://github.com/pwndbg/pwndbg" - -if [[ ${PV} == "99999999" ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/pwndbg/pwndbg" -else - MY_PV="${PV:0:4}.${PV:4:2}.${PV:6:2}" - SRC_URI="https://github.com/pwndbg/pwndbg/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm64 ~x86" - S="${WORKDIR}/${PN}-${MY_PV}" -fi - -LICENSE="MIT" -SLOT="0" - -RDEPEND=" - dev-debug/gdb[python,${PYTHON_SINGLE_USEDEP}] - ~dev-python/gdb-pt-dump-0.0.0_p20240401[${PYTHON_SINGLE_USEDEP}] - $(python_gen_cond_dep ' - >=dev-libs/capstone-6.0.0_alpha5[python,${PYTHON_USEDEP}] - >=dev-python/psutil-7.0.0[${PYTHON_USEDEP}] - >=dev-python/pycparser-2.23[${PYTHON_USEDEP}] - >=dev-python/pyelftools-0.32[${PYTHON_USEDEP}] - >=dev-python/pygments-2.19.2[${PYTHON_USEDEP}] - >=dev-python/requests-2.32.5[${PYTHON_USEDEP}] - >=dev-python/rich-14.1.0[${PYTHON_USEDEP}] - >=dev-python/sortedcontainers-2.4.0[${PYTHON_USEDEP}] - >=dev-python/tabulate-0.9.0[${PYTHON_USEDEP}] - >=dev-python/typing-extensions-4.15.0[${PYTHON_USEDEP}] - >=dev-util/pwntools-4.14.1[${PYTHON_USEDEP}] - >=dev-util/ROPgadget-7.6[${PYTHON_USEDEP}] - >=dev-util/unicorn-2.1.4[python,${PYTHON_USEDEP}] - ') -" - -# Tests are architectur-specific (precompiled binaries) -RESTRICT="test" - -src_install() { - distutils-r1_src_install - - insinto /usr/share/${PN} - doins gdbinit.py - - python_optimize "${ED}"/usr/share/${PN} - - dodoc README.md - dodoc -r docs -} - -pkg_postinst() { - if [[ -z "${REPLACING_VERSIONS}" ]]; then - einfo "\nUsage:" - einfo " ~$ pwndbg <program>" - ewarn "\nWARNING!!!" - ewarn "Some pwndbg commands only works with libc debug symbols.\n" - ewarn "See also:" - ewarn " * https://github.com/pentoo/pentoo-overlay/issues/521#issuecomment-548975884" - ewarn " * https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html" - ewarn " * https://wiki.gentoo.org/wiki/Debugging" - fi -} diff --git a/dev-debug/pwndbg/pwndbg-99999999.ebuild b/dev-debug/pwndbg/pwndbg-99999999.ebuild deleted file mode 100644 index 2767f63e6fdc..000000000000 --- a/dev-debug/pwndbg/pwndbg-99999999.ebuild +++ /dev/null @@ -1,74 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=hatchling -DISTUTILS_SINGLE_IMPL=1 -PYTHON_COMPAT=( python3_{13..14} ) - -inherit distutils-r1 - -DESCRIPTION="A GDB plug-in that makes debugging with GDB suck less" -HOMEPAGE="https://github.com/pwndbg/pwndbg" - -if [[ ${PV} == "99999999" ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/pwndbg/pwndbg" -else - MY_PV="${PV:0:4}.${PV:4:2}.${PV:6:2}" - SRC_URI="https://github.com/pwndbg/pwndbg/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm64 ~x86" - S="${WORKDIR}/${PN}-${MY_PV}" -fi - -LICENSE="MIT" -SLOT="0" - -RDEPEND=" - dev-debug/gdb[python,${PYTHON_SINGLE_USEDEP}] - ~dev-python/gdb-pt-dump-0.0.0_p20240401[${PYTHON_SINGLE_USEDEP}] - $(python_gen_cond_dep ' - >=dev-libs/capstone-6.0.0_alpha5[python,${PYTHON_USEDEP}] - >=dev-python/psutil-7.0.0[${PYTHON_USEDEP}] - >=dev-python/pycparser-2.23[${PYTHON_USEDEP}] - >=dev-python/pyelftools-0.32[${PYTHON_USEDEP}] - >=dev-python/pygments-2.19.2[${PYTHON_USEDEP}] - >=dev-python/requests-2.32.5[${PYTHON_USEDEP}] - >=dev-python/rich-14.1.0[${PYTHON_USEDEP}] - >=dev-python/sortedcontainers-2.4.0[${PYTHON_USEDEP}] - >=dev-python/tabulate-0.9.0[${PYTHON_USEDEP}] - >=dev-python/typing-extensions-4.15.0[${PYTHON_USEDEP}] - >=dev-util/pwntools-4.14.1[${PYTHON_USEDEP}] - >=dev-util/ROPgadget-7.6[${PYTHON_USEDEP}] - >=dev-util/unicorn-2.1.4[python,${PYTHON_USEDEP}] - ') -" - -# Tests are architectur-specific (precompiled binaries) -RESTRICT="test" - -src_install() { - distutils-r1_src_install - - insinto /usr/share/${PN} - doins gdbinit.py - - python_optimize "${ED}"/usr/share/${PN} - - dodoc README.md - dodoc -r docs -} - -pkg_postinst() { - if [[ -z "${REPLACING_VERSIONS}" ]]; then - einfo "\nUsage:" - einfo " ~$ pwndbg <program>" - ewarn "\nWARNING!!!" - ewarn "Some pwndbg commands only works with libc debug symbols.\n" - ewarn "See also:" - ewarn " * https://github.com/pentoo/pentoo-overlay/issues/521#issuecomment-548975884" - ewarn " * https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html" - ewarn " * https://wiki.gentoo.org/wiki/Debugging" - fi -} diff --git a/dev-debug/rr/Manifest b/dev-debug/rr/Manifest deleted file mode 100644 index 6358f318d756..000000000000 --- a/dev-debug/rr/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST mozilla-rr-5.9.0.tar.gz 1801696 BLAKE2B b87d0a33201a513a692e8deb20ada38f235ce7a3e41dd806d0dba9a1a73f2c3dbf71d7f95b7cb0b284c7e38a4a19ea58f9ddef31d2e9b92efc686b24a8e551e7 SHA512 796d9b0b64e3993dfc14cf488e5e598b1de4828da415b1f97435598d62c1c133fc268d7838601275a00f59f05bf53d0bb796380418f4cb6cdfdda2c50207f996 diff --git a/dev-debug/rr/files/rr-5.7.0-no-force-lto.patch b/dev-debug/rr/files/rr-5.7.0-no-force-lto.patch deleted file mode 100644 index f9665f435f4c..000000000000 --- a/dev-debug/rr/files/rr-5.7.0-no-force-lto.patch +++ /dev/null @@ -1,23 +0,0 @@ ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -118,7 +118,6 @@ if(LOWERCASE_CMAKE_BUILD_TYPE STREQUAL "debug") - set(RR_FLAGS "${RR_FLAGS_DEBUG} -g3 ") - elseif(LOWERCASE_CMAKE_BUILD_TYPE STREQUAL "release") - # CMake itself will add optimization flags -- set(RR_FLAGS "${RR_FLAGS_RELEASE} -g3 -flto") - endif() - - set(LINKER_FLAGS "") -@@ -675,12 +674,6 @@ endif() - - # Add -flto option to linking step if release - if(LOWERCASE_CMAKE_BUILD_TYPE STREQUAL "release") -- CHECK_C_COMPILER_FLAG("-flto=auto" SUPPORTS_LTO_AUTO) -- if(SUPPORTS_LTO_AUTO) -- set(RR_MAIN_LINKER_FLAGS "${RR_MAIN_LINKER_FLAGS} -flto=auto") -- else() -- set(RR_MAIN_LINKER_FLAGS "${RR_MAIN_LINKER_FLAGS} -flto") -- endif() - endif() - - if(LIBRT) diff --git a/dev-debug/rr/files/rr-5.9.0-glibc-2.42-termio.patch b/dev-debug/rr/files/rr-5.9.0-glibc-2.42-termio.patch deleted file mode 100644 index adad86158e98..000000000000 --- a/dev-debug/rr/files/rr-5.9.0-glibc-2.42-termio.patch +++ /dev/null @@ -1,20 +0,0 @@ -https://github.com/rr-debugger/rr/commit/6251648873b9e1ed23536beebbaa5d6fead3d5be - -From 6251648873b9e1ed23536beebbaa5d6fead3d5be Mon Sep 17 00:00:00 2001 -From: Robert O'Callahan <robert@ocallahan.org> -Date: Tue, 29 Jul 2025 23:05:21 +1200 -Subject: [PATCH] Stop checking struct sizes against glibc `termio` since that - has been removed. - -Resolves #3995. ---- a/src/kernel_abi.h -+++ b/src/kernel_abi.h -@@ -750,7 +750,6 @@ struct BaseArch : public wordsize, - unsigned char c_line; - unsigned char c_cc[8]; - }; -- RR_VERIFY_TYPE(termio); - - struct seccomp_notif_sizes { - uint16_t seccomp_notif; - diff --git a/dev-debug/rr/files/rr-5.9.0-zen-workaround-service.patch b/dev-debug/rr/files/rr-5.9.0-zen-workaround-service.patch deleted file mode 100644 index b0b90a317092..000000000000 --- a/dev-debug/rr/files/rr-5.9.0-zen-workaround-service.patch +++ /dev/null @@ -1,14 +0,0 @@ -We install zen_workaround.py as rr-zen_workaround.py. ---- a/scripts/zen_workaround.service -+++ b/scripts/zen_workaround.service -@@ -15,8 +15,8 @@ - Description = Startup script for rr zen workaround - - [Service] --# Step to actually run `zen_workaround.py`. --ExecStart =+/usr/share/zen_workaround/zen_workaround.py -+# Step to actually run `rr-zen_workaround.py`. -+ExecStart =+rr-zen_workaround.py - - # Only run this once, report it as "(active)" even after we've exited. - Type = oneshot diff --git a/dev-debug/rr/metadata.xml b/dev-debug/rr/metadata.xml deleted file mode 100644 index e460adeab06d..000000000000 --- a/dev-debug/rr/metadata.xml +++ /dev/null @@ -1,13 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>toolchain@gentoo.org</email> - <name>Gentoo Toolchain Project</name> - </maintainer> - <maintainer type="person"> - <email>lu_zero@gentoo.org</email> - <name>Luca Barbato</name> - </maintainer> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/dev-debug/rr/rr-5.9.0-r1.ebuild b/dev-debug/rr/rr-5.9.0-r1.ebuild deleted file mode 100644 index eb1d270295ca..000000000000 --- a/dev-debug/rr/rr-5.9.0-r1.ebuild +++ /dev/null @@ -1,112 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{13..14} ) -CMAKE_BUILD_TYPE=Release - -inherit cmake linux-info python-single-r1 systemd - -DESCRIPTION="Record and Replay Framework" -HOMEPAGE="https://rr-project.org/" - -if [[ ${PV} == 9999 ]] ; then - EGIT_REPO_URI="https://github.com/rr-debugger/rr" - inherit git-r3 -else - SRC_URI="https://github.com/rr-debugger/${PN}/archive/${PV}.tar.gz -> mozilla-${P}.tar.gz" - KEYWORDS="~amd64 ~arm64 ~x86" -fi - -# rr itself is MIT and BSD-2, but there's various bits under third-party too. -LICENSE="MIT BSD-2 GPL-2 ZLIB" -SLOT="0" -IUSE="multilib test" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -DEPEND=" - ${PYTHON_DEPS} - app-arch/zstd:= - dev-libs/capnproto:= - virtual/zlib:= -" -RDEPEND=" - ${DEPEND} - dev-debug/gdb[xml] -" -# Add all the deps needed only at build/test time. -DEPEND+=" - test? ( - $(python_gen_cond_dep ' - dev-python/pexpect[${PYTHON_USEDEP}] - ') - dev-debug/gdb[xml] - )" - -QA_FLAGS_IGNORED=" - usr/lib.*/rr/librrpage.so - usr/lib.*/rr/librrpage_32.so -" - -RESTRICT="test" # toolchain and kernel version dependent - -PATCHES=( - "${FILESDIR}"/${PN}-5.7.0-no-force-lto.patch - "${FILESDIR}"/${PN}-5.9.0-zen-workaround-service.patch - "${FILESDIR}"/${PN}-5.9.0-glibc-2.42-termio.patch -) - -pkg_setup() { - if use kernel_linux; then - CONFIG_CHECK="SECCOMP" - - if use amd64 ; then - CONFIG_CHECK+=" ~X86_MSR" - WARNING_X86_MSR="X86_MSR is needed for rr-zen_workaround.py (AMD Zen CPUs)" - fi - - linux-info_pkg_setup - fi - python-single-r1_pkg_setup -} - -src_prepare() { - cmake_src_prepare - - sed -i 's:-Werror::' CMakeLists.txt || die # bug #609192 -} - -src_test() { - if has usersandbox ${FEATURES} ; then - ewarn "Test suite fails under FEATURES=usersandbox (bug #632394). Skipping." - return 0 - fi - - cmake_src_test -} - -src_configure() { - local mycmakeargs=( - # TODO: Could wire up bpf but USE=bpf feels wrong for that - # as only introduced in 5.9.0 (e7d9e8fd023461feb01f5d2c7936fcf07df8ce05) which - # says it's not "suitable for wide use at this point". - -DBUILD_TESTS=$(usex test) - -Ddisable32bit=$(usex !multilib) # bug #636786 - ) - - cmake_src_configure -} - -src_install() { - cmake_src_install - - # Upstream's CMake avoids stripping librrpreload at least, and - # Fedora avoids stripping all libraries. Treat it like Valgrind - # and play it safe. - dostrip -x "/usr/$(get_libdir)/rr" - - python_fix_shebang "${ED}"/usr/bin/rr-collect-symbols.py - python_newscript scripts/zen_workaround.py rr-zen_workaround.py - systemd_newunit scripts/zen_workaround.service rr-zen_workaround.service -} diff --git a/dev-debug/rr/rr-9999.ebuild b/dev-debug/rr/rr-9999.ebuild deleted file mode 100644 index da4d43687437..000000000000 --- a/dev-debug/rr/rr-9999.ebuild +++ /dev/null @@ -1,111 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{13..14} ) -CMAKE_BUILD_TYPE=Release - -inherit cmake linux-info python-single-r1 systemd - -DESCRIPTION="Record and Replay Framework" -HOMEPAGE="https://rr-project.org/" - -if [[ ${PV} == 9999 ]] ; then - EGIT_REPO_URI="https://github.com/rr-debugger/rr" - inherit git-r3 -else - SRC_URI="https://github.com/rr-debugger/${PN}/archive/${PV}.tar.gz -> mozilla-${P}.tar.gz" - KEYWORDS="~amd64 ~arm64 ~x86" -fi - -# rr itself is MIT and BSD-2, but there's various bits under third-party too. -LICENSE="MIT BSD-2 GPL-2 ZLIB" -SLOT="0" -IUSE="multilib test" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -DEPEND=" - ${PYTHON_DEPS} - app-arch/zstd:= - dev-libs/capnproto:= - virtual/zlib:= -" -RDEPEND=" - ${DEPEND} - dev-debug/gdb[xml] -" -# Add all the deps needed only at build/test time. -DEPEND+=" - test? ( - $(python_gen_cond_dep ' - dev-python/pexpect[${PYTHON_USEDEP}] - ') - dev-debug/gdb[xml] - )" - -QA_FLAGS_IGNORED=" - usr/lib.*/rr/librrpage.so - usr/lib.*/rr/librrpage_32.so -" - -RESTRICT="test" # toolchain and kernel version dependent - -PATCHES=( - "${FILESDIR}"/${PN}-5.7.0-no-force-lto.patch - "${FILESDIR}"/${PN}-5.9.0-zen-workaround-service.patch -) - -pkg_setup() { - if use kernel_linux; then - CONFIG_CHECK="SECCOMP" - - if use amd64 ; then - CONFIG_CHECK+=" ~X86_MSR" - WARNING_X86_MSR="X86_MSR is needed for rr-zen_workaround.py (AMD Zen CPUs)" - fi - - linux-info_pkg_setup - fi - python-single-r1_pkg_setup -} - -src_prepare() { - cmake_src_prepare - - sed -i 's:-Werror::' CMakeLists.txt || die # bug #609192 -} - -src_test() { - if has usersandbox ${FEATURES} ; then - ewarn "Test suite fails under FEATURES=usersandbox (bug #632394). Skipping." - return 0 - fi - - cmake_src_test -} - -src_configure() { - local mycmakeargs=( - # TODO: Could wire up bpf but USE=bpf feels wrong for that - # as only introduced in 5.9.0 (e7d9e8fd023461feb01f5d2c7936fcf07df8ce05) which - # says it's not "suitable for wide use at this point". - -DBUILD_TESTS=$(usex test) - -Ddisable32bit=$(usex !multilib) # bug #636786 - ) - - cmake_src_configure -} - -src_install() { - cmake_src_install - - # Upstream's CMake avoids stripping librrpreload at least, and - # Fedora avoids stripping all libraries. Treat it like Valgrind - # and play it safe. - dostrip -x "/usr/$(get_libdir)/rr" - - python_fix_shebang "${ED}"/usr/bin/rr-collect-symbols.py - python_newscript scripts/zen_workaround.py rr-zen_workaround.py - systemd_newunit scripts/zen_workaround.service rr-zen_workaround.service -} diff --git a/dev-debug/scap-driver/Manifest b/dev-debug/scap-driver/Manifest deleted file mode 100644 index 84c27ad4f85d..000000000000 --- a/dev-debug/scap-driver/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST falcosecurity-libs-0.20.0.tar.gz 4545190 BLAKE2B 93a074ab6451c16c7ad58498ac580f0476339e7dee65112e56142307f79966c43b69c71234a784aff03f47ec2e37e838e797beb4b36e9c105db88cf32cad135e SHA512 b5ef481bda92a29b7b409baee25dabd0b766e4bbcac762740635f99b36cd823a6d98f541817fd03b1a86a1385d3fe24888b33b84dc3486cd9f8d00e5384eb705 diff --git a/dev-debug/scap-driver/files/libs-0.20.0-fix-driver-and-bpf-makefile-for-kernel-6.13.patch b/dev-debug/scap-driver/files/libs-0.20.0-fix-driver-and-bpf-makefile-for-kernel-6.13.patch deleted file mode 100644 index f0c16d176d12..000000000000 --- a/dev-debug/scap-driver/files/libs-0.20.0-fix-driver-and-bpf-makefile-for-kernel-6.13.patch +++ /dev/null @@ -1,39 +0,0 @@ -Patch from: -https://github.com/falcosecurity/libs/commit/7f01ec89c565fcb45ade833b1312ae69637bc4ec - -From: Federico Di Pierro <nierro92@gmail.com> -Date: Fri, 28 Mar 2025 08:35:23 +0100 -Subject: [PATCH] fix(driver): fix driver and bpf makefile for linux 6.13. - -Signed-off-by: Federico Di Pierro <nierro92@gmail.com> ---- - driver/Makefile.in | 2 +- - driver/bpf/Makefile | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/driver/Makefile.in b/driver/Makefile.in -index 7b1fdc2dba..ec60103d0d 100644 ---- a/driver/Makefile.in -+++ b/driver/Makefile.in -@@ -29,7 +29,7 @@ install: all - - else - --KERNELDIR ?= $(CURDIR) -+KERNELDIR ?= $(realpath $(objtree)) - # - # Get the path of the module sources - # -diff --git a/driver/bpf/Makefile b/driver/bpf/Makefile -index 58d1b11165..c94647c608 100644 ---- a/driver/bpf/Makefile -+++ b/driver/bpf/Makefile -@@ -28,7 +28,7 @@ clean: - - else - --KERNELDIR ?= $(CURDIR) -+KERNELDIR ?= $(realpath $(objtree)) - # - # Get the path of the module sources - # diff --git a/dev-debug/scap-driver/files/libs-0.20.0-properly-use-LD.patch b/dev-debug/scap-driver/files/libs-0.20.0-properly-use-LD.patch deleted file mode 100644 index 79aad2c91cf9..000000000000 --- a/dev-debug/scap-driver/files/libs-0.20.0-properly-use-LD.patch +++ /dev/null @@ -1,24 +0,0 @@ -Properly use an injected LD for linking. This is necessary for kernels -built with clang & LTO, otherwise the configuration tests fall back to -using ld.bfd and fail to build with: "ld: unrecognised emulation mode: llvm". -Bug: https://bugs.gentoo.org/968857 - ---- libs-0.20.0/driver/configure/Makefile.inc.in -+++ libs-0.20.0/driver/configure/Makefile.inc.in -@@ -3,7 +3,7 @@ MODULE_MAKEFILE_DIR := $(shell dirname $ - # Run the module build.sh (wrapper for make) script with an empty environment, - # but pass PATH, KERNELDIR and eventually (if set) CC and KBUILD_MODPOST_WARN. - # The latter ones are used by driverkit build templates. --HAS_@CONFIGURE_MODULE@ := $(shell env -i CC="$(CC)" KBUILD_MODPOST_WARN="$(KBUILD_MODPOST_WARN)" PATH="$(PATH)" KERNELDIR="$(KERNELDIR)" sh $(MODULE_MAKEFILE_DIR)/build.sh ; echo $$?) -+HAS_@CONFIGURE_MODULE@ := $(shell env -i CC="$(CC)" LD="$(LD)" KBUILD_MODPOST_WARN="$(KBUILD_MODPOST_WARN)" PATH="$(PATH)" KERNELDIR="$(KERNELDIR)" sh $(MODULE_MAKEFILE_DIR)/build.sh ; echo $$?) - - ifeq ($(HAS_@CONFIGURE_MODULE@),0) - $(info [configure-kmod] Setting HAS_@CONFIGURE_MODULE@ flag) ---- libs-0.20.0/driver/configure/build.sh -+++ libs-0.20.0/driver/configure/build.sh -@@ -10,4 +10,4 @@ - SCRIPT=$(readlink -f "$0") - SCRIPT_DIR=$(dirname ${SCRIPT}) - --make CC="${CC}" -C ${SCRIPT_DIR} > ${SCRIPT_DIR}/build.log 2>&1 -+make CC="${CC}" "${LD}" -C ${SCRIPT_DIR} > ${SCRIPT_DIR}/build.log 2>&1 diff --git a/dev-debug/scap-driver/metadata.xml b/dev-debug/scap-driver/metadata.xml deleted file mode 100644 index f76957f1a8a7..000000000000 --- a/dev-debug/scap-driver/metadata.xml +++ /dev/null @@ -1,13 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person" proxied="yes"> - <email>holger@applied-asynchrony.com</email> - <name>Holger Hoffstätte</name> - </maintainer> - <maintainer type="project" proxied="proxy"> - <email>proxy-maint@gentoo.org</email> - <name>Proxy Maintainers</name> - </maintainer> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/dev-debug/scap-driver/scap-driver-0.20.0.ebuild b/dev-debug/scap-driver/scap-driver-0.20.0.ebuild deleted file mode 100644 index 444172b824d1..000000000000 --- a/dev-debug/scap-driver/scap-driver-0.20.0.ebuild +++ /dev/null @@ -1,54 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake linux-mod-r1 - -DESCRIPTION="Kernel module for dev-debug/sysdig" -HOMEPAGE="https://www.sysdig.com/" -SRC_URI="https://github.com/falcosecurity/libs/archive/${PV}.tar.gz -> falcosecurity-libs-${PV}.tar.gz" -S="${WORKDIR}/libs-${PV}" - -LICENSE="Apache-2.0 GPL-2 MIT" -SLOT="0" -KEYWORDS="amd64 ~arm64 ~x86" - -BDEPEND=" - dev-libs/uthash - virtual/zlib:= - virtual/libelf:= -" - -CONFIG_CHECK="HAVE_SYSCALL_TRACEPOINTS ~TRACEPOINTS" - -# We need to specify the driver version manually since we do not use a git tree. -# This version can be found as git tag on the same commit as the libs version. -DRIVER_VERSION="8.0.0+driver" - -PATCHES=( - "${FILESDIR}"/libs-0.20.0-fix-driver-and-bpf-makefile-for-kernel-6.13.patch - "${FILESDIR}"/libs-0.20.0-properly-use-LD.patch -) - -src_configure() { - local mycmakeargs=( - # we will use linux-mod, so in order to make it through the cmake setup - # just pretend to use bundled deps and then override only what we need. - -DUSE_BUNDLED_DEPS=ON - -DUSE_BUNDLED_LIBELF=OFF - -DUSE_BUNDLED_UTHASH=OFF - -DUSE_BUNDLED_ZLIB=OFF - -DCREATE_TEST_TARGETS=OFF - -DDRIVER_VERSION="${DRIVER_VERSION}" - ) - - cmake_src_configure -} - -src_compile() { - local modlist=( scap=:"${BUILD_DIR}"/driver/src ) - local modargs=( KERNELDIR="${KV_OUT_DIR}" ) - - linux-mod-r1_src_compile -} diff --git a/dev-debug/strace/Manifest b/dev-debug/strace/Manifest deleted file mode 100644 index 412bec54bd26..000000000000 --- a/dev-debug/strace/Manifest +++ /dev/null @@ -1,4 +0,0 @@ -DIST strace-6.19.tar.xz 2743524 BLAKE2B f46ff7788bfebef06af467cac1554fa2bfdb44397f635f04bd039ad6cf8b2339eece99a4d9cbfa2c747eb243a750e6efa446d550a83a2746c178e6a4857270db SHA512 d8088eef80f8007e0cae0e0a342cd171447cade8e2433f55b2592b33c704e4dcb5016c00104e536e858cf7d5ea5d2e4320073a2691b0bfb1a7ff87d932fac197 -DIST strace-6.19.tar.xz.asc 833 BLAKE2B e79d60b763e813d09cf1062b62edaa3be8c4b012d2d6b5c80b4b3de6fa97fd5d47ab6ff25ab232534d3dafddd709e63d7ca2eb6a140b4e95b48e753e66e23834 SHA512 953bd7819692d39f3fc71cc98600c4fdf3aa1ea4ba847a0d6d66cf5f83825e2f5e3424b172d62b91505ee80d85a732f226356692f02cc25f4c6905d0a6ee5990 -DIST strace-7.0.tar.xz 2764808 BLAKE2B dbf95b95742e274350955fc5e59f6c3f05ca8e029e5ecdd823dbe5ae4a1c8a971d115838e122d6a3d05cd7e017f7c6891776ce26821370ac9adc1e90bc8fd9fc SHA512 52a2d1a32caf622cdd7bb471b9e215bbb1ed33c9dd2afc1bb2d4bc69b68c01e6850223753ec7fbade33d33537268632a30cd15ffad37c7eb63e803e47a2fe020 -DIST strace-7.0.tar.xz.asc 833 BLAKE2B 048782b2235f9f3007b3cef2565e794cefa58fdb0d5e576e38692f442e1c5656599beb7130fb6010a83c46bad90a7f5a6085966877a91a214f1b8ff28c326d90 SHA512 c003187bf2f6f068de200af2e23000998edd07cc10774d88b2d659419d08464b997b5ad141e858adcf47f236decdddd2e7cf1d0e383e5586b8c8bee280c2dc17 diff --git a/dev-debug/strace/files/strace-6.5-static.patch b/dev-debug/strace/files/strace-6.5-static.patch deleted file mode 100644 index 67e4b05ca856..000000000000 --- a/dev-debug/strace/files/strace-6.5-static.patch +++ /dev/null @@ -1,178 +0,0 @@ ---- a/configure.ac -+++ b/configure.ac -@@ -54,6 +54,15 @@ AC_SUBST([STRACE_MANPAGE_DATE], [strace_manpage_date]) - AC_DEFINE([SLM_MANPAGE_DATE], "[slm_manpage_date]", [Date]) - AC_SUBST([SLM_MANPAGE_DATE], [slm_manpage_date]) - -+AC_ARG_ENABLE([static], -+ [AS_HELP_STRING([--enable-static], -+ [link strace statically])], -+ [], [enable_static=no]) -+if test "$enable_static" = "yes"; then -+ # Add -pthread since strace wants -lrt for timer_create, and -lrt uses -lpthread. -+ LDFLAGS="$LDFLAGS -pthread -static" -+fi -+ - AC_C_BIGENDIAN - - dnl arch-specific default for --enable-gcc-Werror ---- a/m4/st_libdw.m4 -+++ b/m4/st_libdw.m4 -@@ -8,7 +8,6 @@ - AC_DEFUN([st_ARG_LIBDW], [dnl - - : ${libdw_CPPFLAGS=} --: ${libdw_CFLAGS=} - : ${libdw_LDFLAGS=} - : ${libdw_LIBS=} - -@@ -34,48 +33,14 @@ AC_DEFUN([st_LIBDW], [dnl - have_libdw= - - AS_IF([test "x$with_libdw" != xno && test "x$use_unwinder" = x], -- [saved_CPPFLAGS="$CPPFLAGS" -- saved_CFLAGS="$CFLAGS" -- CPPFLAGS="$CPPFLAGS $libdw_CPPFLAGS" -- CFLAGS="$CFLAGS $libdw_CFLAGS" -- -- AC_CHECK_HEADERS([elfutils/libdwfl.h], -- [AC_CHECK_LIB([dw], [dwfl_linux_proc_attach], -- [libdw_LIBS="-ldw $libdw_LIBS" -- AC_CACHE_CHECK([for elfutils version], -- [st_cv_ELFUTILS_VERSION], -- [[st_cv_ELFUTILS_VERSION="$(echo _ELFUTILS_VERSION | -- $CPP $CPPFLAGS -P -imacros elfutils/version.h - | -- grep '^[0-9]')" -- test -n "$st_cv_ELFUTILS_VERSION" || -- st_cv_ELFUTILS_VERSION=0 -- ]] -- ) -- AS_IF([test "$st_cv_ELFUTILS_VERSION" -ge 164], -- [have_libdw=yes], -- [AS_IF([test "x$with_libdw" = xyes], -- [AC_MSG_ERROR([elfutils version >= 164 is required for stack tracing support])], -- [AC_MSG_WARN([elfutils version >= 164 is required for stack tracing support])] -- ) -- ] -- ) -- ], -- [AS_IF([test "x$with_libdw" = xyes], -- [AC_MSG_FAILURE([failed to find dwfl_linux_proc_attach in libdw])], -- ) -- ], -- [$libdw_LDFLAGS $libdw_LIBS] -- ) -- ], -- [AS_IF([test "x$with_libdw" = xyes], -- [AC_MSG_FAILURE([failed to find elfutils/libdwfl.h])] -- ) -- ] -- ) -- -- CFLAGS="$saved_CFLAGS" -- CPPFLAGS="$saved_CPPFLAGS" -- ] -+ [if test "$enable_static" = "yes"; then -+ PKG_CHECK_MODULES_STATIC([LIBDW], [libdw >= 0.164]) -+ else -+ PKG_CHECK_MODULES([LIBDW], [libdw >= 0.164]) -+ fi -+ have_libdw=yes -+ libdw_CPPFLAGS="$LIBDW_CFLAGS" -+ libdw_LIBS="$LIBDW_LIBS"] - ) - - AS_IF([test "x$have_libdw" = xyes], -@@ -84,7 +49,6 @@ AS_IF([test "x$have_libdw" = xyes], - [Whether to use libdw for stack tracing] - ) - AC_SUBST(libdw_CPPFLAGS) -- AC_SUBST(libdw_CFLAGS) - AC_SUBST(libdw_LDFLAGS) - AC_SUBST(libdw_LIBS) - ] ---- a/m4/st_libunwind.m4 -+++ b/m4/st_libunwind.m4 -@@ -28,64 +28,14 @@ AC_ARG_WITH([libunwind], - AC_DEFUN([st_LIBUNWIND], [dnl - - AS_IF([test "x$with_libunwind" != xno && test "x$use_unwinder" = x], -- [saved_CPPFLAGS="$CPPFLAGS" -- CPPFLAGS="$CPPFLAGS $libunwind_CPPFLAGS" -- -- AC_CHECK_HEADERS([libunwind-ptrace.h], -- [saved_LDFLAGS="$LDFLAGS" -- LDFLAGS="$LDFLAGS $libunwind_LDFLAGS" -- -- AC_CHECK_LIB([unwind], [backtrace], -- [libunwind_LIBS="-lunwind $libunwind_LIBS" -- -- AC_MSG_CHECKING([for unw_create_addr_space in libunwind-generic]) -- saved_LIBS="$LIBS" -- LIBS="-lunwind-generic $libunwind_LIBS $LIBS" -- -- AC_LINK_IFELSE( -- [AC_LANG_PROGRAM([[#include <libunwind-ptrace.h>]], -- [[return !unw_create_addr_space(0, 0)]]) -- ], -- [AC_MSG_RESULT([yes]) -- libunwind_LIBS="-lunwind-generic $libunwind_LIBS" -- -- AC_CHECK_LIB([unwind-ptrace], [_UPT_create], -- [libunwind_LIBS="-lunwind-ptrace $libunwind_LIBS" -- use_unwinder=libunwind -- ], -- [if test "x$with_libunwind" != xcheck; then -- AC_MSG_FAILURE([failed to find _UPT_create in libunwind-ptrace]) -- fi -- ], -- [$libunwind_LIBS] -- ) -- ], -- [AC_MSG_RESULT([no]) -- if test "x$with_libunwind" != xcheck; then -- AC_MSG_FAILURE([failed to find unw_create_addr_space in libunwind-generic]) -- fi -- ] -- ) -- -- LIBS="$saved_LIBS" -- ], -- [if test "x$with_libunwind" != xcheck; then -- AC_MSG_FAILURE([failed to find libunwind]) -- fi -- ], -- [$libunwind_LIBS] -- ) -- -- LDFLAGS="$saved_LDFLAGS" -- ], -- [if test "x$with_libunwind" != xcheck; then -- AC_MSG_FAILURE([failed to find libunwind-ptrace.h]) -- fi -- ] -- ) -- -- CPPFLAGS="$saved_CPPFLAGS" -- ] -+ [if test "$enable_static" = "yes"; then -+ PKG_CHECK_MODULES_STATIC([LIBUNWIND], [libunwind libunwind-generic libunwind-ptrace]) -+ else -+ PKG_CHECK_MODULES([LIBUNWIND], [libunwind libunwind-generic libunwind-ptrace]) -+ fi -+ use_unwinder="libunwind" -+ libunwind_CPPFLAGS="$LIBUNWIND_CFLAGS" -+ libunwind_LIBS="$LIBUNWIND_LIBS"] - ) - - if test "x$use_unwinder" = xlibunwind; then ---- a/src/Makefile.am -+++ b/src/Makefile.am -@@ -417,7 +417,6 @@ libstrace_a_SOURCES += unwind.c unwind.h - if USE_LIBDW - libstrace_a_SOURCES += unwind-libdw.c - strace_CPPFLAGS += $(libdw_CPPFLAGS) --strace_CFLAGS += $(libdw_CFLAGS) - strace_LDFLAGS += $(libdw_LDFLAGS) - strace_LDADD += $(libdw_LIBS) - endif diff --git a/dev-debug/strace/metadata.xml b/dev-debug/strace/metadata.xml deleted file mode 100644 index a85d95d23552..000000000000 --- a/dev-debug/strace/metadata.xml +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>base-system@gentoo.org</email> - <name>Gentoo Base System</name> - </maintainer> - <use> - <flag name="aio"> - Enable <pkg>dev-libs/libaio</pkg> support for tracing Asynchronous I/O operations - </flag> - <flag name="elfutils"> - Enable stack backtraces (-k flag) via <pkg>dev-libs/elfutils</pkg> - </flag> - <flag name="ncurses"> - Make color support available via <pkg>sys-libs/ncurses</pkg>. - At runtime, if enabled, defaults to 'auto', but can be - disabled with --color never. - </flag> - <flag name="unwind"> - Enable stack backtraces (-k flag) via <pkg>sys-libs/libunwind</pkg> - </flag> - </use> - <upstream> - <remote-id type="cpe">cpe:/a:strace_project:strace</remote-id> - </upstream> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/dev-debug/strace/strace-6.19.ebuild b/dev-debug/strace/strace-6.19.ebuild deleted file mode 100644 index 559d09c1bc4e..000000000000 --- a/dev-debug/strace/strace-6.19.ebuild +++ /dev/null @@ -1,120 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools edo flag-o-matic toolchain-funcs verify-sig - -DESCRIPTION="Useful diagnostic, instructional, and debugging tool" -HOMEPAGE="https://strace.io/" - -if [[ ${PV} == 9999 ]] ; then - EGIT_REPO_URI="https://github.com/strace/strace.git" - inherit git-r3 -else - SRC_URI=" - https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz - verify-sig? ( https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz.asc ) - " - KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" -fi - -VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/strace.asc - -LICENSE="LGPL-2.1+ test? ( GPL-2+ )" -SLOT="0" -IUSE="aio perl selinux static test unwind elfutils" -RESTRICT="!test? ( test )" -REQUIRED_USE="?? ( unwind elfutils )" - -BDEPEND=" - virtual/pkgconfig - verify-sig? ( >=sec-keys/openpgp-keys-strace-20251130 ) -" -LIB_DEPEND=" - unwind? ( sys-libs/libunwind[static-libs(+)] ) - elfutils? ( dev-libs/elfutils[static-libs(+)] ) - selinux? ( sys-libs/libselinux[static-libs(+)] ) -" -# strace only uses the header from libaio to decode structs -DEPEND=" - static? ( ${LIB_DEPEND} ) - aio? ( >=dev-libs/libaio-0.3.106 ) -" -RDEPEND=" - !static? ( ${LIB_DEPEND//\[static-libs(+)]} ) - perl? ( dev-lang/perl ) -" - -PATCHES=( - "${FILESDIR}/${PN}-6.5-static.patch" -) - -src_prepare() { - default - - if [[ ! -e configure ]] ; then - # git generation - sed /autoreconf/d -i bootstrap || die - edo ./bootstrap - [[ ! -e CREDITS ]] && cp CREDITS{.in,} - fi - - eautoreconf - - # Stub out the -k test since it's known to be flaky. bug #545812 - sed -i '1iexit 77' tests*/strace-k.test || die -} - -src_configure() { - # Set up the default build settings, and then use the names strace expects. - tc-export_build_env BUILD_{CC,CPP} - local v bv - for v in CC CPP {C,CPP,LD}FLAGS ; do - bv="BUILD_${v}" - export "${v}_FOR_BUILD=${!bv}" - done - - filter-lfs-flags # configure handles this sanely - - export ac_cv_header_libaio_h=$(usex aio) - use elibc_musl && export ac_cv_header_stdc=no - - local myeconfargs=( - --disable-gcc-Werror - - # Don't require mpers support on non-multilib systems. #649560 - --enable-mpers=check - - # We don't want to pin to exact linux-headers versions (bug #950309) - --enable-bundled=yes - - $(use_enable static) - $(use_with unwind libunwind) - $(use_with elfutils libdw) - $(use_with selinux libselinux) - ) - - econf "${myeconfargs[@]}" -} - -src_test() { - if has usersandbox ${FEATURES} ; then - # bug #643044 - ewarn "Test suite is known to fail with FEATURES=usersandbox -- skipping ..." - return 0 - fi - - default -} - -src_install() { - default - - if use perl ; then - exeinto /usr/bin - doexe src/strace-graph - fi - - dodoc CREDITS -} diff --git a/dev-debug/strace/strace-7.0-r1.ebuild b/dev-debug/strace/strace-7.0-r1.ebuild deleted file mode 100644 index 81359e48de5f..000000000000 --- a/dev-debug/strace/strace-7.0-r1.ebuild +++ /dev/null @@ -1,129 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools edo flag-o-matic toolchain-funcs verify-sig - -DESCRIPTION="Useful diagnostic, instructional, and debugging tool" -HOMEPAGE="https://strace.io/" - -if [[ ${PV} == 9999 ]] ; then - EGIT_REPO_URI="https://github.com/strace/strace.git" - inherit git-r3 -else - SRC_URI=" - https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz - verify-sig? ( https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz.asc ) - " - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -fi - -VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/strace.asc - -LICENSE="LGPL-2.1+ test? ( GPL-2+ )" -SLOT="0" -IUSE="aio ncurses perl selinux static test unwind elfutils" -RESTRICT="!test? ( test )" -REQUIRED_USE="?? ( unwind elfutils )" - -BDEPEND=" - virtual/pkgconfig - verify-sig? ( >=sec-keys/openpgp-keys-strace-20251130 ) -" -STATIC_DEPEND=" - elfutils? ( dev-libs/elfutils[static-libs(+)] ) - ncurses? ( sys-libs/ncurses[static-libs(+)] ) - selinux? ( sys-libs/libselinux[static-libs(+)] ) - unwind? ( sys-libs/libunwind[static-libs(+)] ) -" -LIB_DEPEND=" - elfutils? ( dev-libs/elfutils ) - ncurses? ( sys-libs/ncurses:= ) - selinux? ( sys-libs/libselinux ) - unwind? ( sys-libs/libunwind:= ) -" -# strace only uses the header from libaio to decode structs -DEPEND=" - static? ( ${STATIC_DEPEND} ) - !static? ( ${LIB_DEPEND} ) - aio? ( >=dev-libs/libaio-0.3.106 ) -" -RDEPEND=" - !static? ( ${LIB_DEPEND} ) - perl? ( dev-lang/perl ) -" - -PATCHES=( - "${FILESDIR}/${PN}-6.5-static.patch" -) - -src_prepare() { - default - - if [[ ! -e configure ]] ; then - # git generation - sed /autoreconf/d -i bootstrap || die - edo ./bootstrap - [[ ! -e CREDITS ]] && cp CREDITS{.in,} - fi - - eautoreconf - - # Stub out the -k test since it's known to be flaky. bug #545812 - sed -i '1iexit 77' tests*/strace-k.test || die -} - -src_configure() { - # Set up the default build settings, and then use the names strace expects. - tc-export_build_env BUILD_{CC,CPP} - local v bv - for v in CC CPP {C,CPP,LD}FLAGS ; do - bv="BUILD_${v}" - export "${v}_FOR_BUILD=${!bv}" - done - - filter-lfs-flags # configure handles this sanely - - export ac_cv_header_libaio_h=$(usex aio) - export ac_cv_header_termcap_h=$(usex ncurses) - use elibc_musl && export ac_cv_header_stdc=no - - local myeconfargs=( - --disable-gcc-Werror - - # Don't require mpers support on non-multilib systems. #649560 - --enable-mpers=check - - # We don't want to pin to exact linux-headers versions (bug #950309) - --enable-bundled=yes - - $(use_enable static) - $(use_with unwind libunwind) - $(use_with elfutils libdw) - $(use_with selinux libselinux) - ) - - econf "${myeconfargs[@]}" -} - -src_test() { - if has usersandbox ${FEATURES} ; then - # bug #643044 - ewarn "Test suite is known to fail with FEATURES=usersandbox -- skipping ..." - return 0 - fi - - default -} - -src_install() { - default - - if use perl ; then - exeinto /usr/bin - doexe src/strace-graph - fi - - dodoc CREDITS -} diff --git a/dev-debug/strace/strace-9999.ebuild b/dev-debug/strace/strace-9999.ebuild deleted file mode 100644 index 81359e48de5f..000000000000 --- a/dev-debug/strace/strace-9999.ebuild +++ /dev/null @@ -1,129 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools edo flag-o-matic toolchain-funcs verify-sig - -DESCRIPTION="Useful diagnostic, instructional, and debugging tool" -HOMEPAGE="https://strace.io/" - -if [[ ${PV} == 9999 ]] ; then - EGIT_REPO_URI="https://github.com/strace/strace.git" - inherit git-r3 -else - SRC_URI=" - https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz - verify-sig? ( https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz.asc ) - " - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -fi - -VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/strace.asc - -LICENSE="LGPL-2.1+ test? ( GPL-2+ )" -SLOT="0" -IUSE="aio ncurses perl selinux static test unwind elfutils" -RESTRICT="!test? ( test )" -REQUIRED_USE="?? ( unwind elfutils )" - -BDEPEND=" - virtual/pkgconfig - verify-sig? ( >=sec-keys/openpgp-keys-strace-20251130 ) -" -STATIC_DEPEND=" - elfutils? ( dev-libs/elfutils[static-libs(+)] ) - ncurses? ( sys-libs/ncurses[static-libs(+)] ) - selinux? ( sys-libs/libselinux[static-libs(+)] ) - unwind? ( sys-libs/libunwind[static-libs(+)] ) -" -LIB_DEPEND=" - elfutils? ( dev-libs/elfutils ) - ncurses? ( sys-libs/ncurses:= ) - selinux? ( sys-libs/libselinux ) - unwind? ( sys-libs/libunwind:= ) -" -# strace only uses the header from libaio to decode structs -DEPEND=" - static? ( ${STATIC_DEPEND} ) - !static? ( ${LIB_DEPEND} ) - aio? ( >=dev-libs/libaio-0.3.106 ) -" -RDEPEND=" - !static? ( ${LIB_DEPEND} ) - perl? ( dev-lang/perl ) -" - -PATCHES=( - "${FILESDIR}/${PN}-6.5-static.patch" -) - -src_prepare() { - default - - if [[ ! -e configure ]] ; then - # git generation - sed /autoreconf/d -i bootstrap || die - edo ./bootstrap - [[ ! -e CREDITS ]] && cp CREDITS{.in,} - fi - - eautoreconf - - # Stub out the -k test since it's known to be flaky. bug #545812 - sed -i '1iexit 77' tests*/strace-k.test || die -} - -src_configure() { - # Set up the default build settings, and then use the names strace expects. - tc-export_build_env BUILD_{CC,CPP} - local v bv - for v in CC CPP {C,CPP,LD}FLAGS ; do - bv="BUILD_${v}" - export "${v}_FOR_BUILD=${!bv}" - done - - filter-lfs-flags # configure handles this sanely - - export ac_cv_header_libaio_h=$(usex aio) - export ac_cv_header_termcap_h=$(usex ncurses) - use elibc_musl && export ac_cv_header_stdc=no - - local myeconfargs=( - --disable-gcc-Werror - - # Don't require mpers support on non-multilib systems. #649560 - --enable-mpers=check - - # We don't want to pin to exact linux-headers versions (bug #950309) - --enable-bundled=yes - - $(use_enable static) - $(use_with unwind libunwind) - $(use_with elfutils libdw) - $(use_with selinux libselinux) - ) - - econf "${myeconfargs[@]}" -} - -src_test() { - if has usersandbox ${FEATURES} ; then - # bug #643044 - ewarn "Test suite is known to fail with FEATURES=usersandbox -- skipping ..." - return 0 - fi - - default -} - -src_install() { - default - - if use perl ; then - exeinto /usr/bin - doexe src/strace-graph - fi - - dodoc CREDITS -} diff --git a/dev-debug/sysdig/Manifest b/dev-debug/sysdig/Manifest deleted file mode 100644 index 8c80b43fae88..000000000000 --- a/dev-debug/sysdig/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST falcosecurity-libs-0.20.0.tar.gz 4545190 BLAKE2B 93a074ab6451c16c7ad58498ac580f0476339e7dee65112e56142307f79966c43b69c71234a784aff03f47ec2e37e838e797beb4b36e9c105db88cf32cad135e SHA512 b5ef481bda92a29b7b409baee25dabd0b766e4bbcac762740635f99b36cd823a6d98f541817fd03b1a86a1385d3fe24888b33b84dc3486cd9f8d00e5384eb705 -DIST sysdig-0.40.1.tar.gz 68296332 BLAKE2B 17ed9154d1e955dc18700ab764f0fce11461bea9b6970e8661761269d4f0bbb786ddd8a4cc4c806121a52d0d486080fc231f2447dc69d26d41fa582c1dabda41 SHA512 a50372192ea8708d19ede0550659a2f7ea6b535b419d649ae9b52e32f9c71576f0a3e3ab85dcc8d23f792dff078f15eca1435a1e402e3d98aba7eefc1920989e diff --git a/dev-debug/sysdig/files/0.38.1-scap-loader.patch b/dev-debug/sysdig/files/0.38.1-scap-loader.patch deleted file mode 100644 index 1f350948b37a..000000000000 --- a/dev-debug/sysdig/files/0.38.1-scap-loader.patch +++ /dev/null @@ -1,32 +0,0 @@ - -Sanitize the scap loader script to not attempt driver downloads or compilation -by default, which would not work anyway as sysdig does not host prebuilt modules -for Gentoo. - -Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> - ---- sysdig-0.38.0/scripts/scap-driver-loader.in~ 2024-06-17 11:14:55.000000000 +0200 -+++ sysdig-0.38.0/scripts/scap-driver-loader.in 2024-06-17 11:14:55.000000000 +0200 -@@ -662,8 +662,8 @@ print_usage() { - echo "Options:" - echo " --help show brief help" - echo " --clean try to remove an already present driver installation" -- echo " --compile try to compile the driver locally (default true)" -- echo " --download try to download a prebuilt driver (default true)" -+ echo " --compile try to compile the driver locally (default false)" -+ echo " --download try to download a prebuilt driver (default false)" - echo " --source-only skip execution and allow sourcing in another script" - echo "" - echo "Environment variables:" -@@ -770,11 +770,6 @@ while test $# -gt 0; do - esac - done - --if [ -z "$has_opts" ]; then -- ENABLE_COMPILE="yes" -- ENABLE_DOWNLOAD="yes" --fi -- - if [ -z "$source_only" ]; then - echo "* Running scap-driver-loader for: driver version=${DRIVER_VERSION}, arch=${ARCH}, kernel release=${KERNEL_RELEASE}, kernel version=${KERNEL_VERSION}" - diff --git a/dev-debug/sysdig/files/libs-0.20.0-fix-INET6_ADDRSTRLEN-buffer-size.patch b/dev-debug/sysdig/files/libs-0.20.0-fix-INET6_ADDRSTRLEN-buffer-size.patch deleted file mode 100644 index f2ea81289e0f..000000000000 --- a/dev-debug/sysdig/files/libs-0.20.0-fix-INET6_ADDRSTRLEN-buffer-size.patch +++ /dev/null @@ -1,54 +0,0 @@ -Backported patch from: https://github.com/falcosecurity/libs/pull/2574 - -glibc-2.42 added __inet_ntop_chk fortification, which started to fail: - -*** buffer overflow detected ***: terminated -Program received signal SIGABRT, Aborted. -0x00007ffff629b0dc in __pthread_kill_implementation () from /lib64/libc.so.6 -(gdb) bt -#0 0x00007ffff629b0dc in __pthread_kill_implementation () from /lib64/libc.so.6 -#1 0x00007ffff6242572 in raise () from /lib64/libc.so.6 -#2 0x00007ffff6229f3b in abort () from /lib64/libc.so.6 -#3 0x00007ffff622b148 in __libc_message_impl.cold () from /lib64/libc.so.6 -#4 0x00007ffff6327337 in __fortify_fail () from /lib64/libc.so.6 -#5 0x00007ffff6326c92 in __chk_fail () from /lib64/libc.so.6 -#6 0x00007ffff6327a62 in __inet_ntop_chk () from /lib64/libc.so.6 -#7 0x000055555569da3d in inet_ntop (__af=10, __src=0x555555ee0800, __dst=0x7fffffff4f90 "\260P\377\377\377\177", __dst_size=100) at /usr/include/bits/inet-fortified.h:36 -#8 ipv6tuple_to_string[abi:cxx11](ipv6tuple*, bool) (tuple=0x555555ee0800, resolve=false) at /tmp/portage/dev-debug/sysdig-0.40.1/work/libs-0.20.0/userspace/libsinsp/utils.cpp:1110 - -Pass a target buffer size appropriate for IPv addresses. - ---- libs-0.20.0/userspace/libsinsp/utils.cpp -+++ libs-0.20.0-new/userspace/libsinsp/utils.cpp -@@ -1089,13 +1089,13 @@ std::string ipv4tuple_to_string(ipv4tupl - } - - std::string ipv6serveraddr_to_string(ipv6serverinfo* addr, bool resolve) { -- char address[100]; -- char buf[200]; -+ char address[INET6_ADDRSTRLEN]; - -- if(NULL == inet_ntop(AF_INET6, addr->m_ip.m_b, address, 100)) { -+ if(NULL == inet_ntop(AF_INET6, addr->m_ip.m_b, address, INET6_ADDRSTRLEN)) { - return std::string(); - } - -+ char buf[200]; - snprintf(buf, - 200, - "%s:%s", -@@ -1107,12 +1107,12 @@ std::string ipv6serveraddr_to_string(ipv - - std::string ipv6tuple_to_string(ipv6tuple* tuple, bool resolve) { - char source_address[INET6_ADDRSTRLEN]; -- if(NULL == inet_ntop(AF_INET6, tuple->m_fields.m_sip.m_b, source_address, 100)) { -+ if(NULL == inet_ntop(AF_INET6, tuple->m_fields.m_sip.m_b, source_address, INET6_ADDRSTRLEN)) { - return std::string(); - } - - char destination_address[INET6_ADDRSTRLEN]; -- if(NULL == inet_ntop(AF_INET6, tuple->m_fields.m_dip.m_b, destination_address, 100)) { -+ if(NULL == inet_ntop(AF_INET6, tuple->m_fields.m_dip.m_b, destination_address, INET6_ADDRSTRLEN)) { - return std::string(); - } - diff --git a/dev-debug/sysdig/files/libs-0.20.0-fix-buffer-overrun-reading-sockets-from-procfs.patch b/dev-debug/sysdig/files/libs-0.20.0-fix-buffer-overrun-reading-sockets-from-procfs.patch deleted file mode 100644 index 238cd12ac540..000000000000 --- a/dev-debug/sysdig/files/libs-0.20.0-fix-buffer-overrun-reading-sockets-from-procfs.patch +++ /dev/null @@ -1,35 +0,0 @@ -Patch from: -https://github.com/falcosecurity/libs/commit/de3f4cac9233682eae63c63377c82efb649679f5 - -From de3f4cac9233682eae63c63377c82efb649679f5 Mon Sep 17 00:00:00 2001 -From: Shane Lawrence <shane@lawrence.dev> -Date: Thu, 20 Feb 2025 14:55:41 +0000 -Subject: [PATCH] Fix buffer overrun reading sockets from procfs. - -Signed-off-by: Shane Lawrence <shane@lawrence.dev> ---- - userspace/libscap/linux/scap_fds.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/userspace/libscap/linux/scap_fds.c b/userspace/libscap/linux/scap_fds.c -index f98ac3f32f..73e99ca428 100644 ---- a/userspace/libscap/linux/scap_fds.c -+++ b/userspace/libscap/linux/scap_fds.c -@@ -766,7 +766,7 @@ int32_t scap_fd_read_ipv4_sockets_from_proc_fs(const char *dir, - break; - } - -- while(*scan_pos == ' ' && scan_pos < scan_end) { -+ while(scan_pos < scan_end && *scan_pos == ' ') { - scan_pos++; - } - -@@ -974,7 +974,7 @@ int32_t scap_fd_read_ipv6_sockets_from_proc_fs(char *dir, - break; - } - -- while(*scan_pos == ' ' && scan_pos < scan_end) { -+ while(scan_pos < scan_end && *scan_pos == ' ') { - scan_pos++; - } - diff --git a/dev-debug/sysdig/files/libs-0.20.0-fix-driver-and-bpf-makefile-for-kernel-6.13.patch b/dev-debug/sysdig/files/libs-0.20.0-fix-driver-and-bpf-makefile-for-kernel-6.13.patch deleted file mode 100644 index f0c16d176d12..000000000000 --- a/dev-debug/sysdig/files/libs-0.20.0-fix-driver-and-bpf-makefile-for-kernel-6.13.patch +++ /dev/null @@ -1,39 +0,0 @@ -Patch from: -https://github.com/falcosecurity/libs/commit/7f01ec89c565fcb45ade833b1312ae69637bc4ec - -From: Federico Di Pierro <nierro92@gmail.com> -Date: Fri, 28 Mar 2025 08:35:23 +0100 -Subject: [PATCH] fix(driver): fix driver and bpf makefile for linux 6.13. - -Signed-off-by: Federico Di Pierro <nierro92@gmail.com> ---- - driver/Makefile.in | 2 +- - driver/bpf/Makefile | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/driver/Makefile.in b/driver/Makefile.in -index 7b1fdc2dba..ec60103d0d 100644 ---- a/driver/Makefile.in -+++ b/driver/Makefile.in -@@ -29,7 +29,7 @@ install: all - - else - --KERNELDIR ?= $(CURDIR) -+KERNELDIR ?= $(realpath $(objtree)) - # - # Get the path of the module sources - # -diff --git a/driver/bpf/Makefile b/driver/bpf/Makefile -index 58d1b11165..c94647c608 100644 ---- a/driver/bpf/Makefile -+++ b/driver/bpf/Makefile -@@ -28,7 +28,7 @@ clean: - - else - --KERNELDIR ?= $(CURDIR) -+KERNELDIR ?= $(realpath $(objtree)) - # - # Get the path of the module sources - # diff --git a/dev-debug/sysdig/metadata.xml b/dev-debug/sysdig/metadata.xml deleted file mode 100644 index 8c8cf93b9e02..000000000000 --- a/dev-debug/sysdig/metadata.xml +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person" proxied="yes"> - <email>holger@applied-asynchrony.com</email> - <name>Holger Hoffstätte</name> - </maintainer> - <maintainer type="project" proxied="proxy"> - <email>proxy-maint@gentoo.org</email> - <name>Proxy Maintainers</name> - </maintainer> - <use> - <flag name="bpf">Enable the BPF probe as alternative event source - to <pkg>dev-debug/scap-driver</pkg>.</flag> - <flag name="modules">Build kernel modules needed for tracing local - events. Disable this only if you intend to use sysdig purely - to work with dumpfiles.</flag> - </use> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/dev-debug/sysdig/sysdig-0.40.1-r1.ebuild b/dev-debug/sysdig/sysdig-0.40.1-r1.ebuild deleted file mode 100644 index aefc4494bab5..000000000000 --- a/dev-debug/sysdig/sysdig-0.40.1-r1.ebuild +++ /dev/null @@ -1,172 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -LUA_COMPAT=( lua5-{1,3,4} luajit ) - -inherit bash-completion-r1 cmake flag-o-matic linux-info lua-single - -DESCRIPTION="A system exploration and troubleshooting tool" -HOMEPAGE="https://www.sysdig.com/" - -# The version of falcosecurity-libs required by sysdig as source tree -LIBS_VERSION="0.20.0" -LIBS="falcosecurity-libs-${LIBS_VERSION}" - -SRC_URI="https://github.com/draios/sysdig/archive/${PV}.tar.gz -> ${P}.tar.gz - https://github.com/falcosecurity/libs/archive/${LIBS_VERSION}.tar.gz -> ${LIBS}.tar.gz" - -# The driver version as found in cmake/modules/driver.cmake or alternatively -# as git tag on the $LIBS_VERSION of falcosecurity-libs. -DRIVER_VERSION="8.0.0+driver" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="amd64 ~x86" -IUSE="bpf +modules" -REQUIRED_USE="${LUA_REQUIRED_USE}" - -RDEPEND="${LUA_DEPS} - dev-cpp/abseil-cpp:= - dev-cpp/tbb:= - dev-cpp/yaml-cpp:= - dev-libs/jsoncpp:= - dev-libs/libb64:= - bpf? ( >=dev-libs/libbpf-1.1:= ) - dev-libs/protobuf:= - dev-libs/re2:= - dev-libs/uthash - net-libs/grpc:= - net-misc/curl - sys-libs/ncurses:= - virtual/zlib:= - virtual/libelf:=" - -DEPEND="${RDEPEND} - dev-cpp/nlohmann_json - dev-cpp/valijson - virtual/os-headers" - -BDEPEND="bpf? ( - dev-util/bpftool - llvm-core/clang:*[llvm_targets_BPF] - )" - -# pin the driver to the falcosecurity-libs version -PDEPEND="modules? ( =dev-debug/scap-driver-${LIBS_VERSION}* )" - -PATCHES=( - "${FILESDIR}/0.38.1-scap-loader.patch" -) - -pkg_pretend() { - if use bpf; then - local CONFIG_CHECK=" - ~BPF - ~BPF_EVENTS - ~BPF_JIT - ~BPF_SYSCALL - ~FTRACE_SYSCALLS - ~HAVE_EBPF_JIT - " - check_extra_config - fi -} - -src_prepare() { - # manually apply patches to falcosecurity-libs - pushd "${WORKDIR}/libs-${LIBS_VERSION}" - eapply "${FILESDIR}/libs-0.20.0-fix-buffer-overrun-reading-sockets-from-procfs.patch" || die - eapply "${FILESDIR}/libs-0.20.0-fix-driver-and-bpf-makefile-for-kernel-6.13.patch" || die - eapply "${FILESDIR}/libs-0.20.0-fix-INET6_ADDRSTRLEN-buffer-size.patch" || die - popd - - # do not build with debugging info - sed -i -e 's/-ggdb//g' CMakeLists.txt "${WORKDIR}"/libs-${LIBS_VERSION}/cmake/modules/CompilerFlags.cmake || die - - # fix the driver version - sed -i -e 's/0.0.0-local/${DRIVER_VERSION}/g' cmake/modules/driver.cmake || die - - cmake_src_prepare -} - -src_configure() { - # known problems with strict aliasing: - # https://github.com/falcosecurity/libs/issues/1964 - append-flags -fno-strict-aliasing - - local mycmakeargs=( - # do not build the kernel driver - -DBUILD_DRIVER=OFF - -DENABLE_DKMS=OFF - - # disable all test targets - -DCREATE_TEST_TARGETS=OFF - - # libscap examples are not installed or really useful - -DBUILD_LIBSCAP_EXAMPLES=OFF - - # do not build internal libs as shared - -DBUILD_SHARED_LIBS=OFF - - # build modern BPF probe depending on USE - -DBUILD_SYSDIG_MODERN_BPF=$(usex bpf) - - # set driver location/version - -DDRIVER_SOURCE_DIR="${WORKDIR}"/libs-${LIBS_VERSION}/driver - -DDRIVER_VERSION=${DRIVER_VERSION} - - # point sysdig to the libs tree - -DUSE_BUNDLED_FALCOSECURITY_LIBS=ON - -DFALCOSECURITY_LIBS_SOURCE_DIR="${WORKDIR}"/libs-${LIBS_VERSION} - - # explicitly set sysdig version - required for some reason - -DSYSDIG_VERSION=${PV} - - # do not use bundled dependencies for sysdig - -DUSE_BUNDLED_DEPS=OFF - - # do not use bundled dependencies for falcosecurity-libs - -DUSE_BUNDLED_B64=OFF - -DUSE_BUNDLED_JSONCPP=OFF - -DUSE_BUNDLED_RE2=OFF - -DUSE_BUNDLED_TBB=OFF - -DUSE_BUNDLED_VALIJSON=OFF - - # set valijson include path to prevent downloading - -DVALIJSON_INCLUDE="${ESYSROOT}"/usr/include - - # enable chisels - -DWITH_CHISEL=ON - ) - - cmake_src_configure -} - -src_install() { - cmake_src_install - - # remove driver headers - rm -r "${ED}"/usr/src || die - - # remove libscap/libsinsp headers & libs (see #938187) - rm -r "${ED}"/usr/include/sysdig || die - rm -r "${ED}"/usr/$(get_libdir) || die - - # move bashcomp to the proper location - dobashcomp "${ED}"/usr/etc/bash_completion.d/sysdig || die - rm -r "${ED}"/usr/etc || die -} - -pkg_postinst() { - if use bpf; then - elog - elog "You have enabled the 'modern BPF' probe." - elog "This eBPF-based event source is an alternative to the traditional" - elog "scap kernel module." - elog - elog "To use it, start sysdig/csysdig with '--modern-bpf'." - elog - fi -} diff --git a/dev-debug/systemtap/Manifest b/dev-debug/systemtap/Manifest deleted file mode 100644 index a2051e8f85e7..000000000000 --- a/dev-debug/systemtap/Manifest +++ /dev/null @@ -1,3 +0,0 @@ -DIST systemtap-5.3.tar.gz 6604029 BLAKE2B 063a73f41bbcc3a23ea2d98ff5e3562a87aea0c78fc915f223d59a32dc763fabdf324fe820aa0e969728eeeb8cd0264fd7e3dcc7ac5d81d005aa9c81e19ea604 SHA512 b252cd00a7ddab53f19d30129834b205ce8e90ccc5422444c1d188b765c122da712f5ca73092c425aef7430888c75ebfebbe3bfd87d6df8761338a1135abda89 -DIST systemtap-5.4.tar.gz 6615758 BLAKE2B b2c3add6afcdd824d8253ee5e83837983519ffff69ff76c75abdefa64ae93128dc030b4632fe585e3b099edd635f22b6325811e704655ce57b3d460ced583af7 SHA512 5869fe3735e44be65ba7895a46b4ea66fcdcc21ed2ab0673c62d822730553837f816d82fd78eeca4bfe6f17fdeaa12eb2f94c0b0b7ebb8c495c961f0b6935785 -DIST systemtap-5.4.tar.gz.asc 228 BLAKE2B 7153476f92199eef753cd85343a4ef8fed449eacf1708c8429fa0e0511bbac959c41a5b50690837810d14b7938c87326b70e0ab6fd321af25d2b86f9c7cbd8a9 SHA512 63da7b5e8a71c942af05c0d1b18a6f99f79403c6e1f5424382067ba27c75da7bebe02df501b1c7bb602d6cb98857fe02d15fb72535a33885acbd332c8e1508ea diff --git a/dev-debug/systemtap/files/systemtap-3.1-ia64.patch b/dev-debug/systemtap/files/systemtap-3.1-ia64.patch deleted file mode 100644 index 832bfc1a47f9..000000000000 --- a/dev-debug/systemtap/files/systemtap-3.1-ia64.patch +++ /dev/null @@ -1,33 +0,0 @@ -Workaround build failure on ia64 - -Avoid 'o' constraint to allow gcc to select register operand. -That way instruction selector can satisfy all constraints -for PROBE2 macro. - -Reported-by: Émeric Maschino -Bug: https://bugs.gentoo.org/510134 ---- a/cache.cxx -+++ b/cache.cxx -@@ -8,2 +8,10 @@ - -+#ifdef __ia64__ -+// Default is: nor -+// We disable 'o' because gcc fails to select register -+// constraint for second instruction in 'add_script_to_cache' -+// https://bugs.gentoo.org/510134 -+# define STAP_SDT_ARG_CONSTRAINT nr -+#endif -+ - #include "config.h" ---- a/staprun/mainloop.c -+++ b/staprun/mainloop.c -@@ -1 +1,9 @@ -+#ifdef __ia64__ -+// Default is: nor -+// We disable 'o' because gcc fails to select register -+// constraint for second instruction in 'add_script_to_cache' -+// https://bugs.gentoo.org/510134 -+# define STAP_SDT_ARG_CONSTRAINT nr -+#endif -+ - /* -*- linux-c -*- diff --git a/dev-debug/systemtap/metadata.xml b/dev-debug/systemtap/metadata.xml deleted file mode 100644 index c113517f235c..000000000000 --- a/dev-debug/systemtap/metadata.xml +++ /dev/null @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>swegener@gentoo.org</email> - </maintainer> - <use> - <flag name="debuginfod">Enable debuginfod support via <pkg>dev-libs/elfutils</pkg> libdebuginfod</flag> - <flag name="dtrace-symlink"> - Provide /usr/bin/dtrace symlink pointing to /usr/bin/stap-dtrace. - This prevents coinstallation with <pkg>dev-debug/dtrace</pkg>. - </flag> - <flag name="libvirt">Support probing of libvirt domains.</flag> - </use> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/dev-debug/systemtap/systemtap-5.3-r1.ebuild b/dev-debug/systemtap/systemtap-5.3-r1.ebuild deleted file mode 100644 index 2216988c3879..000000000000 --- a/dev-debug/systemtap/systemtap-5.3-r1.ebuild +++ /dev/null @@ -1,163 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{13..14} ) - -inherit autotools flag-o-matic linux-info python-single-r1 toolchain-funcs - -DESCRIPTION="Linux trace/probe tool" -HOMEPAGE="https://sourceware.org/systemtap/ https://sourceware.org/systemtap/wiki" -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 ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" -fi - -LICENSE="GPL-2" -SLOT="0" -IUSE="debuginfod dtrace-symlink 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 - >=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=" - $(python_gen_cond_dep 'dev-python/setuptools[${PYTHON_USEDEP}]') - 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}" -# bug #935333, bug #923597, and so on; needs work to get passing on Gentoo. -RESTRICT="!test? ( 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[test-install] 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 - rm -rf "${D}/$(python_get_sitedir)"/*.egg-info || die - python_optimize - - # Avoid file collision with dev-debug/dtrace - mv "${ED}"/usr/bin/dtrace "${ED}"/usr/bin/stap-dtrace || die - - if use dtrace-symlink ; then - dosym stap-dtrace /usr/bin/dtrace - fi -} diff --git a/dev-debug/systemtap/systemtap-5.4.ebuild b/dev-debug/systemtap/systemtap-5.4.ebuild deleted file mode 100644 index 780eaba05d9f..000000000000 --- a/dev-debug/systemtap/systemtap-5.4.ebuild +++ /dev/null @@ -1,173 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{13..14} ) -VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/fche.asc -inherit autotools flag-o-matic linux-info python-single-r1 toolchain-funcs - -DESCRIPTION="Linux trace/probe tool" -HOMEPAGE="https://sourceware.org/systemtap/ https://sourceware.org/systemtap/wiki" - -if [[ ${PV} == 9999 ]] ; then - EGIT_REPO_URI="https://sourceware.org/git/systemtap.git" - inherit git-r3 -else - inherit verify-sig - SRC_URI=" - https://sourceware.org/ftp/${PN}/releases/${P}.tar.gz - verify-sig? ( https://sourceware.org/ftp/${PN}/releases/${P}.tar.gz.asc ) - " - - KEYWORDS="~alpha amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" - - BDEPEND="verify-sig? ( sec-keys/openpgp-keys-fche )" -fi - -LICENSE="GPL-2" -SLOT="0" -IUSE="debuginfod dtrace-symlink 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 - >=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+=" - $(python_gen_cond_dep 'dev-python/setuptools[${PYTHON_USEDEP}]') - 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}" -# bug #935333, bug #923597, and so on; needs work to get passing on Gentoo. -RESTRICT="!test? ( 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[test-install] 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 - rm -rf "${D}/$(python_get_sitedir)"/*.egg-info || die - python_optimize - - # Avoid file collision with dev-debug/dtrace - mv "${ED}"/usr/bin/dtrace "${ED}"/usr/bin/stap-dtrace || die - mv "${ED}"/usr/share/man/man1/dtrace.1 "${ED}"/usr/share/man/man1/stap-dtrace.1 || die - - if use dtrace-symlink ; then - dosym stap-dtrace /usr/bin/dtrace - newman - dtrace.1 <<<".so stap-dtrace.1" - fi -} diff --git a/dev-debug/systemtap/systemtap-9999.ebuild b/dev-debug/systemtap/systemtap-9999.ebuild deleted file mode 100644 index 105c374669c6..000000000000 --- a/dev-debug/systemtap/systemtap-9999.ebuild +++ /dev/null @@ -1,173 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{13..14} ) -VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/fche.asc -inherit autotools flag-o-matic linux-info python-single-r1 toolchain-funcs - -DESCRIPTION="Linux trace/probe tool" -HOMEPAGE="https://sourceware.org/systemtap/ https://sourceware.org/systemtap/wiki" - -if [[ ${PV} == 9999 ]] ; then - EGIT_REPO_URI="https://sourceware.org/git/systemtap.git" - inherit git-r3 -else - inherit verify-sig - SRC_URI=" - https://sourceware.org/ftp/${PN}/releases/${P}.tar.gz - verify-sig? ( https://sourceware.org/ftp/${PN}/releases/${P}.tar.gz.asc ) - " - - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" - - BDEPEND="verify-sig? ( sec-keys/openpgp-keys-fche )" -fi - -LICENSE="GPL-2" -SLOT="0" -IUSE="debuginfod dtrace-symlink 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 - >=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+=" - $(python_gen_cond_dep 'dev-python/setuptools[${PYTHON_USEDEP}]') - 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}" -# bug #935333, bug #923597, and so on; needs work to get passing on Gentoo. -RESTRICT="!test? ( 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[test-install] 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 - rm -rf "${D}/$(python_get_sitedir)"/*.egg-info || die - python_optimize - - # Avoid file collision with dev-debug/dtrace - mv "${ED}"/usr/bin/dtrace "${ED}"/usr/bin/stap-dtrace || die - mv "${ED}"/usr/share/man/man1/dtrace.1 "${ED}"/usr/share/man/man1/stap-dtrace.1 || die - - if use dtrace-symlink ; then - dosym stap-dtrace /usr/bin/dtrace - newman - dtrace.1 <<<".so stap-dtrace.1" - fi -} diff --git a/dev-debug/valgrind/Manifest b/dev-debug/valgrind/Manifest deleted file mode 100644 index 2498da3b451a..000000000000 --- a/dev-debug/valgrind/Manifest +++ /dev/null @@ -1,8 +0,0 @@ -DIST valgrind-3.26.0-patches-1.tar.xz 8092 BLAKE2B e2e4874ddd9129128153fc2ad0a35e6ecf4f81662c416257624600750c80cf959ff41ab5de06d47a841d640d9dfa0bb965f067d8c08d815931c6dd02c5fcd0bf SHA512 d55f283b834d3be572b4b2cdbdc11a15975162333052bbf77b3b7a0c29b170d332427d4ce24b2790aacabe737f02ef6ad4f2898ca625378631513fb60aaaba58 -DIST valgrind-3.26.0.tar.bz2 17182495 BLAKE2B 55e066b49e122f65df0c7129f25613f2d64fef6b4a7da59f42280e1a5a4086db84d033b8fca714b7ec8da506dbc71e8814f68f5b3d302c7373dbce8dac905b03 SHA512 80ebf9197be602fdd4aad0e9277e6ef2fd25ede9cecb6e6d159f6f062c13f62ad907c6b6e7000e82b3404d8b4f9e7bf15813f60d9fed414c7b713a4280c82898 -DIST valgrind-3.26.0.tar.bz2.asc 228 BLAKE2B 7ee59c96f5929e2de3478c062208e5fcf645e86f0894cb9b6330bb320b518f2e55e432ab31c813c623208216859ddcfcb673417c5a2be3982f2a9d23f4dcd698 SHA512 ecae4158c64bc4ff9c6c5859f41d8a724c5207b5dbac75772d64c23baf78a280159b1b954a16ac73993eb19c39e1fcb3bd0c946c0e18209f3cb8f3d9238d6071 -DIST valgrind-3.27.0-patches-1.tar.xz 1908 BLAKE2B c897cd70b2c27479ab51446f6d2c6e156f7a92f852720ad514a21dc5e37210da3b7ce250463b7b091794b143c840258efad8649bb133167acb8faa547074809f SHA512 f3e3108d4f4d4d614606e2d0232814035be9d9412d1209232ad2b22bf3fe3efcb1b49fe71856fe091924fe7732759b022627dc4a400cf20353c15301ff5eaf0e -DIST valgrind-3.27.0.tar.bz2 17294027 BLAKE2B 0b996f238e4cbe6c6b42e07677c658b995bbf90d5a4c00c6d4a0fdb651d28644e90dcd40e3e715f74417cadbea60c34cc897428d61574103c2da70f4abcac63f SHA512 a171d95426835604a426e77b3745a05ab1557972fceb513e2caa76e71192c9763fe4c2190249a2312ae3a94511ee2aefa9a926858c11a724b8d95f497b083cf3 -DIST valgrind-3.27.0.tar.bz2.asc 228 BLAKE2B 9b150d2c28799548b6a23e40d4e80846959c0ae40872fe0616c257dcdf9d622fc09ce900b08d54ad24dd74a4577f6a6aabd93c53f23f235020f66ee15f61df8b SHA512 3481d16e0170ed636c49b7527803efed9dce2cdbbfad80cfd2ef708d849954a3a7ee0db5df971653a7a8f896f3618ffd947911c5e8eed36e3f21a5d83cec518b -DIST valgrind-3.27.1.tar.bz2 17372682 BLAKE2B c161e0b08127ff361d19327d81428312a69f61ea088ccd83fd564c65b2508228bbe7e23bcdbce535e053623c73d8ebb92b8a56e418708e9b65fe2f03554a229e SHA512 4522e345fe31bc10478f21ab261cf7b3e509d80fe98fd0c7c9778ac9a9f90e1d8fa6e54a37c2e23114c01c95131035103fc1e78661710d7f45f5d564a31c1015 -DIST valgrind-3.27.1.tar.bz2.asc 228 BLAKE2B 4a443bde25564246f297bf27d138460cbf02f6bfe4978046380a851d4c25324b35c1ab139711952c741bb31f1561599da97e27e4d08e346797b30ef704008d71 SHA512 9281f43808d776b35dd39df010d8036929506e0fc933e7a66459b0c182febaaff663f5cecc1a0499d420fa7b91fee5ddf5642fbf727753690fdd72a24f6e8769 diff --git a/dev-debug/valgrind/files/valgrind-3.15.0-Build-ldst_multiple-test-with-fno-pie.patch b/dev-debug/valgrind/files/valgrind-3.15.0-Build-ldst_multiple-test-with-fno-pie.patch deleted file mode 100644 index 44176658df74..000000000000 --- a/dev-debug/valgrind/files/valgrind-3.15.0-Build-ldst_multiple-test-with-fno-pie.patch +++ /dev/null @@ -1,22 +0,0 @@ -From beab8d9f8d65230567270331017184c8762faa42 Mon Sep 17 00:00:00 2001 -From: Matt Turner <mattst88@gmail.com> -Date: Mon, 4 Nov 2019 09:12:16 -0800 -Subject: [PATCH] Build ldst_multiple test with -fno-pie - -Bug: https://bugs.gentoo.org/685070 ---- - none/tests/ppc32/Makefile.am | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/none/tests/ppc32/Makefile.am b/none/tests/ppc32/Makefile.am -index 11697c99a..222efd3f2 100644 ---- a/none/tests/ppc32/Makefile.am -+++ b/none/tests/ppc32/Makefile.am -@@ -156,3 +156,4 @@ test_isa_2_07_part2_LDADD = -lm - test_tm_LDADD = -lm - test_touch_tm_LDADD = -lm - -+ldst_multiple_CFLAGS = $(AM_CFLAGS) -fno-pie --- -2.23.0 - diff --git a/dev-debug/valgrind/files/valgrind-3.21.0-glibc-2.34-suppressions.patch b/dev-debug/valgrind/files/valgrind-3.21.0-glibc-2.34-suppressions.patch deleted file mode 100644 index c4111326cfa2..000000000000 --- a/dev-debug/valgrind/files/valgrind-3.21.0-glibc-2.34-suppressions.patch +++ /dev/null @@ -1,197 +0,0 @@ -commit e04914e10126d3a8de13302e958bbfd5e83a6637 -Author: Romain Geissler <romain.geissler@amadeus.com> -Date: Mon Jan 30 16:09:47 2023 +0000 - - Fragile temporary fix for https://bugs.kde.org/show_bug.cgi?id=464671: avoid using @GLIBC_VERSION@ with our recent toolchains. - - This is fragile as it might a bit too many things (especially ld*.so, which maybe shall be written "ld-linux-*.so" to be a bit more robust) - and also it doesn't work for glibc < 2.34. - - Ideally something similar to GLIBC_LIBC_PATH shall be introduced for ld.so and libdl.so, so that - it covers both glibc < 2.34 and glibc >= 2.34. - ---- a/glibc-2.X.supp.in -+++ b/glibc-2.X.supp.in -@@ -39,74 +39,74 @@ - { - dl-hack3-cond-1 - Memcheck:Cond -- obj:*/lib*/ld-@GLIBC_VERSION@*.so* -- obj:*/lib*/ld-@GLIBC_VERSION@*.so* -- obj:*/lib*/ld-@GLIBC_VERSION@*.so* -+ obj:*/lib*/ld*.so* -+ obj:*/lib*/ld*.so* -+ obj:*/lib*/ld*.so* - } - { - dl-hack3-cond-2 - Memcheck:Cond -- obj:*/lib*/ld-@GLIBC_VERSION@*.so* -- obj:*/lib*/ld-@GLIBC_VERSION@*.so* -- obj:*/lib*/libc-@GLIBC_VERSION@*.so* -+ obj:*/lib*/ld*.so* -+ obj:*/lib*/ld*.so* -+ obj:@GLIBC_LIBC_PATH@ - } - { - dl-hack3-cond-3 - Memcheck:Cond -- obj:*/lib*/ld-@GLIBC_VERSION@*.so* -- obj:*/lib*/libc-@GLIBC_VERSION@*.so* -- obj:*/lib*/libc-@GLIBC_VERSION@*.so* -+ obj:*/lib*/ld*.so* -+ obj:@GLIBC_LIBC_PATH@ -+ obj:@GLIBC_LIBC_PATH@ - } - { - dl-hack3-cond-4 - Memcheck:Cond -- obj:*/lib*/ld-@GLIBC_VERSION@*.so* -- obj:*/lib*/ld-@GLIBC_VERSION@*.so* -- obj:*/lib*/libdl-@GLIBC_VERSION@*.so* -+ obj:*/lib*/ld*.so* -+ obj:*/lib*/ld*.so* -+ obj:@GLIBC_LIBC_PATH@ - } - - { - dl-hack4-64bit-addr-1 - Memcheck:Addr8 -- obj:*/lib*/ld-@GLIBC_VERSION@*.so* -- obj:*/lib*/ld-@GLIBC_VERSION@*.so* -- obj:*/lib*/ld-@GLIBC_VERSION@*.so* -+ obj:*/lib*/ld*.so* -+ obj:*/lib*/ld*.so* -+ obj:*/lib*/ld*.so* - } - { - dl-hack4-64bit-addr-2 - Memcheck:Addr8 -- obj:*/lib*/ld-@GLIBC_VERSION@*.so* -- obj:*/lib*/ld-@GLIBC_VERSION@*.so* -- obj:*/lib*/libc-@GLIBC_VERSION@*.so* -+ obj:*/lib*/ld*.so* -+ obj:*/lib*/ld*.so* -+ obj:@GLIBC_LIBC_PATH@ - } - { - dl-hack4-64bit-addr-3 - Memcheck:Addr8 -- obj:*/lib*/ld-@GLIBC_VERSION@*.so* -- obj:*/lib*/ld-@GLIBC_VERSION@*.so* -- obj:*/lib*/libdl-@GLIBC_VERSION@*.so* -+ obj:*/lib*/ld*.so* -+ obj:*/lib*/ld*.so* -+ obj:@GLIBC_LIBC_PATH@ - } - - { - dl-hack5-32bit-addr-1 - Memcheck:Addr4 -- obj:*/lib*/ld-@GLIBC_VERSION@*.so -- obj:*/lib*/ld-@GLIBC_VERSION@*.so -- obj:*/lib*/ld-@GLIBC_VERSION@*.so -+ obj:*/lib*/ld*.so -+ obj:*/lib*/ld*.so -+ obj:*/lib*/ld*.so - } - { - dl-hack5-32bit-addr-3 - Memcheck:Addr4 -- obj:*/lib*/ld-@GLIBC_VERSION@*.so -- obj:*/lib*/ld-@GLIBC_VERSION@*.so -- obj:*/lib*/libdl-@GLIBC_VERSION@*.so* -+ obj:*/lib*/ld*.so -+ obj:*/lib*/ld*.so -+ obj:@GLIBC_LIBC_PATH@ - } - { - dl-hack5-32bit-addr-4 - Memcheck:Addr4 -- obj:*/lib*/ld-@GLIBC_VERSION@*.so -- obj:*/lib*/libdl-@GLIBC_VERSION@*.so* -- obj:*/lib*/ld-@GLIBC_VERSION@*.so -+ obj:*/lib*/ld*.so -+ obj:@GLIBC_LIBC_PATH@ -+ obj:*/lib*/ld*.so - } - - -@@ -124,7 +124,7 @@ - glibc-2.5.x-on-SUSE-10.2-(PPC)-2a - Memcheck:Cond - fun:index -- obj:*ld-@GLIBC_VERSION@.*.so -+ obj:*/lib*/ld*.so* - } - { - glibc-2.5.x-on-SuSE-10.2-(PPC)-2b -@@ -136,7 +136,7 @@ - glibc-2.5.5-on-SuSE-10.2-(PPC)-2c - Memcheck:Addr4 - fun:index -- obj:*ld-@GLIBC_VERSION@.*.so -+ obj:*/lib*/ld*.so* - } - { - glibc-2.3.5-on-SuSE-10.1-(PPC)-3 -@@ -149,9 +149,9 @@ - { - glibc-@GLIBC_VERSION@-on-SUSE-10.3-(x86) - Memcheck:Addr4 -- obj:*/lib/ld-@GLIBC_VERSION@*.so -- obj:*/lib/ld-@GLIBC_VERSION@*.so -- obj:*/lib/ld-@GLIBC_VERSION@*.so -+ obj:*/lib/ld*.so -+ obj:*/lib/ld*.so -+ obj:*/lib/ld*.so - } - - { -@@ -168,9 +168,9 @@ - Memcheck:Param - socketcall.sendto(msg) - fun:__sendto_nocancel -- obj:/*libc-@GLIBC_VERSION@*.so -- obj:/*libc-@GLIBC_VERSION@*.so -- obj:/*libc-@GLIBC_VERSION@*.so -+ obj:@GLIBC_LIBC_PATH@ -+ obj:@GLIBC_LIBC_PATH@ -+ obj:@GLIBC_LIBC_PATH@ - } - { - glibc24-64bit-padding-1c -@@ -180,7 +180,7 @@ - fun:__nscd_get_map_ref - fun:nscd_get*_r - fun:*nscd* -- obj:/*libc-@GLIBC_VERSION@*.so -+ obj:@GLIBC_LIBC_PATH@ - } - - -@@ -199,18 +199,18 @@ - Memcheck:Param - socketcall.sendto(msg) - fun:send -- obj:/*libc-@GLIBC_VERSION@*.so -- obj:/*libc-@GLIBC_VERSION@*.so -- obj:/*libc-@GLIBC_VERSION@*.so -+ obj:@GLIBC_LIBC_PATH@ -+ obj:@GLIBC_LIBC_PATH@ -+ obj:@GLIBC_LIBC_PATH@ - } - { - X11-64bit-padding-4b - Memcheck:Param - socketcall.send(msg) - fun:send -- obj:/*libc-@GLIBC_VERSION@*.so -- obj:/*libc-@GLIBC_VERSION@*.so -- obj:/*libc-@GLIBC_VERSION@*.so -+ obj:@GLIBC_LIBC_PATH@ -+ obj:@GLIBC_LIBC_PATH@ -+ obj:@GLIBC_LIBC_PATH@ - } - - ##----------------------------------------------------------------------## diff --git a/dev-debug/valgrind/files/valgrind-3.26.0-gcc16.patch b/dev-debug/valgrind/files/valgrind-3.26.0-gcc16.patch deleted file mode 100644 index 4b9521456909..000000000000 --- a/dev-debug/valgrind/files/valgrind-3.26.0-gcc16.patch +++ /dev/null @@ -1,21 +0,0 @@ -Small backport(ish) of https://sourceware.org/git/?p=valgrind.git;a=commit;h=51c5973d9d1f096b9472df75638f2a53324fafed ---- a/configure.ac -+++ b/configure.ac -@@ -2591,7 +2591,7 @@ AC_GCC_WARNING_SUBST_NO([unused-result], [FLAG_W_NO_UNUSED_RESULT]) - AC_GCC_WARNING_SUBST_NO([infinite-recursion], [FLAG_W_NO_INFINITE_RECURSION]) - AC_GCC_WARNING_SUBST_NO([deprecated], [FLAG_W_NO_DEPRECATED]) - # OK for 32 and 64 bit --AC_GCC_WARNING_SUBST_NO([alloc-size-larger-than=18446744073709551615], [FLAG_W_NO_ALLOC_SIZE_LARGER_THAN]) -+AC_GCC_WARNING_SUBST([alloc-size-larger-than=18446744073709551616], [FLAG_W_NO_ALLOC_SIZE_LARGER_THAN]) - AC_GCC_WARNING_SUBST_NO([alloc-size], [FLAG_W_NO_ALLOC_SIZE]) - - AC_GCC_WARNING_SUBST([write-strings], [FLAG_W_WRITE_STRINGS]) -@@ -2610,7 +2610,7 @@ AC_GCC_WARNING_SUBST([implicit-fallthrough=2], [FLAG_W_IMPLICIT_FALLTHROUGH]) - AC_DEFUN([AC_GXX_WARNING_SUBST_NO],[ - AC_MSG_CHECKING([if g++ accepts -W$1]) - safe_CXXFLAGS=$CXXFLAGS -- CXXFLAGS="-W$1 -Werror" -+ CXXFLAGS="-W$1 -Wno-$1 -Werror" - AC_LANG_PUSH(C++) - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[;]])], [ - AC_SUBST([$2], [-Wno-$1]) diff --git a/dev-debug/valgrind/files/valgrind-3.7.0-respect-flags.patch b/dev-debug/valgrind/files/valgrind-3.7.0-respect-flags.patch deleted file mode 100644 index 860e09c86ed3..000000000000 --- a/dev-debug/valgrind/files/valgrind-3.7.0-respect-flags.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -Naur valgrind-3.7.0.orig//mpi/Makefile.am valgrind-3.7.0/mpi/Makefile.am ---- valgrind-3.7.0.orig//mpi/Makefile.am 2011-10-26 17:24:23.000000000 -0400 -+++ valgrind-3.7.0/mpi/Makefile.am 2011-11-10 16:03:14.000000000 -0500 -@@ -7,9 +7,6 @@ - CC = $(MPI_CC) - DEFS = - DEFAULT_INCLUDES = --CPPFLAGS = --CFLAGS = --LDFLAGS = - - EXTRA_DIST = \ - mpiwrap_type_test.c diff --git a/dev-debug/valgrind/metadata.xml b/dev-debug/valgrind/metadata.xml deleted file mode 100644 index 9fb531a356b2..000000000000 --- a/dev-debug/valgrind/metadata.xml +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>toolchain@gentoo.org</email> - <name>Gentoo Toolchain Project</name> - </maintainer> - <longdescription> - Valgrind is a GPL'd tool to help you find memory-management problems - in your programs. When a program is run under Valgrind's supervision, - all reads and writes of memory are checked, and calls to - malloc/new/free/delete are intercepted. As a result, Valgrind can - detect problems such as - - - Use of uninitialised memory - - Reading/writing memory after it has been free'd - - Reading/writing off the end of malloc'd blocks - - Reading/writing inappropriate areas on the stack - - Memory leaks -- where pointers to malloc'd blocks are lost forever - - Passing of uninitialised and/or unaddressible memory to system calls - - Mismatched use of malloc/new/new [] vs free/delete/delete [] - - Some abuses of the POSIX Pthreads API - </longdescription> - <upstream> - <remote-id type="cpe">cpe:/a:valgrind:valgrind</remote-id> - </upstream> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/dev-debug/valgrind/valgrind-3.26.0.ebuild b/dev-debug/valgrind/valgrind-3.26.0.ebuild deleted file mode 100644 index 1c45634d1490..000000000000 --- a/dev-debug/valgrind/valgrind-3.26.0.ebuild +++ /dev/null @@ -1,204 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# The Valgrind upstream maintainer also maintains it in Fedora and will -# backport fixes there which haven't yet made it into a release. Keep an eye -# on it for fixes we should cherry-pick too: -# https://src.fedoraproject.org/rpms/valgrind/tree/rawhide -# -# Also check the ${PV}_STABLE branch upstream for backports. - -inherit autotools dot-a flag-o-matic toolchain-funcs multilib pax-utils - -DESCRIPTION="An open-source memory debugger for GNU/Linux" -HOMEPAGE="https://valgrind.org" - -if [[ ${PV} == 9999 ]]; then - EGIT_REPO_URI=" - https://sourceware.org/git/${PN}.git - https://git.sr.ht/~sourceware/valgrind - " - inherit git-r3 -else - VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/valgrind.asc - inherit verify-sig - - MY_P="${P/_rc/.RC}" - MY_P="${MY_P%%_p*}" - VALGRIND_PATCH_TARBALL="${MY_P}-patches-${PV##*_p}" - SRC_URI=" - https://sourceware.org/pub/valgrind/${MY_P}.tar.bz2 - verify-sig? ( https://sourceware.org/pub/valgrind/${MY_P}.tar.bz2.asc ) - " - # Rollups of backports on ${PV}_STABLE branch upstream. This branch - # is usually announced on the mailing list and distros are encouraged - # to pull from it regularly. - if [[ ${PV} == *_p* ]] ; then - SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${VALGRIND_PATCH_TARBALL}.tar.xz" - fi - - S="${WORKDIR}"/${MY_P} - - if [[ ${PV} != *_rc* ]] ; then - KEYWORDS="-* amd64 arm arm64 ppc ppc64 ~riscv x86 ~x64-macos ~x64-solaris" - fi -fi - -LICENSE="GPL-3+" -SLOT="0" -IUSE="mpi" - -DEPEND="mpi? ( virtual/mpi )" -RDEPEND="${DEPEND}" -if [[ ${PV} == 9999 ]] ; then - # Needed for man pages - BDEPEND+=" - app-text/docbook-xsl-stylesheets - dev-libs/libxslt - " -else - BDEPEND+=" verify-sig? ( >=sec-keys/openpgp-keys-valgrind-20251018 )" -fi - -PATCHES=( - # Respect CFLAGS, LDFLAGS - "${FILESDIR}"/${PN}-3.7.0-respect-flags.patch - "${FILESDIR}"/${PN}-3.15.0-Build-ldst_multiple-test-with-fno-pie.patch - "${FILESDIR}"/${PN}-3.21.0-glibc-2.34-suppressions.patch - "${FILESDIR}"/${P}-gcc16.patch -) - -QA_CONFIG_IMPL_DECL_SKIP+=( - # "checking if gcc accepts nested functions" but clang cannot handle good - # errors and reports both "function definition is not allowed here" and - # -Wimplicit-function-declaration. bug #900396 - foo - # FreeBSD function, bug #932822 - aio_readv -) - -src_unpack() { - if [[ ${PV} == 9999 ]] ; then - git-r3_src_unpack - elif use verify-sig ; then - # Needed for downloaded patch (which is unsigned, which is fine) - verify-sig_verify_detached "${DISTDIR}"/${MY_P}.tar.bz2{,.asc} - fi - - default -} - -src_prepare() { - # Correct hard coded doc location - sed -i -e "s:doc/valgrind:doc/${PF}:" docs/Makefile.am || die - - # Don't force multiarch stuff on OSX, bug #306467 - sed -i -e 's:-arch \(i386\|x86_64\)::g' Makefile.all.am || die - - if [[ ${CHOST} == *-solaris* ]] ; then - # upstream doesn't support this, but we don't build with - # Sun/Oracle ld, we have a GNU toolchain, so get some things - # working the Linux/GNU way - find "${S}" -name "Makefile.am" -o -name "Makefile.tool.am" | xargs \ - sed -i -e 's:-M,/usr/lib/ld/map.noexstk:-z,noexecstack:' || die - cp "${S}"/coregrind/link_tool_exe_{linux,solaris}.in - fi - - if [[ ${PV} != 9999 && -d "${WORKDIR}"/${VALGRIND_PATCH_TARBALL} ]] ; then - PATCHES+=( "${WORKDIR}"/${VALGRIND_PATCH_TARBALL} ) - fi - - default - - eautoreconf -} - -src_configure() { - local myconf=( - --with-gdbscripts-dir="${EPREFIX}"/usr/share/gdb/auto-load - ) - - tc-is-lto && myconf+=( --enable-lto ) - lto-guarantee-fat - - # Respect ar, bug #468114 - tc-export AR - - # -fomit-frame-pointer "Assembler messages: Error: junk `8' after expression" - # while compiling insn_sse.c in none/tests/x86 - # -fstack-protector more undefined references to __guard and __stack_smash_handler - # because valgrind doesn't link to glibc (bug #114347) - # -fstack-protector-all Fails same way as -fstack-protector/-fstack-protector-strong. - # Note: -fstack-protector-explicit is a no-op for Valgrind, no need to strip it - # -fstack-protector-strong See -fstack-protector (bug #620402) - # -m64 -mx32 for multilib-portage, bug #398825 - # -fharden-control-flow-redundancy: breaks runtime ('jump to the invalid address stated on the next line') - filter-flags -fomit-frame-pointer - filter-flags -fstack-protector - filter-flags -fstack-protector-all - filter-flags -fstack-protector-strong - filter-flags -m64 -mx32 - filter-flags -fsanitize -fsanitize=* - filter-flags -fharden-control-flow-redundancy - append-cflags $(test-flags-CC -fno-harden-control-flow-redundancy) - filter-lto - - if use amd64 || use ppc64; then - ! has_multilib_profile && myconf+=("--enable-only64bit") - fi - - # Force bitness on darwin, bug #306467 - use x64-macos && myconf+=("--enable-only64bit") - - # Don't use mpicc unless the user asked for it (bug #258832) - if ! use mpi; then - myconf+=("--without-mpicc") - fi - - econf "${myconf[@]}" -} - -src_test() { - # fxsave.o, tronical.o have textrels - # -fno-strict-aliasing: https://bugs.kde.org/show_bug.cgi?id=486093 - emake CFLAGS="${CFLAGS} -fno-strict-aliasing" LDFLAGS="${LDFLAGS} -Wl,-z,notext" check -} - -src_install() { - if [[ ${PV} == 9999 ]]; then - # TODO: Could do HTML docs too with 'all-docs' - emake -C docs man-pages FAQ.txt - mv docs/FAQ.txt . || die "Couldn't move FAQ.txt" - fi - - default - - dodoc FAQ.txt - - pax-mark m "${ED}"/usr/$(get_libdir)/valgrind/*-*-linux - - strip-lto-bytecode - - # See README_PACKAGERS - dostrip -x /usr/libexec/valgrind/vgpreload* /usr/$(get_libdir)/valgrind/* - - if [[ ${CHOST} == *-darwin* ]] ; then - # fix install_names on shared libraries, can't turn them into bundles, - # as dyld won't load them any more then, bug #306467 - local l - for l in "${ED}"/usr/lib/valgrind/*.so ; do - install_name_tool -id "${EPREFIX}"/usr/lib/valgrind/${l##*/} "${l}" - done - fi -} - -pkg_postinst() { - elog "Valgrind will not work if libc (e.g. glibc) does not have debug symbols." - elog "To fix this you can add splitdebug to FEATURES in make.conf" - elog "and remerge glibc. See:" - elog "https://bugs.gentoo.org/214065" - elog "https://bugs.gentoo.org/274771" - elog "https://bugs.gentoo.org/388703" -} diff --git a/dev-debug/valgrind/valgrind-3.26.0_p1.ebuild b/dev-debug/valgrind/valgrind-3.26.0_p1.ebuild deleted file mode 100644 index 3280daff3f83..000000000000 --- a/dev-debug/valgrind/valgrind-3.26.0_p1.ebuild +++ /dev/null @@ -1,203 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# The Valgrind upstream maintainer also maintains it in Fedora and will -# backport fixes there which haven't yet made it into a release. Keep an eye -# on it for fixes we should cherry-pick too: -# https://src.fedoraproject.org/rpms/valgrind/tree/rawhide -# -# Also check the ${PV}_STABLE branch upstream for backports. - -inherit autotools dot-a flag-o-matic toolchain-funcs multilib pax-utils - -DESCRIPTION="An open-source memory debugger for GNU/Linux" -HOMEPAGE="https://valgrind.org" - -if [[ ${PV} == 9999 ]]; then - EGIT_REPO_URI=" - https://sourceware.org/git/${PN}.git - https://git.sr.ht/~sourceware/valgrind - " - inherit git-r3 -else - VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/valgrind.asc - inherit verify-sig - - MY_P="${P/_rc/.RC}" - MY_P="${MY_P%%_p*}" - VALGRIND_PATCH_TARBALL="${MY_P}-patches-${PV##*_p}" - SRC_URI=" - https://sourceware.org/pub/valgrind/${MY_P}.tar.bz2 - verify-sig? ( https://sourceware.org/pub/valgrind/${MY_P}.tar.bz2.asc ) - " - # Rollups of backports on ${PV}_STABLE branch upstream. This branch - # is usually announced on the mailing list and distros are encouraged - # to pull from it regularly. - if [[ ${PV} == *_p* ]] ; then - SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${VALGRIND_PATCH_TARBALL}.tar.xz" - fi - - S="${WORKDIR}"/${MY_P} - - if [[ ${PV} != *_rc* ]] ; then - KEYWORDS="-* amd64 ~arm arm64 ppc ppc64 ~riscv x86 ~x64-macos ~x64-solaris" - fi -fi - -LICENSE="GPL-3+" -SLOT="0" -IUSE="mpi" - -DEPEND="mpi? ( virtual/mpi )" -RDEPEND="${DEPEND}" -if [[ ${PV} == 9999 ]] ; then - # Needed for man pages - BDEPEND+=" - app-text/docbook-xsl-stylesheets - dev-libs/libxslt - " -else - BDEPEND+=" verify-sig? ( >=sec-keys/openpgp-keys-valgrind-20251018 )" -fi - -PATCHES=( - # Respect CFLAGS, LDFLAGS - "${FILESDIR}"/${PN}-3.7.0-respect-flags.patch - "${FILESDIR}"/${PN}-3.15.0-Build-ldst_multiple-test-with-fno-pie.patch - "${FILESDIR}"/${PN}-3.21.0-glibc-2.34-suppressions.patch -) - -QA_CONFIG_IMPL_DECL_SKIP+=( - # "checking if gcc accepts nested functions" but clang cannot handle good - # errors and reports both "function definition is not allowed here" and - # -Wimplicit-function-declaration. bug #900396 - foo - # FreeBSD function, bug #932822 - aio_readv -) - -src_unpack() { - if [[ ${PV} == 9999 ]] ; then - git-r3_src_unpack - elif use verify-sig ; then - # Needed for downloaded patch (which is unsigned, which is fine) - verify-sig_verify_detached "${DISTDIR}"/${MY_P}.tar.bz2{,.asc} - fi - - default -} - -src_prepare() { - # Correct hard coded doc location - sed -i -e "s:doc/valgrind:doc/${PF}:" docs/Makefile.am || die - - # Don't force multiarch stuff on OSX, bug #306467 - sed -i -e 's:-arch \(i386\|x86_64\)::g' Makefile.all.am || die - - if [[ ${CHOST} == *-solaris* ]] ; then - # upstream doesn't support this, but we don't build with - # Sun/Oracle ld, we have a GNU toolchain, so get some things - # working the Linux/GNU way - find "${S}" -name "Makefile.am" -o -name "Makefile.tool.am" | xargs \ - sed -i -e 's:-M,/usr/lib/ld/map.noexstk:-z,noexecstack:' || die - cp "${S}"/coregrind/link_tool_exe_{linux,solaris}.in - fi - - if [[ ${PV} != 9999 && -d "${WORKDIR}"/${VALGRIND_PATCH_TARBALL} ]] ; then - PATCHES+=( "${WORKDIR}"/${VALGRIND_PATCH_TARBALL} ) - fi - - default - - eautoreconf -} - -src_configure() { - local myconf=( - --with-gdbscripts-dir="${EPREFIX}"/usr/share/gdb/auto-load - ) - - tc-is-lto && myconf+=( --enable-lto ) - lto-guarantee-fat - - # Respect ar, bug #468114 - tc-export AR - - # -fomit-frame-pointer "Assembler messages: Error: junk `8' after expression" - # while compiling insn_sse.c in none/tests/x86 - # -fstack-protector more undefined references to __guard and __stack_smash_handler - # because valgrind doesn't link to glibc (bug #114347) - # -fstack-protector-all Fails same way as -fstack-protector/-fstack-protector-strong. - # Note: -fstack-protector-explicit is a no-op for Valgrind, no need to strip it - # -fstack-protector-strong See -fstack-protector (bug #620402) - # -m64 -mx32 for multilib-portage, bug #398825 - # -fharden-control-flow-redundancy: breaks runtime ('jump to the invalid address stated on the next line') - filter-flags -fomit-frame-pointer - filter-flags -fstack-protector - filter-flags -fstack-protector-all - filter-flags -fstack-protector-strong - filter-flags -m64 -mx32 - filter-flags -fsanitize -fsanitize=* - filter-flags -fharden-control-flow-redundancy - append-cflags $(test-flags-CC -fno-harden-control-flow-redundancy) - filter-lto - - if use amd64 || use ppc64; then - ! has_multilib_profile && myconf+=("--enable-only64bit") - fi - - # Force bitness on darwin, bug #306467 - use x64-macos && myconf+=("--enable-only64bit") - - # Don't use mpicc unless the user asked for it (bug #258832) - if ! use mpi; then - myconf+=("--without-mpicc") - fi - - econf "${myconf[@]}" -} - -src_test() { - # fxsave.o, tronical.o have textrels - # -fno-strict-aliasing: https://bugs.kde.org/show_bug.cgi?id=486093 - emake CFLAGS="${CFLAGS} -fno-strict-aliasing" LDFLAGS="${LDFLAGS} -Wl,-z,notext" check -} - -src_install() { - if [[ ${PV} == 9999 ]]; then - # TODO: Could do HTML docs too with 'all-docs' - emake -C docs man-pages FAQ.txt - mv docs/FAQ.txt . || die "Couldn't move FAQ.txt" - fi - - default - - dodoc FAQ.txt - - pax-mark m "${ED}"/usr/$(get_libdir)/valgrind/*-*-linux - - strip-lto-bytecode - - # See README_PACKAGERS - dostrip -x /usr/libexec/valgrind/vgpreload* /usr/$(get_libdir)/valgrind/* - - if [[ ${CHOST} == *-darwin* ]] ; then - # fix install_names on shared libraries, can't turn them into bundles, - # as dyld won't load them any more then, bug #306467 - local l - for l in "${ED}"/usr/lib/valgrind/*.so ; do - install_name_tool -id "${EPREFIX}"/usr/lib/valgrind/${l##*/} "${l}" - done - fi -} - -pkg_postinst() { - elog "Valgrind will not work if libc (e.g. glibc) does not have debug symbols." - elog "To fix this you can add splitdebug to FEATURES in make.conf" - elog "and remerge glibc. See:" - elog "https://bugs.gentoo.org/214065" - elog "https://bugs.gentoo.org/274771" - elog "https://bugs.gentoo.org/388703" -} diff --git a/dev-debug/valgrind/valgrind-3.27.0.ebuild b/dev-debug/valgrind/valgrind-3.27.0.ebuild deleted file mode 100644 index d9ec37366300..000000000000 --- a/dev-debug/valgrind/valgrind-3.27.0.ebuild +++ /dev/null @@ -1,203 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# The Valgrind upstream maintainer also maintains it in Fedora and will -# backport fixes there which haven't yet made it into a release. Keep an eye -# on it for fixes we should cherry-pick too: -# https://src.fedoraproject.org/rpms/valgrind/tree/rawhide -# -# Also check the ${PV}_STABLE branch upstream for backports. - -inherit autotools dot-a flag-o-matic toolchain-funcs multilib pax-utils - -DESCRIPTION="An open-source memory debugger for GNU/Linux" -HOMEPAGE="https://valgrind.org" - -if [[ ${PV} == 9999 ]]; then - EGIT_REPO_URI=" - https://sourceware.org/git/${PN}.git - https://git.sr.ht/~sourceware/valgrind - " - inherit git-r3 -else - VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/valgrind.asc - inherit verify-sig - - MY_P="${P/_rc/.RC}" - MY_P="${MY_P%%_p*}" - VALGRIND_PATCH_TARBALL="${MY_P}-patches-${PV##*_p}" - SRC_URI=" - https://sourceware.org/pub/valgrind/${MY_P}.tar.bz2 - verify-sig? ( https://sourceware.org/pub/valgrind/${MY_P}.tar.bz2.asc ) - " - # Rollups of backports on ${PV}_STABLE branch upstream. This branch - # is usually announced on the mailing list and distros are encouraged - # to pull from it regularly. - if [[ ${PV} == *_p* ]] ; then - SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${VALGRIND_PATCH_TARBALL}.tar.xz" - fi - - S="${WORKDIR}"/${MY_P} - - if [[ ${PV} != *_rc* ]] ; then - KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~x64-macos ~x64-solaris" - fi -fi - -LICENSE="GPL-3+" -SLOT="0" -IUSE="mpi" - -DEPEND="mpi? ( virtual/mpi )" -RDEPEND="${DEPEND}" -if [[ ${PV} == 9999 ]] ; then - # Needed for man pages - BDEPEND+=" - app-text/docbook-xsl-stylesheets - dev-libs/libxslt - " -else - BDEPEND+=" verify-sig? ( >=sec-keys/openpgp-keys-valgrind-20251018 )" -fi - -PATCHES=( - # Respect CFLAGS, LDFLAGS - "${FILESDIR}"/${PN}-3.7.0-respect-flags.patch - "${FILESDIR}"/${PN}-3.15.0-Build-ldst_multiple-test-with-fno-pie.patch - "${FILESDIR}"/${PN}-3.21.0-glibc-2.34-suppressions.patch -) - -QA_CONFIG_IMPL_DECL_SKIP+=( - # "checking if gcc accepts nested functions" but clang cannot handle good - # errors and reports both "function definition is not allowed here" and - # -Wimplicit-function-declaration. bug #900396 - foo - # FreeBSD function, bug #932822 - aio_readv -) - -src_unpack() { - if [[ ${PV} == 9999 ]] ; then - git-r3_src_unpack - elif use verify-sig ; then - # Needed for downloaded patch (which is unsigned, which is fine) - verify-sig_verify_detached "${DISTDIR}"/${MY_P}.tar.bz2{,.asc} - fi - - default -} - -src_prepare() { - # Correct hard coded doc location - sed -i -e "s:doc/valgrind:doc/${PF}:" docs/Makefile.am || die - - # Don't force multiarch stuff on OSX, bug #306467 - sed -i -e 's:-arch \(i386\|x86_64\)::g' Makefile.all.am || die - - if [[ ${CHOST} == *-solaris* ]] ; then - # upstream doesn't support this, but we don't build with - # Sun/Oracle ld, we have a GNU toolchain, so get some things - # working the Linux/GNU way - find "${S}" -name "Makefile.am" -o -name "Makefile.tool.am" | xargs \ - sed -i -e 's:-M,/usr/lib/ld/map.noexstk:-z,noexecstack:' || die - cp "${S}"/coregrind/link_tool_exe_{linux,solaris}.in - fi - - if [[ ${PV} != 9999 && -d "${WORKDIR}"/${VALGRIND_PATCH_TARBALL} ]] ; then - PATCHES+=( "${WORKDIR}"/${VALGRIND_PATCH_TARBALL} ) - fi - - default - - eautoreconf -} - -src_configure() { - local myconf=( - --with-gdbscripts-dir="${EPREFIX}"/usr/share/gdb/auto-load - ) - - tc-is-lto && myconf+=( --enable-lto ) - lto-guarantee-fat - - # Respect ar, bug #468114 - tc-export AR - - # -fomit-frame-pointer "Assembler messages: Error: junk `8' after expression" - # while compiling insn_sse.c in none/tests/x86 - # -fstack-protector more undefined references to __guard and __stack_smash_handler - # because valgrind doesn't link to glibc (bug #114347) - # -fstack-protector-all Fails same way as -fstack-protector/-fstack-protector-strong. - # Note: -fstack-protector-explicit is a no-op for Valgrind, no need to strip it - # -fstack-protector-strong See -fstack-protector (bug #620402) - # -m64 -mx32 for multilib-portage, bug #398825 - # -fharden-control-flow-redundancy: breaks runtime ('jump to the invalid address stated on the next line') - filter-flags -fomit-frame-pointer - filter-flags -fstack-protector - filter-flags -fstack-protector-all - filter-flags -fstack-protector-strong - filter-flags -m64 -mx32 - filter-flags -fsanitize -fsanitize=* - filter-flags -fharden-control-flow-redundancy - append-cflags $(test-flags-CC -fno-harden-control-flow-redundancy) - filter-lto - - if use amd64 || use ppc64; then - ! has_multilib_profile && myconf+=("--enable-only64bit") - fi - - # Force bitness on darwin, bug #306467 - use x64-macos && myconf+=("--enable-only64bit") - - # Don't use mpicc unless the user asked for it (bug #258832) - if ! use mpi; then - myconf+=("--without-mpicc") - fi - - econf "${myconf[@]}" -} - -src_test() { - # fxsave.o, tronical.o have textrels - # -fno-strict-aliasing: https://bugs.kde.org/show_bug.cgi?id=486093 - emake CFLAGS="${CFLAGS} -fno-strict-aliasing" LDFLAGS="${LDFLAGS} -Wl,-z,notext" check -} - -src_install() { - if [[ ${PV} == 9999 ]]; then - # TODO: Could do HTML docs too with 'all-docs' - emake -C docs man-pages FAQ.txt - mv docs/FAQ.txt . || die "Couldn't move FAQ.txt" - fi - - default - - dodoc FAQ.txt - - pax-mark m "${ED}"/usr/$(get_libdir)/valgrind/*-*-linux - - strip-lto-bytecode - - # See README_PACKAGERS - dostrip -x /usr/libexec/valgrind/vgpreload* /usr/$(get_libdir)/valgrind/* - - if [[ ${CHOST} == *-darwin* ]] ; then - # fix install_names on shared libraries, can't turn them into bundles, - # as dyld won't load them any more then, bug #306467 - local l - for l in "${ED}"/usr/lib/valgrind/*.so ; do - install_name_tool -id "${EPREFIX}"/usr/lib/valgrind/${l##*/} "${l}" - done - fi -} - -pkg_postinst() { - elog "Valgrind will not work if libc (e.g. glibc) does not have debug symbols." - elog "To fix this you can add splitdebug to FEATURES in make.conf" - elog "and remerge glibc. See:" - elog "https://bugs.gentoo.org/214065" - elog "https://bugs.gentoo.org/274771" - elog "https://bugs.gentoo.org/388703" -} diff --git a/dev-debug/valgrind/valgrind-3.27.0_p1.ebuild b/dev-debug/valgrind/valgrind-3.27.0_p1.ebuild deleted file mode 100644 index d9ec37366300..000000000000 --- a/dev-debug/valgrind/valgrind-3.27.0_p1.ebuild +++ /dev/null @@ -1,203 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# The Valgrind upstream maintainer also maintains it in Fedora and will -# backport fixes there which haven't yet made it into a release. Keep an eye -# on it for fixes we should cherry-pick too: -# https://src.fedoraproject.org/rpms/valgrind/tree/rawhide -# -# Also check the ${PV}_STABLE branch upstream for backports. - -inherit autotools dot-a flag-o-matic toolchain-funcs multilib pax-utils - -DESCRIPTION="An open-source memory debugger for GNU/Linux" -HOMEPAGE="https://valgrind.org" - -if [[ ${PV} == 9999 ]]; then - EGIT_REPO_URI=" - https://sourceware.org/git/${PN}.git - https://git.sr.ht/~sourceware/valgrind - " - inherit git-r3 -else - VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/valgrind.asc - inherit verify-sig - - MY_P="${P/_rc/.RC}" - MY_P="${MY_P%%_p*}" - VALGRIND_PATCH_TARBALL="${MY_P}-patches-${PV##*_p}" - SRC_URI=" - https://sourceware.org/pub/valgrind/${MY_P}.tar.bz2 - verify-sig? ( https://sourceware.org/pub/valgrind/${MY_P}.tar.bz2.asc ) - " - # Rollups of backports on ${PV}_STABLE branch upstream. This branch - # is usually announced on the mailing list and distros are encouraged - # to pull from it regularly. - if [[ ${PV} == *_p* ]] ; then - SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${VALGRIND_PATCH_TARBALL}.tar.xz" - fi - - S="${WORKDIR}"/${MY_P} - - if [[ ${PV} != *_rc* ]] ; then - KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~x64-macos ~x64-solaris" - fi -fi - -LICENSE="GPL-3+" -SLOT="0" -IUSE="mpi" - -DEPEND="mpi? ( virtual/mpi )" -RDEPEND="${DEPEND}" -if [[ ${PV} == 9999 ]] ; then - # Needed for man pages - BDEPEND+=" - app-text/docbook-xsl-stylesheets - dev-libs/libxslt - " -else - BDEPEND+=" verify-sig? ( >=sec-keys/openpgp-keys-valgrind-20251018 )" -fi - -PATCHES=( - # Respect CFLAGS, LDFLAGS - "${FILESDIR}"/${PN}-3.7.0-respect-flags.patch - "${FILESDIR}"/${PN}-3.15.0-Build-ldst_multiple-test-with-fno-pie.patch - "${FILESDIR}"/${PN}-3.21.0-glibc-2.34-suppressions.patch -) - -QA_CONFIG_IMPL_DECL_SKIP+=( - # "checking if gcc accepts nested functions" but clang cannot handle good - # errors and reports both "function definition is not allowed here" and - # -Wimplicit-function-declaration. bug #900396 - foo - # FreeBSD function, bug #932822 - aio_readv -) - -src_unpack() { - if [[ ${PV} == 9999 ]] ; then - git-r3_src_unpack - elif use verify-sig ; then - # Needed for downloaded patch (which is unsigned, which is fine) - verify-sig_verify_detached "${DISTDIR}"/${MY_P}.tar.bz2{,.asc} - fi - - default -} - -src_prepare() { - # Correct hard coded doc location - sed -i -e "s:doc/valgrind:doc/${PF}:" docs/Makefile.am || die - - # Don't force multiarch stuff on OSX, bug #306467 - sed -i -e 's:-arch \(i386\|x86_64\)::g' Makefile.all.am || die - - if [[ ${CHOST} == *-solaris* ]] ; then - # upstream doesn't support this, but we don't build with - # Sun/Oracle ld, we have a GNU toolchain, so get some things - # working the Linux/GNU way - find "${S}" -name "Makefile.am" -o -name "Makefile.tool.am" | xargs \ - sed -i -e 's:-M,/usr/lib/ld/map.noexstk:-z,noexecstack:' || die - cp "${S}"/coregrind/link_tool_exe_{linux,solaris}.in - fi - - if [[ ${PV} != 9999 && -d "${WORKDIR}"/${VALGRIND_PATCH_TARBALL} ]] ; then - PATCHES+=( "${WORKDIR}"/${VALGRIND_PATCH_TARBALL} ) - fi - - default - - eautoreconf -} - -src_configure() { - local myconf=( - --with-gdbscripts-dir="${EPREFIX}"/usr/share/gdb/auto-load - ) - - tc-is-lto && myconf+=( --enable-lto ) - lto-guarantee-fat - - # Respect ar, bug #468114 - tc-export AR - - # -fomit-frame-pointer "Assembler messages: Error: junk `8' after expression" - # while compiling insn_sse.c in none/tests/x86 - # -fstack-protector more undefined references to __guard and __stack_smash_handler - # because valgrind doesn't link to glibc (bug #114347) - # -fstack-protector-all Fails same way as -fstack-protector/-fstack-protector-strong. - # Note: -fstack-protector-explicit is a no-op for Valgrind, no need to strip it - # -fstack-protector-strong See -fstack-protector (bug #620402) - # -m64 -mx32 for multilib-portage, bug #398825 - # -fharden-control-flow-redundancy: breaks runtime ('jump to the invalid address stated on the next line') - filter-flags -fomit-frame-pointer - filter-flags -fstack-protector - filter-flags -fstack-protector-all - filter-flags -fstack-protector-strong - filter-flags -m64 -mx32 - filter-flags -fsanitize -fsanitize=* - filter-flags -fharden-control-flow-redundancy - append-cflags $(test-flags-CC -fno-harden-control-flow-redundancy) - filter-lto - - if use amd64 || use ppc64; then - ! has_multilib_profile && myconf+=("--enable-only64bit") - fi - - # Force bitness on darwin, bug #306467 - use x64-macos && myconf+=("--enable-only64bit") - - # Don't use mpicc unless the user asked for it (bug #258832) - if ! use mpi; then - myconf+=("--without-mpicc") - fi - - econf "${myconf[@]}" -} - -src_test() { - # fxsave.o, tronical.o have textrels - # -fno-strict-aliasing: https://bugs.kde.org/show_bug.cgi?id=486093 - emake CFLAGS="${CFLAGS} -fno-strict-aliasing" LDFLAGS="${LDFLAGS} -Wl,-z,notext" check -} - -src_install() { - if [[ ${PV} == 9999 ]]; then - # TODO: Could do HTML docs too with 'all-docs' - emake -C docs man-pages FAQ.txt - mv docs/FAQ.txt . || die "Couldn't move FAQ.txt" - fi - - default - - dodoc FAQ.txt - - pax-mark m "${ED}"/usr/$(get_libdir)/valgrind/*-*-linux - - strip-lto-bytecode - - # See README_PACKAGERS - dostrip -x /usr/libexec/valgrind/vgpreload* /usr/$(get_libdir)/valgrind/* - - if [[ ${CHOST} == *-darwin* ]] ; then - # fix install_names on shared libraries, can't turn them into bundles, - # as dyld won't load them any more then, bug #306467 - local l - for l in "${ED}"/usr/lib/valgrind/*.so ; do - install_name_tool -id "${EPREFIX}"/usr/lib/valgrind/${l##*/} "${l}" - done - fi -} - -pkg_postinst() { - elog "Valgrind will not work if libc (e.g. glibc) does not have debug symbols." - elog "To fix this you can add splitdebug to FEATURES in make.conf" - elog "and remerge glibc. See:" - elog "https://bugs.gentoo.org/214065" - elog "https://bugs.gentoo.org/274771" - elog "https://bugs.gentoo.org/388703" -} diff --git a/dev-debug/valgrind/valgrind-3.27.1.ebuild b/dev-debug/valgrind/valgrind-3.27.1.ebuild deleted file mode 100644 index d9ec37366300..000000000000 --- a/dev-debug/valgrind/valgrind-3.27.1.ebuild +++ /dev/null @@ -1,203 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# The Valgrind upstream maintainer also maintains it in Fedora and will -# backport fixes there which haven't yet made it into a release. Keep an eye -# on it for fixes we should cherry-pick too: -# https://src.fedoraproject.org/rpms/valgrind/tree/rawhide -# -# Also check the ${PV}_STABLE branch upstream for backports. - -inherit autotools dot-a flag-o-matic toolchain-funcs multilib pax-utils - -DESCRIPTION="An open-source memory debugger for GNU/Linux" -HOMEPAGE="https://valgrind.org" - -if [[ ${PV} == 9999 ]]; then - EGIT_REPO_URI=" - https://sourceware.org/git/${PN}.git - https://git.sr.ht/~sourceware/valgrind - " - inherit git-r3 -else - VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/valgrind.asc - inherit verify-sig - - MY_P="${P/_rc/.RC}" - MY_P="${MY_P%%_p*}" - VALGRIND_PATCH_TARBALL="${MY_P}-patches-${PV##*_p}" - SRC_URI=" - https://sourceware.org/pub/valgrind/${MY_P}.tar.bz2 - verify-sig? ( https://sourceware.org/pub/valgrind/${MY_P}.tar.bz2.asc ) - " - # Rollups of backports on ${PV}_STABLE branch upstream. This branch - # is usually announced on the mailing list and distros are encouraged - # to pull from it regularly. - if [[ ${PV} == *_p* ]] ; then - SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${VALGRIND_PATCH_TARBALL}.tar.xz" - fi - - S="${WORKDIR}"/${MY_P} - - if [[ ${PV} != *_rc* ]] ; then - KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~x64-macos ~x64-solaris" - fi -fi - -LICENSE="GPL-3+" -SLOT="0" -IUSE="mpi" - -DEPEND="mpi? ( virtual/mpi )" -RDEPEND="${DEPEND}" -if [[ ${PV} == 9999 ]] ; then - # Needed for man pages - BDEPEND+=" - app-text/docbook-xsl-stylesheets - dev-libs/libxslt - " -else - BDEPEND+=" verify-sig? ( >=sec-keys/openpgp-keys-valgrind-20251018 )" -fi - -PATCHES=( - # Respect CFLAGS, LDFLAGS - "${FILESDIR}"/${PN}-3.7.0-respect-flags.patch - "${FILESDIR}"/${PN}-3.15.0-Build-ldst_multiple-test-with-fno-pie.patch - "${FILESDIR}"/${PN}-3.21.0-glibc-2.34-suppressions.patch -) - -QA_CONFIG_IMPL_DECL_SKIP+=( - # "checking if gcc accepts nested functions" but clang cannot handle good - # errors and reports both "function definition is not allowed here" and - # -Wimplicit-function-declaration. bug #900396 - foo - # FreeBSD function, bug #932822 - aio_readv -) - -src_unpack() { - if [[ ${PV} == 9999 ]] ; then - git-r3_src_unpack - elif use verify-sig ; then - # Needed for downloaded patch (which is unsigned, which is fine) - verify-sig_verify_detached "${DISTDIR}"/${MY_P}.tar.bz2{,.asc} - fi - - default -} - -src_prepare() { - # Correct hard coded doc location - sed -i -e "s:doc/valgrind:doc/${PF}:" docs/Makefile.am || die - - # Don't force multiarch stuff on OSX, bug #306467 - sed -i -e 's:-arch \(i386\|x86_64\)::g' Makefile.all.am || die - - if [[ ${CHOST} == *-solaris* ]] ; then - # upstream doesn't support this, but we don't build with - # Sun/Oracle ld, we have a GNU toolchain, so get some things - # working the Linux/GNU way - find "${S}" -name "Makefile.am" -o -name "Makefile.tool.am" | xargs \ - sed -i -e 's:-M,/usr/lib/ld/map.noexstk:-z,noexecstack:' || die - cp "${S}"/coregrind/link_tool_exe_{linux,solaris}.in - fi - - if [[ ${PV} != 9999 && -d "${WORKDIR}"/${VALGRIND_PATCH_TARBALL} ]] ; then - PATCHES+=( "${WORKDIR}"/${VALGRIND_PATCH_TARBALL} ) - fi - - default - - eautoreconf -} - -src_configure() { - local myconf=( - --with-gdbscripts-dir="${EPREFIX}"/usr/share/gdb/auto-load - ) - - tc-is-lto && myconf+=( --enable-lto ) - lto-guarantee-fat - - # Respect ar, bug #468114 - tc-export AR - - # -fomit-frame-pointer "Assembler messages: Error: junk `8' after expression" - # while compiling insn_sse.c in none/tests/x86 - # -fstack-protector more undefined references to __guard and __stack_smash_handler - # because valgrind doesn't link to glibc (bug #114347) - # -fstack-protector-all Fails same way as -fstack-protector/-fstack-protector-strong. - # Note: -fstack-protector-explicit is a no-op for Valgrind, no need to strip it - # -fstack-protector-strong See -fstack-protector (bug #620402) - # -m64 -mx32 for multilib-portage, bug #398825 - # -fharden-control-flow-redundancy: breaks runtime ('jump to the invalid address stated on the next line') - filter-flags -fomit-frame-pointer - filter-flags -fstack-protector - filter-flags -fstack-protector-all - filter-flags -fstack-protector-strong - filter-flags -m64 -mx32 - filter-flags -fsanitize -fsanitize=* - filter-flags -fharden-control-flow-redundancy - append-cflags $(test-flags-CC -fno-harden-control-flow-redundancy) - filter-lto - - if use amd64 || use ppc64; then - ! has_multilib_profile && myconf+=("--enable-only64bit") - fi - - # Force bitness on darwin, bug #306467 - use x64-macos && myconf+=("--enable-only64bit") - - # Don't use mpicc unless the user asked for it (bug #258832) - if ! use mpi; then - myconf+=("--without-mpicc") - fi - - econf "${myconf[@]}" -} - -src_test() { - # fxsave.o, tronical.o have textrels - # -fno-strict-aliasing: https://bugs.kde.org/show_bug.cgi?id=486093 - emake CFLAGS="${CFLAGS} -fno-strict-aliasing" LDFLAGS="${LDFLAGS} -Wl,-z,notext" check -} - -src_install() { - if [[ ${PV} == 9999 ]]; then - # TODO: Could do HTML docs too with 'all-docs' - emake -C docs man-pages FAQ.txt - mv docs/FAQ.txt . || die "Couldn't move FAQ.txt" - fi - - default - - dodoc FAQ.txt - - pax-mark m "${ED}"/usr/$(get_libdir)/valgrind/*-*-linux - - strip-lto-bytecode - - # See README_PACKAGERS - dostrip -x /usr/libexec/valgrind/vgpreload* /usr/$(get_libdir)/valgrind/* - - if [[ ${CHOST} == *-darwin* ]] ; then - # fix install_names on shared libraries, can't turn them into bundles, - # as dyld won't load them any more then, bug #306467 - local l - for l in "${ED}"/usr/lib/valgrind/*.so ; do - install_name_tool -id "${EPREFIX}"/usr/lib/valgrind/${l##*/} "${l}" - done - fi -} - -pkg_postinst() { - elog "Valgrind will not work if libc (e.g. glibc) does not have debug symbols." - elog "To fix this you can add splitdebug to FEATURES in make.conf" - elog "and remerge glibc. See:" - elog "https://bugs.gentoo.org/214065" - elog "https://bugs.gentoo.org/274771" - elog "https://bugs.gentoo.org/388703" -} diff --git a/dev-debug/valgrind/valgrind-9999.ebuild b/dev-debug/valgrind/valgrind-9999.ebuild deleted file mode 100644 index e0233e6d293b..000000000000 --- a/dev-debug/valgrind/valgrind-9999.ebuild +++ /dev/null @@ -1,203 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# The Valgrind upstream maintainer also maintains it in Fedora and will -# backport fixes there which haven't yet made it into a release. Keep an eye -# on it for fixes we should cherry-pick too: -# https://src.fedoraproject.org/rpms/valgrind/tree/rawhide -# -# Also check the ${PV}_STABLE branch upstream for backports. - -inherit autotools dot-a flag-o-matic toolchain-funcs multilib pax-utils - -DESCRIPTION="An open-source memory debugger for GNU/Linux" -HOMEPAGE="https://valgrind.org" - -if [[ ${PV} == 9999 ]]; then - EGIT_REPO_URI=" - https://sourceware.org/git/${PN}.git - https://git.sr.ht/~sourceware/valgrind - " - inherit git-r3 -else - VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/valgrind.asc - inherit verify-sig - - MY_P="${P/_rc/.RC}" - MY_P="${MY_P%%_p*}" - VALGRIND_PATCH_TARBALL="${MY_P}-patches-${PV##*_p}" - SRC_URI=" - https://sourceware.org/pub/valgrind/${MY_P}.tar.bz2 - verify-sig? ( https://sourceware.org/pub/valgrind/${MY_P}.tar.bz2.asc ) - " - # Rollups of backports on ${PV}_STABLE branch upstream. This branch - # is usually announced on the mailing list and distros are encouraged - # to pull from it regularly. - if [[ ${PV} == *_p* ]] ; then - SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${VALGRIND_PATCH_TARBALL}.tar.xz" - fi - - S="${WORKDIR}"/${MY_P} - - if [[ ${PV} != *_rc* ]] ; then - KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~x64-macos ~x64-solaris" - fi -fi - -LICENSE="GPL-3+" -SLOT="0" -IUSE="mpi" - -DEPEND="mpi? ( virtual/mpi )" -RDEPEND="${DEPEND}" -if [[ ${PV} == 9999 ]] ; then - # Needed for man pages - BDEPEND+=" - app-text/docbook-xsl-stylesheets - dev-libs/libxslt - " -else - BDEPEND+=" verify-sig? ( >=sec-keys/openpgp-keys-valgrind-20251018 )" -fi - -PATCHES=( - # Respect CFLAGS, LDFLAGS - "${FILESDIR}"/${PN}-3.7.0-respect-flags.patch - "${FILESDIR}"/${PN}-3.15.0-Build-ldst_multiple-test-with-fno-pie.patch - "${FILESDIR}"/${PN}-3.21.0-glibc-2.34-suppressions.patch -) - -QA_CONFIG_IMPL_DECL_SKIP+=( - # "checking if gcc accepts nested functions" but clang cannot handle good - # errors and reports both "function definition is not allowed here" and - # -Wimplicit-function-declaration. bug #900396 - foo - # FreeBSD function, bug #932822 - aio_readv -) - -src_unpack() { - if [[ ${PV} == 9999 ]] ; then - git-r3_src_unpack - elif use verify-sig ; then - # Needed for downloaded patch (which is unsigned, which is fine) - verify-sig_verify_detached "${DISTDIR}"/${MY_P}.tar.bz2{,.asc} - fi - - default -} - -src_prepare() { - # Correct hard coded doc location - sed -i -e "s:doc/valgrind:doc/${PF}:" docs/Makefile.am || die - - # Don't force multiarch stuff on OSX, bug #306467 - sed -i -e 's:-arch \(i386\|x86_64\)::g' Makefile.all.am || die - - if [[ ${CHOST} == *-solaris* ]] ; then - # upstream doesn't support this, but we don't build with - # Sun/Oracle ld, we have a GNU toolchain, so get some things - # working the Linux/GNU way - find "${S}" -name "Makefile.am" -o -name "Makefile.tool.am" | xargs \ - sed -i -e 's:-M,/usr/lib/ld/map.noexstk:-z,noexecstack:' || die - cp "${S}"/coregrind/link_tool_exe_{linux,solaris}.in - fi - - if [[ ${PV} != 9999 && -d "${WORKDIR}"/${VALGRIND_PATCH_TARBALL} ]] ; then - PATCHES+=( "${WORKDIR}"/${VALGRIND_PATCH_TARBALL} ) - fi - - default - - eautoreconf -} - -src_configure() { - local myconf=( - --with-gdbscripts-dir="${EPREFIX}"/usr/share/gdb/auto-load - ) - - tc-is-lto && myconf+=( --enable-lto ) - lto-guarantee-fat - - # Respect ar, bug #468114 - tc-export AR - - # -fomit-frame-pointer "Assembler messages: Error: junk `8' after expression" - # while compiling insn_sse.c in none/tests/x86 - # -fstack-protector more undefined references to __guard and __stack_smash_handler - # because valgrind doesn't link to glibc (bug #114347) - # -fstack-protector-all Fails same way as -fstack-protector/-fstack-protector-strong. - # Note: -fstack-protector-explicit is a no-op for Valgrind, no need to strip it - # -fstack-protector-strong See -fstack-protector (bug #620402) - # -m64 -mx32 for multilib-portage, bug #398825 - # -fharden-control-flow-redundancy: breaks runtime ('jump to the invalid address stated on the next line') - filter-flags -fomit-frame-pointer - filter-flags -fstack-protector - filter-flags -fstack-protector-all - filter-flags -fstack-protector-strong - filter-flags -m64 -mx32 - filter-flags -fsanitize -fsanitize=* - filter-flags -fharden-control-flow-redundancy - append-cflags $(test-flags-CC -fno-harden-control-flow-redundancy) - filter-lto - - if use amd64 || use ppc64; then - ! has_multilib_profile && myconf+=("--enable-only64bit") - fi - - # Force bitness on darwin, bug #306467 - use x64-macos && myconf+=("--enable-only64bit") - - # Don't use mpicc unless the user asked for it (bug #258832) - if ! use mpi; then - myconf+=("--without-mpicc") - fi - - econf "${myconf[@]}" -} - -src_test() { - # fxsave.o, tronical.o have textrels - # -fno-strict-aliasing: https://bugs.kde.org/show_bug.cgi?id=486093 - emake CFLAGS="${CFLAGS} -fno-strict-aliasing" LDFLAGS="${LDFLAGS} -Wl,-z,notext" check -} - -src_install() { - if [[ ${PV} == 9999 ]]; then - # TODO: Could do HTML docs too with 'all-docs' - emake -C docs man-pages FAQ.txt - mv docs/FAQ.txt . || die "Couldn't move FAQ.txt" - fi - - default - - dodoc FAQ.txt - - pax-mark m "${ED}"/usr/$(get_libdir)/valgrind/*-*-linux - - strip-lto-bytecode - - # See README_PACKAGERS - dostrip -x /usr/libexec/valgrind/vgpreload* /usr/$(get_libdir)/valgrind/* - - if [[ ${CHOST} == *-darwin* ]] ; then - # fix install_names on shared libraries, can't turn them into bundles, - # as dyld won't load them any more then, bug #306467 - local l - for l in "${ED}"/usr/lib/valgrind/*.so ; do - install_name_tool -id "${EPREFIX}"/usr/lib/valgrind/${l##*/} "${l}" - done - fi -} - -pkg_postinst() { - elog "Valgrind will not work if libc (e.g. glibc) does not have debug symbols." - elog "To fix this you can add splitdebug to FEATURES in make.conf" - elog "and remerge glibc. See:" - elog "https://bugs.gentoo.org/214065" - elog "https://bugs.gentoo.org/274771" - elog "https://bugs.gentoo.org/388703" -} |
