c_josie_overlay

removed radiance/rocm because it's torture to maintain

01e280ddff021d3ab40b7c27669449048225507b
cjosie <administrator@josie-c.com> · 2026-11-18T19:37 · browse files at this commit

parents: 92b1c4e

diff --git a/.gitignore b/.gitignore
index f9e7f35..d7d2f76 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 .LLM_Memory/
 /radiance/
 metadata/md5-cache/
+/scratch
diff --git a/dev-libs/rocm-comgr/Manifest b/dev-libs/rocm-comgr/Manifest
deleted file mode 100644
index 85f5d26..0000000
--- a/dev-libs/rocm-comgr/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST llvm-project-therock-10.2.tar.gz 319418155 BLAKE2B 6fdba71a87e9121644220a68586d083e3b1c3a59e5e2fd6e7d4caba429c39f2370d5039d9d97daa81d405e96f55dc548a03283a3b60dbfea0983c42eb5c319e4 SHA512 a64c0b8921e97eb4866ef8ef8f184abc0dcc2fb4f9e2e53b099243056ea8cce974de4400ed7f5fdf12ebfb7b9ebce4fda095b012fec01d80a8a5f5eda6dac56b
diff --git a/dev-libs/rocm-comgr/files/rocm-comgr-6.4.1-extend-isa-compatibility-check.patch b/dev-libs/rocm-comgr/files/rocm-comgr-6.4.1-extend-isa-compatibility-check.patch
deleted file mode 100644
index eddc8b1..0000000
--- a/dev-libs/rocm-comgr/files/rocm-comgr-6.4.1-extend-isa-compatibility-check.patch
+++ /dev/null
@@ -1,204 +0,0 @@
-Load kernels when compatible by ISA, e. g. if AMDGPU_TARGETS is set
-to gfx1030 and some application was started on gfx1036, it loads gfx1030 kernel.
-
-Based on Debian patch by Cordell Bloor <cgmb@slerp.xyz>
-https://salsa.debian.org/rocm-team/rocm-hipamd/-/blob/master/debian/patches/0026-extend-hip-isa-compatibility-check.patch
---- a/src/comgr-metadata.cpp
-+++ b/src/comgr-metadata.cpp
-@@ -927,23 +927,86 @@ constexpr size_t OffloadBundleMagicLen =
-     strLiteralLength(ClangOffloadBundlerMagic);
- } // namespace
- 
--bool isCompatibleIsaName(StringRef IsaName, StringRef CodeObjectIsaName) {
-+struct GfxPattern {
-+  std::string root;
-+  std::string suffixes;
-+};
-+
-+static bool matches(const GfxPattern& p, StringRef s) {
-+  if (p.root.size() + 1 != s.size()) {
-+    return false;
-+  }
-+  if (0 != std::memcmp(p.root.data(), s.data(), p.root.size())) {
-+    return false;
-+  }
-+  return p.suffixes.find(s[p.root.size()]) != std::string::npos;
-+}
-+
-+static bool isGfx900EquivalentProcessor(StringRef processor) {
-+  return matches(GfxPattern{"gfx90", "029c"}, processor);
-+}
-+
-+static bool isGfx900SupersetProcessor(StringRef processor) {
-+  return matches(GfxPattern{"gfx90", "0269c"}, processor);
-+}
-+
-+static bool isGfx1030EquivalentProcessor(StringRef processor) {
-+  return matches(GfxPattern{"gfx103", "0123456"}, processor);
-+}
-+
-+static bool isGfx1010EquivalentProcessor(StringRef processor) {
-+  return matches(GfxPattern{"gfx101", "0"}, processor);
-+}
-+
-+static bool isGfx1010SupersetProcessor(StringRef processor) {
-+  return matches(GfxPattern{"gfx101", "0123"}, processor);
-+}
-+
-+enum CompatibilityScore {
-+  CS_EXACT_MATCH           = 1 << 4,
-+  CS_PROCESSOR_MATCH       = 1 << 3,
-+  CS_PROCESSOR_COMPATIBLE  = 1 << 2,
-+  CS_XNACK_SPECIALIZED     = 1 << 1,
-+  CS_SRAM_ECC_SPECIALIZED  = 1 << 0,
-+  CS_INCOMPATIBLE          = 0,
-+};
-+
-+static int getProcessorCompatibilityScore(StringRef CodeObjectProcessor,
-+                                          StringRef AgentProcessor) {
-+  if (CodeObjectProcessor == AgentProcessor) {
-+    return CS_PROCESSOR_MATCH;
-+  }
-+
-+  bool compatible = false;
-+  if (isGfx900SupersetProcessor(AgentProcessor)) {
-+    compatible = isGfx900EquivalentProcessor(CodeObjectProcessor);
-+  } else if (isGfx1010SupersetProcessor(AgentProcessor)) {
-+    compatible = isGfx1010EquivalentProcessor(CodeObjectProcessor);
-+  } else if (isGfx1030EquivalentProcessor(AgentProcessor)) {
-+    compatible = isGfx1030EquivalentProcessor(CodeObjectProcessor);
-+  }
-+
-+  return compatible ? CS_PROCESSOR_COMPATIBLE : CS_INCOMPATIBLE;
-+}
-+
-+static int getCompatiblityScore(StringRef IsaName, StringRef CodeObjectIsaName) {
-   if (IsaName == CodeObjectIsaName) {
--    return true;
-+    return CS_EXACT_MATCH;
-   }
- 
-   TargetIdentifier CodeObjectIdent;
-   if (parseTargetIdentifier(CodeObjectIsaName, CodeObjectIdent)) {
--    return false;
-+    return CS_INCOMPATIBLE;
-   }
- 
-   TargetIdentifier IsaIdent;
-   if (parseTargetIdentifier(IsaName, IsaIdent)) {
--    return false;
-+    return CS_INCOMPATIBLE;
-   }
- 
--  if (CodeObjectIdent.Processor != IsaIdent.Processor) {
--    return false;
-+  int ProcessorScore = getProcessorCompatibilityScore(CodeObjectIdent.Processor, IsaIdent.Processor);
-+  if (ProcessorScore == CS_INCOMPATIBLE) {
-+    return CS_INCOMPATIBLE;
-   }
- 
-   char CodeObjectXnack = ' ', CodeObjectSramecc = ' ';
-@@ -967,18 +1030,23 @@ bool isCompatibleIsaName(StringRef IsaName, StringRef CodeObjectIsaName) {
-     }
-   }
- 
-+  int XnackBonus = 0;
-   if (CodeObjectXnack != ' ') {
-     if (CodeObjectXnack != IsaXnack) {
--      return false;
-+      return CS_INCOMPATIBLE;
-     }
-+    XnackBonus = CS_XNACK_SPECIALIZED;
-   }
- 
-+  int SrameccBonus = 0;
-   if (CodeObjectSramecc != ' ') {
-     if (CodeObjectSramecc != IsaSramecc) {
--      return false;
-+      return CS_INCOMPATIBLE;
-     }
-+    SrameccBonus = CS_SRAM_ECC_SPECIALIZED;
-   }
--  return true;
-+
-+  return ProcessorScore + XnackBonus + SrameccBonus;
- }
- 
- amd_comgr_status_t
-@@ -996,14 +1064,21 @@ lookUpCodeObjectInSharedObject(DataObject *DataP,
-     return Status;
-   }
- 
-+  int MaxScore = 0;
-+  unsigned MaxScoreItem;
-   for (unsigned J = 0; J < QueryListSize; J++) {
--    if (isCompatibleIsaName(QueryList[J].isa, IsaName)) {
--      QueryList[J].offset = 0;
--      QueryList[J].size = DataP->Size;
--      break;
-+    int Score = getCompatiblityScore(QueryList[J].isa, IsaName);
-+    if (Score > MaxScore) {
-+      MaxScore = Score;
-+      MaxScoreItem = J;
-     }
-   }
- 
-+  if (MaxScore) {
-+    QueryList[MaxScoreItem].offset = 0;
-+    QueryList[MaxScoreItem].size = DataP->Size;
-+  }
-+
-   return AMD_COMGR_STATUS_SUCCESS;
- }
- 
-@@ -1015,7 +1090,6 @@ amd_comgr_status_t lookUpCodeObject(DataObject *DataP,
-     return lookUpCodeObjectInSharedObject(DataP, QueryList, QueryListSize);
-   }
- 
--  int Seen = 0;
-   BinaryStreamReader Reader(StringRef(DataP->Data, DataP->Size),
-                             llvm::endianness::little);
- 
-@@ -1041,6 +1115,8 @@ amd_comgr_status_t lookUpCodeObject(DataObject *DataP,
-     QueryList[I].size = 0;
-   }
- 
-+  std::vector<int> QueryListScores(QueryListSize);
-+
-   // For each code object, extract BundleEntryID information, and check that
-   // against each ISA in the QueryList
-   for (uint64_t I = 0; I < NumOfCodeObjects; I++) {
-@@ -1073,28 +1149,22 @@ amd_comgr_status_t lookUpCodeObject(DataObject *DataP,
-     }
- 
-     for (unsigned J = 0; J < QueryListSize; J++) {
--      // If this QueryList item has already been found to be compatible with
-+      // If this QueryList item has exact match with
-       // another BundleEntryID, no need to check against the current
-       // BundleEntryID
--      if (QueryList[J].size != 0) {
-+      if (QueryListScores[J] == CS_EXACT_MATCH) {
-         continue;
-       }
- 
-       // If the QueryList Isa is compatible with the BundleEntryID, set the
-       // QueryList offset/size to this BundleEntryID
--      if (isCompatibleIsaName(QueryList[J].isa, OffloadAndTargetId.second)) {
-+      int Score = getCompatiblityScore(QueryList[J].isa, OffloadAndTargetId.second);
-+      if (Score > QueryListScores[J]) {
-+        QueryListScores[J] = Score;
-         QueryList[J].offset = BundleEntryCodeObjectOffset;
-         QueryList[J].size = BundleEntryCodeObjectSize;
--        Seen++;
--        break;
-       }
-     }
--
--    // Stop iterating over BundleEntryIDs once we have populated the entire
--    // QueryList
--    if (Seen == (int)QueryListSize) {
--      break;
--    }
-   }
- 
-   return AMD_COMGR_STATUS_SUCCESS;
diff --git a/dev-libs/rocm-comgr/files/rocm-comgr-7.2.0-llvm-22-compat.patch b/dev-libs/rocm-comgr/files/rocm-comgr-7.2.0-llvm-22-compat.patch
deleted file mode 100644
index d11b430..0000000
--- a/dev-libs/rocm-comgr/files/rocm-comgr-7.2.0-llvm-22-compat.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-LLVM-22 compatibility fixes.
-Partially backports https://github.com/ROCm/llvm-project/commit/0216fcfc5d2a4f3384873f6e9ac70198760d5a52
---- a/src/comgr-compiler.cpp
-+++ b/src/comgr-compiler.cpp
-@@ -1365,8 +1365,7 @@
-   }
- 
-   // By default clang driver will ask CC1 to leak memory.
--  Argv.push_back("-Xclang");
--  Argv.push_back("-no-disable-free");
-+  Argv.push_back("-disable-free=false");
- 
-   // Append options from AMD_COMGR_DRIVER_OPTIONS_APPEND environment variable.
-   // Options are space-separated and appended after all other options.
diff --git a/dev-libs/rocm-comgr/metadata.xml b/dev-libs/rocm-comgr/metadata.xml
deleted file mode 100644
index a5cc0c4..0000000
--- a/dev-libs/rocm-comgr/metadata.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<maintainer type="person" proxied="yes">
-		<email>lockalsash@gmail.com</email>
-		<name>Sv. Lockal</name>
-		<description>Primary maintainer</description>
-	</maintainer>
-	<maintainer type="person" proxied="yes">
-		<email>xgreenlandforwyy@gmail.com</email>
-		<name>Yiyang Wu</name>
-	</maintainer>
-	<maintainer type="person" proxied="yes">
-		<email>negril.nx+gentoo@gmail.com</email>
-		<name>Paul Zander</name>
-		<description>General GPGPU stuff</description>
-	</maintainer>
-	<maintainer type="project" proxied="proxy">
-		<email>sci@gentoo.org</email>
-		<name>Gentoo Science Project</name>
-	</maintainer>
-	<upstream>
-		<remote-id type="github">ROCm/ROCm-CompilerSupport</remote-id>
-	</upstream>
-</pkgmetadata>
diff --git a/dev-libs/rocm-comgr/rocm-comgr-10.2.ebuild b/dev-libs/rocm-comgr/rocm-comgr-10.2.ebuild
deleted file mode 100644
index 708ead0..0000000
--- a/dev-libs/rocm-comgr/rocm-comgr-10.2.ebuild
+++ /dev/null
@@ -1,91 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-LLVM_COMPAT=( 24 )
-
-inherit cmake llvm-r2
-
-MY_P=llvm-project-therock-${PV}
-components=( "amd/comgr" )
-
-DESCRIPTION="Radeon Open Compute Code Object Manager"
-HOMEPAGE="https://github.com/ROCm/llvm-project/tree/amd-staging/amd/comgr"
-SRC_URI="https://github.com/ROCm/llvm-project/archive/therock-${PV}.tar.gz -> ${MY_P}.tar.gz"
-S="${WORKDIR}/${MY_P}/${components[0]}"
-
-LICENSE="MIT"
-SLOT="0/$(ver_cut 1-2)"
-KEYWORDS="~amd64"
-
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-PATCHES=(
-	"${FILESDIR}/${PN}-6.4.1-extend-isa-compatibility-check.patch"
-	"${FILESDIR}/${PN}-7.2.0-llvm-22-compat.patch"
-)
-
-RDEPEND="
-	dev-libs/rocm-device-libs:${SLOT}
-	llvm-runtimes/clang-runtime:=
-	$(llvm_gen_dep "
-		llvm-core/clang:\${LLVM_SLOT}=
-		llvm-core/lld:\${LLVM_SLOT}=
-		llvm-core/llvm:\${LLVM_SLOT}=
-	")
-	dev-util/hipcc:${SLOT}
-"
-DEPEND="${RDEPEND}"
-
-# Circular dependency: to build tests, hip compiler must be functional
-BDEPEND="test? ( dev-util/hip:${SLOT} )"
-
-CMAKE_BUILD_TYPE=Release
-
-src_unpack() {
-	if [[ ${PV} == *9999 ]] ; then
-		git-r3_fetch
-		git-r3_checkout '' . '' "${components[@]}"
-	else
-		archive="${MY_P}.tar.gz"
-		ebegin "Unpacking from ${archive}"
-		tar -x -z -o \
-			-f "${DISTDIR}/${archive}" \
-			"${components[@]/#/${MY_P}/}" || die
-		eend ${?}
-	fi
-}
-
-src_prepare() {
-	sed -e "s:\${CLANG_CMAKE_DIR}/../../../\*:${EPREFIX}/usr/lib/clang/${LLVM_SLOT}/include:" \
-		-i cmake/opencl_header.cmake || die
-
-	# Backports for llvm-22 from amd-staging:
-	# https://github.com/ROCm/llvm-project/commit/ebcaa3d9226921c8761a5291526291e54611e4a4
-	# https://github.com/ROCm/llvm-project/commit/ccb14ba83fd6bdc01423f71944b4676f740b97cc
-	sed -e "s:Driver/Options.h:Options/Options.h:" \
-		-e "s/clang::driver::options/clang::options/" \
-		-e "s/Driver::GetResourcesPath/GetResourcesPath/" \
-		-i src/comgr-compiler.cpp || die
-
-	cmake_src_prepare
-}
-
-src_configure() {
-	llvm_prepend_path "${LLVM_SLOT}"
-
-	local mycmakeargs=(
-		-DCMAKE_STRIP=""  # disable stripping defined at lib/comgr/CMakeLists.txt:58
-		-DBUILD_TESTING=$(usex test ON OFF)
-		-DCOMGR_DISABLE_SPIRV=ON  # requires ROCm/SPIRV-LLVM-Translator (fork of dev-util/spirv-llvm-translator)
-	)
-	# Prevent CMake from finding systemwide hip, which breaks tests
-	use test && mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_hip=ON )
-	cmake_src_configure
-}
-
-src_test() {
-	cmake_src_test
-}
diff --git a/dev-libs/rocm-core/Manifest b/dev-libs/rocm-core/Manifest
deleted file mode 100644
index 4de485d..0000000
--- a/dev-libs/rocm-core/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST rocm-core-10.2.tar.gz 46441 BLAKE2B 91142158ea1e7e0c51e4784c898d5d8ca5d2f6b825f7369225825489bf2b1599836f74493482f20bf3aad0c7a45e9f2304be7367a563bcad0b963ddfc332a880 SHA512 087604e25eca2a98676de787d82706ebed921b1fe828420a008d208b2e71afe22781c590c07e63e3c1c683ae02d49a5c5997fc99e33422d363454e6ec0ed887b
diff --git a/dev-libs/rocm-core/files/rocm-core-10.2-two-component-version.patch b/dev-libs/rocm-core/files/rocm-core-10.2-two-component-version.patch
deleted file mode 100644
index 9de6599..0000000
--- a/dev-libs/rocm-core/files/rocm-core-10.2-two-component-version.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/utils.cmake
-+++ b/utils.cmake
-@@ -32,6 +32,8 @@
-         list ( GET VERSIONS 2 PATCH )
-         set ( VERSION_PATCH ${PATCH} PARENT_SCOPE )
-         set ( TEMP_VERSION_STRING "${TEMP_VERSION_STRING}.${PATCH}" )
-+    else ()
-+        set ( VERSION_PATCH 0 PARENT_SCOPE )
-     endif ()
- 
-     if ( ${VERSION_COUNT} GREATER 3 )
diff --git a/dev-libs/rocm-core/metadata.xml b/dev-libs/rocm-core/metadata.xml
deleted file mode 100644
index 68e21ef..0000000
--- a/dev-libs/rocm-core/metadata.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<maintainer type="person" proxied="yes">
-		<email>lockalsash@gmail.com</email>
-		<name>Sv. Lockal</name>
-		<description>Primary maintainer</description>
-	</maintainer>
-	<maintainer type="person" proxied="yes">
-		<email>xgreenlandforwyy@gmail.com</email>
-		<name>Yiyang Wu</name>
-	</maintainer>
-	<maintainer type="person" proxied="yes">
-		<email>negril.nx+gentoo@gmail.com</email>
-		<name>Paul Zander</name>
-		<description>General GPGPU stuff</description>
-	</maintainer>
-	<maintainer type="project" proxied="proxy">
-		<email>sci@gentoo.org</email>
-		<name>Gentoo Science Project</name>
-	</maintainer>
-	<upstream>
-		<remote-id type="github">ROCm/rocm-systems</remote-id>
-	</upstream>
-</pkgmetadata>
diff --git a/dev-libs/rocm-core/rocm-core-10.2.ebuild b/dev-libs/rocm-core/rocm-core-10.2.ebuild
deleted file mode 100644
index 2091242..0000000
--- a/dev-libs/rocm-core/rocm-core-10.2.ebuild
+++ /dev/null
@@ -1,34 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake
-
-DESCRIPTION="Library that provides ROCm release version and install path information"
-HOMEPAGE="https://github.com/ROCm/rocm-systems/tree/develop/projects/rocm-core"
-SRC_URI="https://github.com/ROCm/rocm-systems/releases/download/therock-${PV}/${PN}.tar.gz -> ${P}.tar.gz"
-S="${WORKDIR}/${PN}"
-
-LICENSE="MIT"
-SLOT="0/$(ver_cut 1-2)"
-KEYWORDS="~amd64"
-
-# TheRock versions are two-component (10.2); set_variables() assumes a patch
-# component exists and dies in string(LENGTH ${VERSION_PATCH}). Default it to 0.
-PATCHES=(
-	"${FILESDIR}/${PN}-10.2-two-component-version.patch"
-)
-
-src_configure() {
-	local mycmakeargs=( -DROCM_VERSION=${PV} )
-	cmake_src_configure
-}
-
-src_install() {
-	cmake_src_install
-	# too broad for standard directory
-	rm "${ED}"/usr/.info/version || die
-}
-
-RDEPEND="!<dev-util/hip-7.0"
diff --git a/dev-libs/rocm-device-libs/Manifest b/dev-libs/rocm-device-libs/Manifest
deleted file mode 100644
index 85f5d26..0000000
--- a/dev-libs/rocm-device-libs/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST llvm-project-therock-10.2.tar.gz 319418155 BLAKE2B 6fdba71a87e9121644220a68586d083e3b1c3a59e5e2fd6e7d4caba429c39f2370d5039d9d97daa81d405e96f55dc548a03283a3b60dbfea0983c42eb5c319e4 SHA512 a64c0b8921e97eb4866ef8ef8f184abc0dcc2fb4f9e2e53b099243056ea8cce974de4400ed7f5fdf12ebfb7b9ebce4fda095b012fec01d80a8a5f5eda6dac56b
diff --git a/dev-libs/rocm-device-libs/files/rocm-device-libs-6.2.0-test-bitcode-dir.patch b/dev-libs/rocm-device-libs/files/rocm-device-libs-6.2.0-test-bitcode-dir.patch
deleted file mode 100644
index 0ab47c9..0000000
--- a/dev-libs/rocm-device-libs/files/rocm-device-libs-6.2.0-test-bitcode-dir.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-`--rocm-device-lib-path` is needed to execute the tests because they are not
-installed to system yet
---- a/test/compile/CMakeLists.txt
-+++ b/test/compile/CMakeLists.txt
-@@ -40,6 +40,7 @@ function(add_compile_test test_name func_name)
-      -DFILECHECK_BIN=${FILECHECK_BIN}
-      -DOUTPUT_FILE=output.${test_name}.${test_cpu}.s
-      -DINPUT_FILE=${file_name}
-+     -DAMDGCN_BITCODES=${PROJECT_BINARY_DIR}/lib/amdgcn/bitcode
-      -DTEST_CPU=${test_cpu}
-      -DCOMPILE_FLAGS=${COMPILE_TEST_COMPILE_FLAGS}
-      -DEXTRA_CHECK_PREFIX=${COMPILE_TEST_EXTRA_CHECK_PREFIXES}
---- a/test/compile/RunCompileTest.cmake
-+++ b/test/compile/RunCompileTest.cmake
-@@ -16,6 +16,7 @@ execute_process(COMMAND
-   -target amdgcn-amd-amdhsa -mcpu=${TEST_CPU}
-   -Xclang -finclude-default-header
-   --rocm-path=${BINARY_DIR}
-+  --rocm-device-lib-path=${AMDGCN_BITCODES}
-   -mllvm -amdgpu-simplify-libcall=0
-   ${COMPILE_FLAGS}
-   -o ${OUTPUT_FILE} ${INPUT_FILE}
---- a/test/compile/RunConstantFoldTest.cmake
-+++ b/test/compile/RunConstantFoldTest.cmake
-@@ -16,6 +16,7 @@ execute_process(COMMAND
-   -target amdgcn-amd-amdhsa -mcpu=${TEST_CPU}
-   -Xclang -finclude-default-header
-   --rocm-path=${BINARY_DIR}
-+  --rocm-device-lib-path=${AMDGCN_BITCODES}
-   -mllvm -amdgpu-simplify-libcall=0
-   -o ${OUTPUT_FILE} ${INPUT_FILE}
-   RESULT_VARIABLE CLANG_RESULT
diff --git a/dev-libs/rocm-device-libs/metadata.xml b/dev-libs/rocm-device-libs/metadata.xml
deleted file mode 100644
index 0c978b6..0000000
--- a/dev-libs/rocm-device-libs/metadata.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<maintainer type="person" proxied="yes">
-		<email>lockalsash@gmail.com</email>
-		<name>Sv. Lockal</name>
-		<description>Primary maintainer</description>
-	</maintainer>
-	<maintainer type="person" proxied="yes">
-		<email>xgreenlandforwyy@gmail.com</email>
-		<name>Yiyang Wu</name>
-	</maintainer>
-	<maintainer type="person" proxied="yes">
-		<email>negril.nx+gentoo@gmail.com</email>
-		<name>Paul Zander</name>
-		<description>General GPGPU stuff</description>
-	</maintainer>
-	<maintainer type="project" proxied="proxy">
-		<email>sci@gentoo.org</email>
-		<name>Gentoo Science Project</name>
-	</maintainer>
-	<upstream>
-		<remote-id type="github">ROCm/ROCm-Device-Libs</remote-id>
-	</upstream>
-</pkgmetadata>
diff --git a/dev-libs/rocm-device-libs/rocm-device-libs-10.2.ebuild b/dev-libs/rocm-device-libs/rocm-device-libs-10.2.ebuild
deleted file mode 100644
index 02a044d..0000000
--- a/dev-libs/rocm-device-libs/rocm-device-libs-10.2.ebuild
+++ /dev/null
@@ -1,104 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-LLVM_COMPAT=( 24 )
-inherit cmake flag-o-matic llvm-r2
-
-MY_P=llvm-project-therock-${PV}
-components=( "amd/device-libs" )
-
-if [[ ${PV} == *9999 ]] ; then
-	EGIT_REPO_URI="https://github.com/ROCm/llvm-project"
-	inherit git-r3
-	S="${WORKDIR}/${P}/${components[0]}"
-else
-	SRC_URI="https://github.com/ROCm/llvm-project/archive/therock-${PV}.tar.gz -> ${MY_P}.tar.gz"
-	S="${WORKDIR}/${MY_P}/${components[0]}"
-	KEYWORDS="~amd64"
-fi
-
-DESCRIPTION="Radeon Open Compute Device Libraries"
-HOMEPAGE="https://github.com/ROCm/llvm-project/tree/amd-staging/amd/device-libs"
-
-LICENSE="MIT"
-SLOT="0/$(ver_cut 1-2)"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-BDEPEND="
-	dev-build/rocm-cmake
-	$(llvm_gen_dep "
-		llvm-core/clang:\${LLVM_SLOT}
-		llvm-core/lld:\${LLVM_SLOT}
-	")
-"
-
-CMAKE_BUILD_TYPE=Release
-
-PATCHES=(
-	"${FILESDIR}/${PN}-6.2.0-test-bitcode-dir.patch"
-)
-
-src_unpack() {
-	if [[ ${PV} == *9999 ]] ; then
-		git-r3_fetch
-		git-r3_checkout '' . '' "${components[@]}"
-	else
-		archive="${MY_P}.tar.gz"
-		ebegin "Unpacking from ${archive}"
-		tar -x -z -o \
-			-f "${DISTDIR}/${archive}" \
-			"${components[@]/#/${MY_P}/}" || die
-		eend ${?}
-	fi
-}
-
-src_prepare() {
-	sed -e "s:amdgcn/bitcode:lib/amdgcn/bitcode:" \
-		-i cmake/OCL.cmake \
-		-i cmake/Packages.cmake || die
-	# shellcheck disable=SC2016
-	sed -e 's:${CMAKE_INSTALL_DATADIR}/doc/${CPACK_PACKAGE_NAME}:${CMAKE_INSTALL_DOCDIR}:' \
-		-i CMakeLists.txt || die
-	cmake_src_prepare
-}
-
-src_configure() {
-	# Do not trust CMake with autoselecting Clang, as it autoselects the latest one
-	# producing too modern LLVM bitcode and causing linker errors in other packages.
-	llvm_prepend_path "${LLVM_SLOT}"
-	local -x CC=${CHOST}-clang
-	local -x CXX=${CHOST}-clang++
-	# Clean up unsupported flags for the switched compiler, see #936099
-	strip-unsupported-flags
-
-	cmake_src_configure
-}
-
-src_install() {
-	cmake_src_install
-	# install symlink, so that clang won't ask for "--rocm-device-lib-path" flag anymore
-	local bitcodedir="$(clang -print-resource-dir)/$(get_libdir)/amdgcn/bitcode"
-	dosym -r "/usr/lib/amdgcn/bitcode" "${bitcodedir#"${EPREFIX}"}"
-}
-
-src_test() {
-	# https://github.com/ROCm/llvm-project/issues/76
-	# "Failing tests are on gfx that are not supported"
-	local CMAKE_SKIP_TESTS=(
-		compile_frexp__gfx600
-		compile_fract__gfx600
-		compile_native_rcp__gfx600
-		compile_native_rsqrt__gfx600
-		compile_fract__gfx700
-		compile_native_rcp__gfx700
-		compile_native_rsqrt__gfx700
-		compile_native_rcp__gfx803
-		compile_native_rsqrt__gfx803
-		compile_atomic_work_item_fence__*
-	)
-
-	cmake_src_test
-}
diff --git a/dev-libs/rocm-opencl-runtime/Manifest b/dev-libs/rocm-opencl-runtime/Manifest
deleted file mode 100644
index fe51061..0000000
--- a/dev-libs/rocm-opencl-runtime/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST rocm-clr-10.2.tar.gz 2495647 BLAKE2B 2c26a6250314a9f54a578c79062c09dc9067809e9d4dc4bc7d227c5c72fa4f3759aab8bc7f224de35a2f3d18ac304a6e08fe5633c551bd3bbf334d4b98023498 SHA512 a84f12a0f4a3f3c5d6e77a625472df12c81e8590768c10f4734985a59fca433122822546a515f5d31dbabe063a6a250ceff1cfd5cab922e1b6a4d03b6931aac3
diff --git a/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-6.2.4-fix-lib-version.patch b/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-6.2.4-fix-lib-version.patch
deleted file mode 100644
index 17c6ebc..0000000
--- a/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-6.2.4-fix-lib-version.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-There is no ROCM_LIBPATCH_VERSION outside of AMD farm.
-Upstream bug: https://github.com/ROCm/clr/issues/112
---- a/opencl/amdocl/CMakeLists.txt
-+++ b/opencl/amdocl/CMakeLists.txt
-@@ -66,6 +66,8 @@ set(AMDOCL_LIB_VERSION_MAJOR "2")
- set(AMDOCL_LIB_VERSION_MINOR "1")
- if(DEFINED ENV{ROCM_LIBPATCH_VERSION})
-   set(AMDOCL_LIB_VERSION_PATCH "${AMDOCL_LIB_VERSION_MAJOR}.${AMDOCL_LIB_VERSION_MINOR}.$ENV{ROCM_LIBPATCH_VERSION}")
-+else()
-+  set(AMDOCL_LIB_VERSION_PATCH "${AMDOCL_LIB_VERSION_MAJOR}.${AMDOCL_LIB_VERSION_MINOR}")
- endif()
- 
- set_target_properties(amdocl PROPERTIES
diff --git a/dev-libs/rocm-opencl-runtime/metadata.xml b/dev-libs/rocm-opencl-runtime/metadata.xml
deleted file mode 100644
index 68e21ef..0000000
--- a/dev-libs/rocm-opencl-runtime/metadata.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<maintainer type="person" proxied="yes">
-		<email>lockalsash@gmail.com</email>
-		<name>Sv. Lockal</name>
-		<description>Primary maintainer</description>
-	</maintainer>
-	<maintainer type="person" proxied="yes">
-		<email>xgreenlandforwyy@gmail.com</email>
-		<name>Yiyang Wu</name>
-	</maintainer>
-	<maintainer type="person" proxied="yes">
-		<email>negril.nx+gentoo@gmail.com</email>
-		<name>Paul Zander</name>
-		<description>General GPGPU stuff</description>
-	</maintainer>
-	<maintainer type="project" proxied="proxy">
-		<email>sci@gentoo.org</email>
-		<name>Gentoo Science Project</name>
-	</maintainer>
-	<upstream>
-		<remote-id type="github">ROCm/rocm-systems</remote-id>
-	</upstream>
-</pkgmetadata>
diff --git a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-10.2.ebuild b/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-10.2.ebuild
deleted file mode 100644
index aa18e09..0000000
--- a/dev-libs/rocm-opencl-runtime/rocm-opencl-runtime-10.2.ebuild
+++ /dev/null
@@ -1,107 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-ROCM_SKIP_GLOBALS=1
-inherit cmake edo flag-o-matic rocm
-
-DESCRIPTION="Radeon Open Compute OpenCL Compatible Runtime"
-HOMEPAGE="https://github.com/ROCm/rocm-systems/tree/develop/projects/clr"
-
-SRC_URI="https://github.com/ROCm/rocm-systems/releases/download/therock-${PV}/clr.tar.gz -> rocm-clr-${PV}.tar.gz"
-S="${WORKDIR}/clr"
-
-LICENSE="Apache-2.0 MIT"
-SLOT="0/$(ver_cut 1-2)"
-KEYWORDS="~amd64"
-IUSE="debug test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
-	dev-libs/rocr-runtime:${SLOT}
-	dev-libs/rocm-comgr:${SLOT}
-	dev-libs/rocm-device-libs:${SLOT}
-	>=virtual/opencl-3
-	media-libs/mesa[-opencl]
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
-	>=dev-build/rocm-cmake-6.0
-	media-libs/glew
-	test? ( >=x11-apps/mesa-progs-8.5.0[X] )
-"
-
-PATCHES=(
-	"${FILESDIR}/${PN}-6.2.4-fix-lib-version.patch"
-)
-
-src_prepare() {
-	# Compatibility with CMake < 3.10 will be removed
-	sed -e "/cmake_minimum_required/ s/3\.5/3.10/" \
-		-i opencl/khronos/icd/CMakeLists.txt opencl/khronos/headers/opencl2.2/tests/CMakeLists.txt || die
-	cmake_src_prepare
-}
-
-src_configure() {
-	# -Werror=strict-aliasing
-	# https://bugs.gentoo.org/856088
-	# https://github.com/ROCm/clr/issues/64
-	#
-	# Do not trust it for LTO either
-	append-flags -fno-strict-aliasing
-	filter-lto
-
-	# Fix ld.lld linker error: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/155
-	append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
-
-	# Reported upstream: https://github.com/RadeonOpenCompute/ROCm-OpenCL-Runtime/issues/120
-	append-cflags -fcommon
-
-	local mycmakeargs=(
-		-Wno-dev
-		-DROCM_PATH="${EPREFIX}/usr"
-		-DBUILD_TESTS=$(usex test ON OFF)
-		-DEMU_ENV=ON
-		-DBUILD_ICD=ON
-		-DCLR_BUILD_OCL=ON
-		-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
-	)
-	cmake_src_configure
-}
-
-src_install() {
-	insinto /etc/OpenCL/vendors
-	doins opencl/config/amdocl64.icd
-
-	cd "${BUILD_DIR}"/opencl || die
-	insinto /usr/lib64
-	doins amdocl/libamdocl64.so*
-	doins tools/cltrace/libcltrace.so
-}
-
-src_test() {
-	check_amdgpu
-	cd "${BUILD_DIR}"/tests/ocltst || die
-	export OCL_ICD_FILENAMES="${BUILD_DIR}"/amdocl/libamdocl64.so
-	local instruction1="Please start an X server using amdgpu driver (not Xvfb!),"
-	local instruction2="and export OCLGL_DISPLAY=\${DISPLAY} OCLGL_XAUTHORITY=\${XAUTHORITY} before reruning the test."
-	if [[ -n ${OCLGL_DISPLAY+x} ]]; then
-		export DISPLAY=${OCLGL_DISPLAY}
-		export XAUTHORITY=${OCLGL_XAUTHORITY}
-		ebegin "Running oclgl test under DISPLAY ${OCLGL_DISPLAY}"
-		if ! glxinfo | grep "OpenGL vendor string: AMD"; then
-			ewarn "${instruction1}"
-			ewarn "${instruction2}"
-			die "This display does not have AMD OpenGL vendor!"
-		fi
-		./ocltst -m $(realpath liboclgl.so) -A ogl.exclude
-		eend $? || die "oclgl test failed"
-	else
-		ewarn "${instruction1}"
-		ewarn "${instruction2}"
-		die "\${OCLGL_DISPLAY} not set."
-	fi
-	edob ./ocltst -m $(realpath liboclruntime.so) -A oclruntime.exclude
-	edob ./ocltst -m $(realpath liboclperf.so) -A oclperf.exclude
-}
diff --git a/dev-libs/rocr-runtime/Manifest b/dev-libs/rocr-runtime/Manifest
deleted file mode 100644
index e33033f..0000000
--- a/dev-libs/rocr-runtime/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST rocr-runtime-10.2.tar.gz 2773170 BLAKE2B 91dcd2dee9d4a91cab8e83edcf9b4beaa8fe94cdb36b171a25cc3b5a9925df3aa96e3a54c69ef4806b41787a9e6275c5724f91a42a0e5ac4b979e7f3f7b3b4d6 SHA512 398718c26eaca06f9e5f13304ad0fbb64f88759158d904bb9e54ea66e149ffa922dccca4378aaa2aaa52311a9d48a79948434f3ebce7bb45e676566e8d4d78e6
diff --git a/dev-libs/rocr-runtime/files/rocr-runtime-7.2.0-use-system-hsakmt.patch b/dev-libs/rocr-runtime/files/rocr-runtime-7.2.0-use-system-hsakmt.patch
deleted file mode 100644
index 126d991..0000000
--- a/dev-libs/rocr-runtime/files/rocr-runtime-7.2.0-use-system-hsakmt.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-libhsakmt is a part of dev-libs/roct-thunk-interface
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -125,11 +125,19 @@
-   set(BUILD_THUNK_VIRTIO OFF)
- endif()
- 
-+if (BUILD_HSAKMT)
- add_rocm_subdir(libhsakmt "${THUNK_DEFINITIONS}")
- set_target_properties(hsakmt PROPERTIES
-                                 ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/libhsakmt/archive"
-                                 LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/libhsakmt/lib"
-                                 RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/libhsakmt/runtime")
-+else()
-+  find_package(hsakmt REQUIRED)
-+  add_library(hsakmt ALIAS hsakmt::hsakmt)
-+  # hsakmt/linux/kfd_ioctl.h is build-only (libhsakmt install excludes PATTERN "linux");
-+  # keep the bundled copy on the include path for amd_core_dump.cpp.
-+  include_directories(${CMAKE_CURRENT_SOURCE_DIR}/libhsakmt/include)
-+endif()
- if (WIN32)
- set_target_properties(hsakmt PROPERTIES
-                       CXX_STANDARD 20
diff --git a/dev-libs/rocr-runtime/metadata.xml b/dev-libs/rocr-runtime/metadata.xml
deleted file mode 100644
index 68e21ef..0000000
--- a/dev-libs/rocr-runtime/metadata.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<maintainer type="person" proxied="yes">
-		<email>lockalsash@gmail.com</email>
-		<name>Sv. Lockal</name>
-		<description>Primary maintainer</description>
-	</maintainer>
-	<maintainer type="person" proxied="yes">
-		<email>xgreenlandforwyy@gmail.com</email>
-		<name>Yiyang Wu</name>
-	</maintainer>
-	<maintainer type="person" proxied="yes">
-		<email>negril.nx+gentoo@gmail.com</email>
-		<name>Paul Zander</name>
-		<description>General GPGPU stuff</description>
-	</maintainer>
-	<maintainer type="project" proxied="proxy">
-		<email>sci@gentoo.org</email>
-		<name>Gentoo Science Project</name>
-	</maintainer>
-	<upstream>
-		<remote-id type="github">ROCm/rocm-systems</remote-id>
-	</upstream>
-</pkgmetadata>
diff --git a/dev-libs/rocr-runtime/rocr-runtime-10.2.ebuild b/dev-libs/rocr-runtime/rocr-runtime-10.2.ebuild
deleted file mode 100644
index d6d605b..0000000
--- a/dev-libs/rocr-runtime/rocr-runtime-10.2.ebuild
+++ /dev/null
@@ -1,72 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-LLVM_COMPAT=( 24 )
-
-inherit cmake flag-o-matic llvm-r2
-
-if [[ ${PV} == *9999 ]] ; then
-	EGIT_REPO_URI="https://github.com/ROCm/ROCR-Runtime/"
-	inherit git-r3
-	S="${WORKDIR}/${P}"
-else
-	SRC_URI="https://github.com/ROCm/rocm-systems/releases/download/therock-${PV}/${PN}.tar.gz -> ${P}.tar.gz"
-	S="${WORKDIR}/${PN}"
-	KEYWORDS="~amd64"
-fi
-
-DESCRIPTION="Radeon Open Compute Runtime"
-HOMEPAGE="https://github.com/ROCm/rocm-systems/tree/develop/projects/rocr-runtime"
-
-LICENSE="MIT"
-SLOT="0/$(ver_cut 1-2)"
-IUSE="debug"
-
-COMMON_DEPEND="dev-libs/elfutils
-	x11-libs/libdrm"
-DEPEND="${COMMON_DEPEND}
-	dev-libs/roct-thunk-interface:${SLOT}
-	dev-libs/rocm-device-libs:${SLOT}
-	$(llvm_gen_dep "
-		llvm-core/clang:\${LLVM_SLOT}=
-		llvm-core/lld:\${LLVM_SLOT}=
-	")
-"
-RDEPEND="${DEPEND}"
-BDEPEND="app-editors/vim-core"
-	# vim-core is needed for "xxd"
-
-PATCHES=(
-	"${FILESDIR}/${PN}-7.2.0-use-system-hsakmt.patch"
-)
-
-# skip false positive detection in samples, bug #958188
-CMAKE_QA_COMPAT_SKIP=1
-
-src_prepare() {
-	cd "${S}/runtime/hsa-runtime" || die
-
-	# Gentoo installs "*.bc" to "/usr/lib" instead of a "[path]/bitcode" directory ...
-	sed -e "s:-O2:--rocm-path=${EPREFIX}/usr/lib/ -O2:" -i image/blit_src/CMakeLists.txt || die
-
-	cd "${S}" || die
-	cmake_src_prepare
-}
-
-src_configure() {
-	# -Werror=odr
-	# https://bugs.gentoo.org/856091
-	# https://github.com/ROCm/ROCR-Runtime/issues/182
-	filter-lto
-
-	use debug || append-cxxflags "-DNDEBUG"
-
-	local mycmakeargs=(
-		-DCMAKE_DISABLE_FIND_PACKAGE_rocprofiler-register=ON
-		-Wno-dev
-	)
-
-	cmake_src_configure
-}
diff --git a/dev-libs/roct-thunk-interface/Manifest b/dev-libs/roct-thunk-interface/Manifest
deleted file mode 100644
index 335c664..0000000
--- a/dev-libs/roct-thunk-interface/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST roct-thunk-interface-10.2.tar.gz 2773170 BLAKE2B 91dcd2dee9d4a91cab8e83edcf9b4beaa8fe94cdb36b171a25cc3b5a9925df3aa96e3a54c69ef4806b41787a9e6275c5724f91a42a0e5ac4b979e7f3f7b3b4d6 SHA512 398718c26eaca06f9e5f13304ad0fbb64f88759158d904bb9e54ea66e149ffa922dccca4378aaa2aaa52311a9d48a79948434f3ebce7bb45e676566e8d4d78e6
diff --git a/dev-libs/roct-thunk-interface/files/kfdtest-6.1.0-skipIPCtest.patch b/dev-libs/roct-thunk-interface/files/kfdtest-6.1.0-skipIPCtest.patch
deleted file mode 100644
index cca728d..0000000
--- a/dev-libs/roct-thunk-interface/files/kfdtest-6.1.0-skipIPCtest.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-Issue: https://github.com/ROCm/ROCT-Thunk-Interface/issues/103
-===================================================================
---- ROCT-Thunk-Interface-rocm-6.1.1.orig/tests/kfdtest/scripts/kfdtest.exclude
-+++ ROCT-Thunk-Interface-rocm-6.1.1/tests/kfdtest/scripts/kfdtest.exclude
-@@ -63,6 +63,7 @@ PERMANENT_BLACKLIST_ALL_ASICS=\
- # failures can be found
- # NOTE: If you update this alphabetical listing, add the corresponding JIRA ticket for reference
- #
-+# KFDIPCTest.BasicTest are not compatible with upstream amdgpu kernel module
- # KFDQMTest.GPUDoorbellWrite fails intermittently (KFD-318)
- # KFDQMTest.mGPUShareBO (KFD-334)
- # KFDHWSTest.* (SWDEV-193035)
-@@ -72,6 +73,7 @@ PERMANENT_BLACKLIST_ALL_ASICS=\
- # KFDDBGTest.SuspendQueues (SWDEV-417850)
- # KFDDBGTest.HitAddressWatch (SWDEV-420281)
- TEMPORARY_BLACKLIST_ALL_ASICS=\
-+"KFDIPCTest.BasicTest:"\
- "KFDQMTest.GPUDoorbellWrite:"\
- "KFDQMTest.mGPUShareBO:"\
- "KFDQMTest.SdmaEventInterrupt:"\
diff --git a/dev-libs/roct-thunk-interface/files/roct-thunk-interface-10.2-export-symbols.patch b/dev-libs/roct-thunk-interface/files/roct-thunk-interface-10.2-export-symbols.patch
deleted file mode 100644
index e139363..0000000
--- a/dev-libs/roct-thunk-interface/files/roct-thunk-interface-10.2-export-symbols.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-Export two things 10.1's libhsakmt drops, both needed by libhsa-runtime64
-(so the rocminfo link fails with "undefined reference" against libhsa-runtime64):
-
-* hsaKmtCreateQueueV2 is defined (visible) but absent from libhsakmt.ver, so
-  the "local: *;" version script hides it.
-* The four hsaKmt*ExternalSemaphore helpers in src/extsem.c are the only
-  exported functions whose file includes the public hsakmt.h instead of the
-  internal libhsakmt.h; since HSAKMTAPI is empty in the public header and the
-  build uses -fvisibility=hidden, they are compiled hidden and never exported.
-
---- a/src/libhsakmt.ver
-+++ b/src/libhsakmt.ver
-@@ -20,6 +20,7 @@
- hsaKmtWaitOnMultipleEvents;
- hsaKmtCreateQueue;
- hsaKmtUpdateQueue;
-+hsaKmtCreateQueueV2;
- hsaKmtDestroyQueue;
- hsaKmtSetQueueCUMask;
- hsaKmtSetMemoryPolicy;
---- a/src/extsem.c
-+++ b/src/extsem.c
-@@ -6,6 +6,13 @@
- 
- #include "hsakmt/hsakmt.h"
- 
-+/* HSAKMTAPI is empty in the public header while the library is built with
-+ * -fvisibility=hidden, so these helpers (the only ones not including the
-+ * internal libhsakmt.h) end up hidden and drop out of the version script. */
-+#if defined(__GNUC__)
-+#pragma GCC visibility push(default)
-+#endif
-+
- HSAKMT_STATUS HSAKMTAPI hsaKmtImportExternalSemaphore(
-     HSAuint32 NodeId, void *NtHandle,
-     HSA_EXTERNAL_SEMAPHORE_HANDLE_TYPE Type,
-@@ -33,3 +40,7 @@
-   (void)QueueId; (void)Handle; (void)Value;
-   return HSAKMT_STATUS_NOT_SUPPORTED;
- }
-+
-+#if defined(__GNUC__)
-+#pragma GCC visibility pop
-+#endif
diff --git a/dev-libs/roct-thunk-interface/files/roct-thunk-interface-7.1.0-functions.patch b/dev-libs/roct-thunk-interface/files/roct-thunk-interface-7.1.0-functions.patch
deleted file mode 100644
index df7276a..0000000
--- a/dev-libs/roct-thunk-interface/files/roct-thunk-interface-7.1.0-functions.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-https://github.com/ROCm/rocm-systems/issues/284
---- a/src/libhsakmt.ver
-+++ b/src/libhsakmt.ver
-@@ -113,6 +113,9 @@
- hsaKmtMemoryCpuMap;
- hsaKmtSetSigbusDelay;
- hsaKmtGetAmdGPUDeviceFd;
-+hsaKmtCreateQueueExt;
-+hsaKmtRegisterGraphicsHandleToNodesExt;
-+hsaKmtModelEnabled;
- hsaKmtSetPersistingCacheSize;
- local: *;
- };
diff --git a/dev-libs/roct-thunk-interface/metadata.xml b/dev-libs/roct-thunk-interface/metadata.xml
deleted file mode 100644
index 68e21ef..0000000
--- a/dev-libs/roct-thunk-interface/metadata.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<maintainer type="person" proxied="yes">
-		<email>lockalsash@gmail.com</email>
-		<name>Sv. Lockal</name>
-		<description>Primary maintainer</description>
-	</maintainer>
-	<maintainer type="person" proxied="yes">
-		<email>xgreenlandforwyy@gmail.com</email>
-		<name>Yiyang Wu</name>
-	</maintainer>
-	<maintainer type="person" proxied="yes">
-		<email>negril.nx+gentoo@gmail.com</email>
-		<name>Paul Zander</name>
-		<description>General GPGPU stuff</description>
-	</maintainer>
-	<maintainer type="project" proxied="proxy">
-		<email>sci@gentoo.org</email>
-		<name>Gentoo Science Project</name>
-	</maintainer>
-	<upstream>
-		<remote-id type="github">ROCm/rocm-systems</remote-id>
-	</upstream>
-</pkgmetadata>
diff --git a/dev-libs/roct-thunk-interface/roct-thunk-interface-10.2.ebuild b/dev-libs/roct-thunk-interface/roct-thunk-interface-10.2.ebuild
deleted file mode 100644
index c7ff162..0000000
--- a/dev-libs/roct-thunk-interface/roct-thunk-interface-10.2.ebuild
+++ /dev/null
@@ -1,109 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-LLVM_COMPAT=( 24 )
-ROCM_SKIP_GLOBALS=1
-inherit cmake flag-o-matic linux-info llvm-r2 rocm
-
-if [[ ${PV} == *9999 ]] ; then
-	EGIT_SUBMODULES=()
-	EGIT_REPO_URI="https://github.com/ROCm/rocm-systems.git"
-	inherit git-r3
-	S="${WORKDIR}/${P}/projects/rocr-runtime/libhsakmt"
-else
-	SRC_URI="https://github.com/ROCm/rocm-systems/releases/download/therock-${PV}/rocr-runtime.tar.gz -> ${P}.tar.gz"
-	S="${WORKDIR}/rocr-runtime/libhsakmt"
-	KEYWORDS="~amd64"
-fi
-
-DESCRIPTION="Radeon Open Compute Thunk Interface"
-HOMEPAGE="https://github.com/ROCm/rocm-systems/tree/develop/projects/rocr-runtime/libhsakmt"
-CONFIG_CHECK="~HSA_AMD ~HMM_MIRROR ~ZONE_DEVICE ~DRM_AMDGPU ~DRM_AMDGPU_USERPTR"
-LICENSE="MIT"
-SLOT="0/$(ver_cut 1-2)"
-
-RDEPEND="
-	sys-process/numactl
-	x11-libs/libdrm[video_cards_amdgpu]
-"
-DEPEND="${RDEPEND}
-	test? (
-		$(llvm_gen_dep "llvm-core/llvm:\${LLVM_SLOT}")
-		dev-cpp/gtest
-	)"
-
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-CMAKE_BUILD_TYPE=Release
-
-PATCHES=(
-	"${FILESDIR}/${PN}-7.1.0-functions.patch"
-	"${FILESDIR}/${PN}-10.2-export-symbols.patch"
-	"${FILESDIR}/kfdtest-6.1.0-skipIPCtest.patch"
-)
-
-test_wrapper() {
-	local S="$1"
-	shift 1
-	local CMAKE_USE_DIR="${S}"
-	local BUILD_DIR="${S}_build"
-	cd "${S}" || die
-	"$@"
-}
-
-src_prepare() {
-	sed -e "s/get_version ( \"1.0.0\" )/get_version ( \"${PV}\" )/" -i CMakeLists.txt || die
-
-	# https://github.com/ROCm/ROCR-Runtime/issues/263
-	sed -e "s/\${HSAKMT_TARGET} STATIC/\${HSAKMT_TARGET}/" -i CMakeLists.txt || die
-
-	cmake_src_prepare
-}
-
-src_configure() {
-	llvm_prepend_path "${LLVM_SLOT}"
-
-	# QA warnings
-	append-cxxflags -Wno-unused-value
-
-	local mycmakeargs=(
-		-DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
-		-DBUILD_SHARED_LIBS=ON
-		-DCMAKE_DISABLE_FIND_PACKAGE_NUMA=ON # skip warning - will use find_library anyways
-	)
-	cmake_src_configure
-
-	if use test; then
-		# ODR violations (bug #956958)
-		filter-lto
-
-		export LIBHSAKMT_PATH="${BUILD_DIR}"
-		test_wrapper "${S}/tests/kfdtest" cmake_src_configure
-	fi
-}
-
-src_compile() {
-	cmake_src_compile
-	if use test; then
-		LIBRARY_PATH="${BUILD_DIR}" test_wrapper "${S}/tests/kfdtest" cmake_src_compile
-	fi
-}
-
-src_test() {
-	check_amdgpu
-	cd "${S}/tests/kfdtest_build/" || die
-	# Bug: https://github.com/ROCm/rocm-systems/issues/3635
-	local skipped_tests=(
-		KFDMemoryTest.LargestSysBufferTest   # OOMs with gfx1151
-		KFDMemoryTest.LargestVramBufferTest  # OOMs with gfx1151
-		KFDMemoryTest.BigSysBufferStressTest # OOMs with gfx1151
-		KFDQMTest.mGPUShareBO                # wants at least two GPUs?
-		KFDPCSamplingTest.*                  # gfx1151: no pc sampling?
-		KFDQMTest.QueueLatency               # gfx1151: fails (issues with iGPU clock?)
-	)
-	local IFS=:
-	./run_kfdtest.sh -e "${skipped_tests[*]}" || die
-}
diff --git a/dev-util/amdsmi/Manifest b/dev-util/amdsmi/Manifest
deleted file mode 100644
index ae8e187..0000000
--- a/dev-util/amdsmi/Manifest
+++ /dev/null
@@ -1,2 +0,0 @@
-DIST amdsmi-10.2.tar.gz 2050622 BLAKE2B 906f89685ef5517346a53114463890ea7725ba5a07578c0f2c84654c7234155fa40a1cb289f1b711e31a61d51bf20ebc4303572f579a14c8f502cdb3d7581aeb SHA512 eee5d77886cb8785084fedc247fe2df96981ddbfa667067c494a702fb16ef3750bb57138d044110b65292fbdf66c54e691f15d2b9345248eacd96d9c1e6b7460
-DIST esmi_pkg_ver-4.2.tar.gz 463866 BLAKE2B 4d78fe94351623dad5a187133ad8d1be456c2477b69c0b6dc15b2d239b494c9f4011fe558e36a07f7b03b67daccf8bf03b92ea3502dc31ddc965fa9e28b3b49e SHA512 8a86eb84f86cada75232a800ce81f151bfe4b77f119a1a19189abddf8473e7b7f860594a206303277f708497e86db34af519e061e5ff3bb9d860b943c5781b09
diff --git a/dev-util/amdsmi/amdsmi-10.2.ebuild b/dev-util/amdsmi/amdsmi-10.2.ebuild
deleted file mode 100644
index e52d7b1..0000000
--- a/dev-util/amdsmi/amdsmi-10.2.ebuild
+++ /dev/null
@@ -1,105 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..14} )
-ROCM_SKIP_GLOBALS=1
-inherit cmake linux-info python-r1 rocm
-
-ESMI_PN=esmi_pkg_ver
-ESMI_PV=4.2
-
-DESCRIPTION="AMD System Management Interface for managing and monitoring GPUs"
-HOMEPAGE="
-	https://github.com/ROCm/amdsmi
-	https://rocm.docs.amd.com/projects/amdsmi/en/latest/
-"
-SRC_URI="
-	https://github.com/ROCm/rocm-systems/releases/download/therock-${PV}/amdsmi.tar.gz -> ${P}.tar.gz
-	https://github.com/amd/esmi_ib_library/archive/refs/tags/${ESMI_PN}-${ESMI_PV}.tar.gz
-"
-S="${WORKDIR}/amdsmi"
-ESMI_S="${WORKDIR}/esmi_ib_library-${ESMI_PN}-${ESMI_PV}"
-
-LICENSE="MIT"
-SLOT="0/$(ver_cut 1-2)"
-KEYWORDS="~amd64"
-
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-DEPEND="
-	${PYTHON_DEPS}
-	test? ( dev-cpp/gtest )
-	x11-libs/libdrm[video_cards_amdgpu]
-	dev-libs/rocm-core:${SLOT}
-"
-RDEPEND="
-	${PYTHON_DEPS}
-"
-
-CONFIG_CHECK="~HSA_AMD ~DRM_AMDGPU"
-
-src_prepare() {
-	ln -s "${ESMI_S}" esmi_ib_library || die
-
-	# Compatibility with CMake < 3.10 will be removed
-	sed -e "/cmake_minimum_required/ s/3\.5\.0/3.10/" \
-		-i goamdsmi_shim/CMakeLists.txt "${ESMI_S}"/CMakeLists.txt || die
-
-	sed -e "s/-Wall -Wextra//" \
-		-i CMakeLists.txt "${ESMI_S}"/CMakeLists.txt goamdsmi_shim/CMakeLists.txt || die
-
-	# Reset custom installation path
-	sed -e "/generic_add_rocm/d" -i CMakeLists.txt || die
-
-	# Remove /usr/lib to fix multilib
-	sed -e '/target_link_libraries.*\/lib/d' -i goamdsmi_shim/CMakeLists.txt || die
-
-	# Install docs to correct place
-	sed -e "s:doc/\${CPACK_PACKAGE_NAME}:doc/${P}:" -i CMakeLists.txt || die
-
-	# Do not install /usr/share/doc/${P}-asan
-	sed -e "s/COMPONENT asan/COMPONENT asan EXCLUDE_FROM_ALL/" -i CMakeLists.txt || die
-
-	cmake_src_prepare
-}
-
-src_configure() {
-	python_setup
-
-	local mycmakeargs=(
-		-DBUILD_TESTS=$(usex test)
-		-Wno-dev
-	)
-	use test && mycmakeargs+=( -DCMAKE_REQUIRE_FIND_PACKAGE_GTest=ON )
-	cmake_src_configure
-}
-
-src_test() {
-	# GPU access in amdsmitstReadOnly.TestSysInfoRead and amdsmitstReadOnly.TestIdInfoRead
-	addwrite /dev/dri/renderD128
-
-	# Few tests fail on ASUS GZ302E: no metrics from kernel?
-	GTEST_FILTER="-amdsmitstReadOnly.TempRead:amdsmitstReadOnly.TestFrequenciesRead" \
-	"${BUILD_DIR}/tests/amd_smi_test/amdsmitst" || die "Test failed"
-}
-
-src_install() {
-	cmake_src_install
-
-	# Wrong places
-	rm "${ED}"/usr/share/amd_smi/amdsmi/{libamd_smi.so,LICENSE,README.md} || die
-
-	python_fix_shebang "${ED}"/usr/libexec/amdsmi_cli
-	python_domodule "${ED}"/usr/libexec/amdsmi_cli
-	python_domodule "${ED}"/usr/share/amd_smi/amdsmi
-
-	fperms a+x "/usr/lib/${EPYTHON}/site-packages/amdsmi_cli/amdsmi_cli.py"
-	dosym -r "/usr/lib/${EPYTHON}/site-packages/amdsmi_cli/amdsmi_cli.py" /usr/bin/amd-smi
-
-	rm -rf "${ED}"/usr/share/amd_smi "${ED}"/usr/libexec/amdsmi_cli || die
-}
diff --git a/dev-util/amdsmi/metadata.xml b/dev-util/amdsmi/metadata.xml
deleted file mode 100644
index 17201a8..0000000
--- a/dev-util/amdsmi/metadata.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<maintainer type="person" proxied="yes">
-		<email>lockalsash@gmail.com</email>
-		<name>Sv. Lockal</name>
-		<description>Primary maintainer</description>
-	</maintainer>
-	<maintainer type="person" proxied="yes">
-		<email>xgreenlandforwyy@gmail.com</email>
-		<name>Yiyang Wu</name>
-	</maintainer>
-	<maintainer type="person" proxied="yes">
-		<email>negril.nx+gentoo@gmail.com</email>
-		<name>Paul Zander</name>
-		<description>General GPGPU stuff</description>
-	</maintainer>
-	<maintainer type="project" proxied="proxy">
-		<email>sci@gentoo.org</email>
-		<name>Gentoo Science Project</name>
-	</maintainer>
-	<upstream>
-		<remote-id type="github">ROCm/amdsmi</remote-id>
-	</upstream>
-</pkgmetadata>
diff --git a/dev-util/hip/Manifest b/dev-util/hip/Manifest
deleted file mode 100644
index ab42dc0..0000000
--- a/dev-util/hip/Manifest
+++ /dev/null
@@ -1,3 +0,0 @@
-DIST hip-10.2.tar.gz 4286442 BLAKE2B adbaa1a5684cd43434c59ca0e2326d8126dd036906fcb47ba9a1744cf27024add5203494907a9ea3dd05a9ea309eeb9527bbd9f87cd599b3b35e144b6d16f6e6 SHA512 04e5541f346a146a6e0624cbf83fc951e88d9c39d72629f9e730ff92f9714e048ae10d23bb1f0d0d7e6d6dae529eeb0d1a905a2174bbe7426ea791fdc457590d
-DIST hip-tests-10.2.tar.gz 2024186 BLAKE2B 34a7a1f66dc7ed5903311be0600f6a079fbde066e2fb43a826b87185a7ec02cab9f2ad767fc5be3e7dcd3c15cff2073a8ae775eba5ab219462232486f91992d7 SHA512 58862aa9415c9b06a471735ef247f88522edeabff9ae0ead86c9ef32cc4da765e16f34b4e98fdc2f53d70447edc8c748988d45cd58ec1c38b635c8327c473695
-DIST rocm-clr-10.2.tar.gz 2495647 BLAKE2B 2c26a6250314a9f54a578c79062c09dc9067809e9d4dc4bc7d227c5c72fa4f3759aab8bc7f224de35a2f3d18ac304a6e08fe5633c551bd3bbf334d4b98023498 SHA512 a84f12a0f4a3f3c5d6e77a625472df12c81e8590768c10f4734985a59fca433122822546a515f5d31dbabe063a6a250ceff1cfd5cab922e1b6a4d03b6931aac3
diff --git a/dev-util/hip/files/hip-6.3.0-no-isystem-usr-include.patch b/dev-util/hip/files/hip-6.3.0-no-isystem-usr-include.patch
deleted file mode 100644
index 973de08..0000000
--- a/dev-util/hip/files/hip-6.3.0-no-isystem-usr-include.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-Prevent HIP targets from adding -isystem /usr/include, which breaks <cmath>
---- a/hipamd/hip-config-amd.cmake.in
-+++ b/hipamd/hip-config-amd.cmake.in
-@@ -135,13 +135,11 @@ set_target_properties(hip::host PROPERTIES
- 
- set_target_properties(hip::amdhip64 PROPERTIES
-   INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
--  INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
- )
- 
- if(NOT WIN32)
-   set_target_properties(hip::device PROPERTIES
-     INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
--    INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
-   )
- endif()
- 
diff --git a/dev-util/hip/files/hip-7.1.0-no-hipother-install.patch b/dev-util/hip/files/hip-7.1.0-no-hipother-install.patch
deleted file mode 100644
index 417718e..0000000
--- a/dev-util/hip/files/hip-7.1.0-no-hipother-install.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-HIPNV_DIR is /usr (part of dev-libs/hipother).
-Installing from there results in file collision.
-
-Bug: https://bugs.gentoo.org/966306
---- a/hipamd/packaging/CMakeLists.txt
-+++ b/hipamd/packaging/CMakeLists.txt
-@@ -106,10 +106,6 @@ endforeach()
- install(DIRECTORY ${HIP_COMMON_DIR}/include DESTINATION . COMPONENT dev)
- install(DIRECTORY ${hip_SOURCE_DIR}/include/hip/amd_detail
-         DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/hip COMPONENT dev)
--if(DEFINED HIPNV_DIR)
--    install(DIRECTORY ${HIPNV_DIR}/include/hip/nvidia_detail
--        DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/hip COMPONENT dev)
--endif()
- if(HIP_PLATFORM STREQUAL "amd" )
- install(FILES ${CMAKE_BINARY_DIR}/hipamd/include/hip/amd_detail/hip_prof_str.h
-         DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/hip/amd_detail COMPONENT dev)
---- a/hipamd/CMakeLists.txt
-+++ b/hipamd/CMakeLists.txt
-@@ -398,9 +398,6 @@ if(NOT ${INSTALL_SOURCE} EQUAL 0)
-     endif()
- 
-     install(DIRECTORY include DESTINATION .)
--    if(DEFINED HIPNV_DIR)
--        install(DIRECTORY ${HIPNV_DIR}/include/hip/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/hip/)
--    endif()
-     install(DIRECTORY ${HIP_COMMON_INCLUDE_DIR}/hip/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/hip/)
-     if(WIN32)
-       install(DIRECTORY ${HIP_COMMON_DIR}/cmake DESTINATION .)
diff --git a/dev-util/hip/files/hip-7.2.0-noinline-fixes.patch b/dev-util/hip/files/hip-7.2.0-noinline-fixes.patch
deleted file mode 100644
index ee5d17a..0000000
--- a/dev-util/hip/files/hip-7.2.0-noinline-fixes.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-Unsetting __noinline__ before inclusion of libc++ __config breaks libc++ headers.
-
-Additionally, `[[__gnu__::__noinline__]]` is used in libstdc++-16 `#include <format>`,
-causing build failures in libstdc++ as well.
-
-Bug: https://github.com/ROCm/rocm-systems/issues/1874
---- a/hipamd/include/hip/amd_detail/host_defines.h
-+++ b/hipamd/include/hip/amd_detail/host_defines.h
-@@ -250,6 +250,17 @@ typedef __hip_internal::int64_t __hip_int64_t;
- 
- #define __global__
- 
-+// __config in libc++ fails on `__has_attribute(__noinline__)` if __noinline__ is emptied
-+#if defined(__cplusplus) && defined(__has_include)
-+#  if __has_include(<__config>)
-+#    include <__config>
-+#  else
-+// format in libstdc++-16 fails on `[[__gnu__::__noinline__]]` if __noinline__ is emptied
-+// https://github.com/ROCm/rocm-systems/issues/1874#issuecomment-5550937256
-+#    include <format>
-+#  endif
-+#endif
-+
- #define __noinline__
- #define __forceinline__ inline
- 
diff --git a/dev-util/hip/hip-10.2.ebuild b/dev-util/hip/hip-10.2.ebuild
deleted file mode 100644
index 6b35d2d..0000000
--- a/dev-util/hip/hip-10.2.ebuild
+++ /dev/null
@@ -1,249 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DOCS_BUILDER="doxygen"
-DOCS_DEPEND="media-gfx/graphviz"
-ROCM_SKIP_GLOBALS=1
-
-LLVM_COMPAT=( 24 )
-
-inherit cmake docs flag-o-matic llvm-r2 rocm
-
-DESCRIPTION="C++ Heterogeneous-Compute Interface for Portability"
-HOMEPAGE="https://github.com/ROCm/rocm-systems/tree/develop/projects/clr"
-if [[ ${PV} == 9999 ]]; then
-	inherit git-r3
-	EGIT_SUBMODULES=()
-	EGIT_REPO_URI="https://github.com/ROCm/rocm-systems.git"
-	S="${WORKDIR}/${P}/projects/clr"
-	TEST_S="${WORKDIR}/${P}/projects/hip-tests"
-	HIP_S="${WORKDIR}/${P}/projects/hip"
-	SLOT="0/10.2"
-else
-	SRC_URI="
-		https://github.com/ROCm/rocm-systems/releases/download/therock-${PV}/clr.tar.gz -> rocm-clr-${PV}.tar.gz
-		https://github.com/ROCm/rocm-systems/releases/download/therock-${PV}/${PN}.tar.gz -> ${P}.tar.gz
-		test? (
-			https://github.com/ROCm/rocm-systems/releases/download/therock-${PV}/hip-tests.tar.gz -> hip-tests-${PV}.tar.gz
-		)
-	"
-	S="${WORKDIR}/clr/"
-	TEST_S="${WORKDIR}/hip-tests/catch"
-	HIP_S="${WORKDIR}/hip"
-	KEYWORDS="~amd64"
-	SLOT="0/$(ver_cut 1-2)"
-fi
-
-LICENSE="MIT"
-
-IUSE="debug +hip opencl test video_cards_amdgpu video_cards_nvidia"
-
-# many tests are broken; also tests run against installed version, not built one
-RESTRICT="test"
-
-REQUIRED_USE="
-	|| ( hip opencl )
-	^^ ( video_cards_amdgpu video_cards_nvidia )
-"
-
-DEPEND="
-	video_cards_amdgpu? (
-		dev-util/rocminfo:${SLOT}
-		dev-libs/rocm-comgr:${SLOT}
-		dev-libs/rocr-runtime:${SLOT}
-	)
-	video_cards_nvidia? ( dev-libs/hipother:${SLOT} )
-	x11-base/xorg-proto
-	virtual/opengl[X]
-"
-BDEPEND="
-	video_cards_amdgpu? (
-		dev-util/hipcc:${SLOT}
-	)
-	test? (
-		media-libs/freeglut
-		$(llvm_gen_dep "
-			dev-util/spirv-llvm-translator:\${LLVM_SLOT}
-		")
-	)
-"
-RDEPEND="${DEPEND}
-	~dev-libs/rocm-core-${PV}
-	opencl? (
-		!dev-libs/opencl-icd-loader
-		!dev-libs/rocm-opencl-runtime
-		!dev-util/clinfo
-		!dev-util/opencl-headers
-	)
-	video_cards_amdgpu? (
-		dev-util/hipcc:${SLOT}
-		dev-libs/rocm-device-libs:${SLOT}
-		dev-libs/roct-thunk-interface:${SLOT}
-	)
-"
-
-PATCHES=(
-	"${FILESDIR}/${PN}-6.3.0-no-isystem-usr-include.patch"
-	"${FILESDIR}/${PN}-7.1.0-no-hipother-install.patch"
-	"${FILESDIR}/${PN}-7.2.0-noinline-fixes.patch"
-)
-
-QA_FLAGS_IGNORED="usr/lib.*/libhiprtc-builtins.*"
-
-hip_test_wrapper() {
-	local CMAKE_USE_DIR="${TEST_S}"
-	local BUILD_DIR="${TEST_S}_build"
-	cd "${TEST_S}" || die
-	"${@}"
-}
-
-src_prepare() {
-	pushd "${HIP_S}" >/dev/null || die
-
-	# hipamd is itself built by cmake, and should never provide a
-	# FindHIP.cmake module. But the reality is some package relies on it.
-	# Set HIP and HIP Clang paths directly, don't search using heuristics
-	sed -e "s:# Search for HIP installation:set(HIP_ROOT_DIR \"${EPREFIX}/usr\"):" \
-		-e "s:#Set HIP_CLANG_PATH:set(HIP_CLANG_PATH \"$(get_llvm_prefix -d)/bin\"):" \
-		-i "cmake/FindHIP.cmake" || die
-	popd >/dev/null || die
-
-	sed -e "s/ -Werror//g" -i "hipamd/src/CMakeLists.txt" || die
-
-	# do not install /usr/share/doc/${P}-asan
-	sed -e "/asan COMPONENT asan/d" -i hipamd/packaging/CMakeLists.txt || die
-
-	sed -e "s/@HIP_INSTALLS_HIPCC@/ON/g" -i hipamd/hip-config.cmake.in || die
-
-	# skip installation of hipcc: installed via dev-util/hipcc
-	sed -e "s/NOT \${HIPCC_BIN_DIR}/INSTALL_HIPCC AND NOT \${HIPCC_BIN_DIR}/" \
-		-i "hipamd/CMakeLists.txt" || die
-
-	sed -e "/cmake_minimum_required/ s/3\.[35]/3.10/" \
-		-i "hipamd/src/hiprtc/cmake/hiprtc-config.cmake.in" \
-		-i opencl/khronos/icd/CMakeLists.txt \
-		-i opencl/khronos/headers/opencl2.2/tests/CMakeLists.txt || die
-
-	cmake_src_prepare
-
-	if use test; then
-		local PATCHES=()
-		sed -e "s/-Werror //" -e "s/-Wall -Wextra //" -i "${TEST_S}/CMakeLists.txt" || die
-
-		# policy not supported by CMake 4.0; and not needed
-		sed -e '/cmake_policy(SET CMP0037 OLD)/d' -i "${TEST_S}/CMakeLists.txt" || die
-
-		sed -e "s:/opt/rocm/bin:${EPREFIX}/usr/bin:" \
-			-i "${TEST_S}/hipTestMain/hip_test_context.cc" || die
-
-		hip_test_wrapper cmake_src_prepare
-	fi
-}
-
-src_configure() {
-	# -Werror=strict-aliasing
-	# https://bugs.gentoo.org/858383
-	# https://github.com/ROCm/clr/issues/64
-	#
-	# Do not trust it for LTO either
-	append-flags -fno-strict-aliasing
-	filter-lto
-
-	use debug && CMAKE_BUILD_TYPE="Debug"
-
-	# Fix ld.lld linker error: https://github.com/ROCm/HIP/issues/3382
-	# See also: https://github.com/gentoo/gentoo/pull/29097
-	append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
-
-	local mycmakeargs=(
-		-DCMAKE_PREFIX_PATH="$(get_llvm_prefix)"
-		# hiprtc-builtins embeds headers preprocessed by this clang.  It must
-		# match the LLVM slot used by rocm-comgr, not clang from PATH.
-		-Dclang="$(get_llvm_prefix)/bin/clang"
-		-Dllvm-mc="$(get_llvm_prefix)/bin/llvm-mc"
-		-DCMAKE_SKIP_RPATH=ON
-		-D__HIP_ENABLE_PCH=OFF
-
-		-DCLR_BUILD_HIP="$(usex hip)"
-		-DCLR_BUILD_OCL="$(usex opencl)"
-
-		-DHIP_COMMON_DIR="${HIP_S}"
-		-DHIP_ENABLE_ROCPROFILER_REGISTER=OFF
-		-DHIPCC_BIN_DIR="${EPREFIX}/usr/bin"
-		-DROCM_PATH="${EPREFIX}/usr"
-
-		-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
-	)
-
-	if use video_cards_amdgpu; then
-		mycmakeargs+=(
-			-DHIP_PLATFORM="amd"
-			-DOpenGL_GL_PREFERENCE="GLVND"
-			-DUSE_PROF_API=OFF
-		)
-	elif use video_cards_nvidia; then
-		mycmakeargs+=(
-			-DHIPNV_DIR="${EPREFIX}/usr"
-			-DHIP_PLATFORM="nvidia"
-		)
-	fi
-
-	cmake_src_configure
-
-	if use test; then
-		local mycmakeargs=(
-			-DCMAKE_MODULE_PATH="${TEST_S}/external/Catch2/cmake/Catch2"
-			-DROCM_PATH="${EPREFIX}/usr"
-			-DCMAKE_NO_SYSTEM_FROM_IMPORTED=ON
-			-Wno-dev
-
-			# 1) Use custom build of hipamd instead of system one
-			# 2) Build fails with libc++: https://github.com/llvm/llvm-project/issues/119076
-			-DCMAKE_CXX_FLAGS="-I${BUILD_DIR}/hipamd/include -stdlib=libstdc++"
-			-DCMAKE_EXE_LINKER_FLAGS="-L${BUILD_DIR}/hipamd/lib"
-		)
-		if use video_cards_amdgpu; then
-			mycmakeargs+=(
-				-DHIP_PLATFORM="amd"
-			)
-		elif use video_cards_nvidia; then
-			mycmakeargs+=(
-				-DHIP_PLATFORM="nvidia"
-			)
-		fi
-		hip_test_wrapper cmake_src_configure
-	fi
-}
-
-src_compile() {
-	cmake_src_compile
-
-	if use test; then
-		hip_test_wrapper cmake_src_compile build_tests
-	fi
-}
-
-src_test() {
-	check_amdgpu
-	export LD_LIBRARY_PATH="${BUILD_DIR}/hipamd/lib"
-	export ROCM_PATH="${EPREFIX}/usr"
-
-	# TODO: research how to test Vulkan-related features.
-	local CMAKE_SKIP_TESTS=(
-		Unit_hipExternalMemoryGetMappedBuffer_Vulkan_Positive_Read_Write
-		Unit_hipExternalMemoryGetMappedBuffer_Vulkan_Negative_Parameters
-		Unit_hipImportExternalMemory_Vulkan_Negative_Parameters
-		Unit_hipWaitExternalSemaphoresAsync_Vulkan_Positive_Binary_Semaphore
-		Unit_hipWaitExternalSemaphoresAsync_Vulkan_Positive_Multiple_Semaphores
-		Unit_hipWaitExternalSemaphoresAsync_Vulkan_Negative_Parameters
-		Unit_hipSignalExternalSemaphoresAsync_Vulkan_Positive_Binary_Semaphore
-		Unit_hipSignalExternalSemaphoresAsync_Vulkan_Positive_Multiple_Semaphores
-		Unit_hipSignalExternalSemaphoresAsync_Vulkan_Negative_Parameters
-		Unit_hipImportExternalSemaphore_Vulkan_Negative_Parameters
-		Unit_hipDestroyExternalSemaphore_Vulkan_Negative_Parameters
-	)
-
-	hip_test_wrapper cmake_src_test -j1
-}
diff --git a/dev-util/hip/metadata.xml b/dev-util/hip/metadata.xml
deleted file mode 100644
index 0393d06..0000000
--- a/dev-util/hip/metadata.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<maintainer type="person" proxied="yes">
-		<email>lockalsash@gmail.com</email>
-		<name>Sv. Lockal</name>
-		<description>Primary maintainer</description>
-	</maintainer>
-	<maintainer type="person" proxied="yes">
-		<email>xgreenlandforwyy@gmail.com</email>
-		<name>Yiyang Wu</name>
-	</maintainer>
-	<maintainer type="person" proxied="yes">
-		<email>negril.nx+gentoo@gmail.com</email>
-		<name>Paul Zander</name>
-		<description>General GPGPU stuff</description>
-	</maintainer>
-	<maintainer type="project" proxied="proxy">
-		<email>sci@gentoo.org</email>
-		<name>Gentoo Science Project</name>
-	</maintainer>
-	<upstream>
-		<remote-id type="github">ROCm/rocm-systems</remote-id>
-	</upstream>
-	<use>
-		<flag name="hip">Build HIP runtime</flag>
-		<flag name="numa">Enable NUMA support using <pkg>sys-process/numactl</pkg> (NUMA kernel support is also required)</flag>
-		<flag name="opencl">Build vendored OpenCL runtime</flag>
-		<flag name="video_cards_amdgpu">Build for AMD platform</flag>
-		<flag name="video_cards_nvidia">Build for Nvidia platform</flag>
-	</use>
-</pkgmetadata>
diff --git a/dev-util/hipcc/Manifest b/dev-util/hipcc/Manifest
deleted file mode 100644
index 85f5d26..0000000
--- a/dev-util/hipcc/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST llvm-project-therock-10.2.tar.gz 319418155 BLAKE2B 6fdba71a87e9121644220a68586d083e3b1c3a59e5e2fd6e7d4caba429c39f2370d5039d9d97daa81d405e96f55dc548a03283a3b60dbfea0983c42eb5c319e4 SHA512 a64c0b8921e97eb4866ef8ef8f184abc0dcc2fb4f9e2e53b099243056ea8cce974de4400ed7f5fdf12ebfb7b9ebce4fda095b012fec01d80a8a5f5eda6dac56b
diff --git a/dev-util/hipcc/hipcc-10.2.ebuild b/dev-util/hipcc/hipcc-10.2.ebuild
deleted file mode 100644
index fe0b099..0000000
--- a/dev-util/hipcc/hipcc-10.2.ebuild
+++ /dev/null
@@ -1,67 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-LLVM_COMPAT=( 24 )
-inherit cmake llvm-r2
-
-DESCRIPTION="Radeon Open Compute hipcc"
-HOMEPAGE="https://github.com/ROCm/llvm-project/tree/amd-staging/amd/hipcc"
-
-MY_P=llvm-project-therock-${PV}
-components=( "amd/hipcc" )
-if [[ ${PV} == *9999 ]] ; then
-	EGIT_REPO_URI="https://github.com/ROCm/llvm-project"
-	inherit git-r3
-	S="${WORKDIR}/${P}/${components[0]}"
-else
-	SRC_URI="https://github.com/ROCm/llvm-project/archive/therock-${PV}.tar.gz -> ${MY_P}.tar.gz"
-	S="${WORKDIR}/${MY_P}/${components[0]}"
-	KEYWORDS="~amd64"
-fi
-
-LICENSE="Apache-2.0 MIT"
-SLOT="0/$(ver_cut 1-2)"
-IUSE="debug"
-
-DEPEND="
-	$(llvm_gen_dep "
-		llvm-runtimes/compiler-rt:\${LLVM_SLOT}=
-		llvm-core/llvm:\${LLVM_SLOT}=
-		llvm-core/clang:\${LLVM_SLOT}=
-	")
-"
-RDEPEND="${DEPEND}"
-
-src_unpack() {
-	if [[ ${PV} == *9999 ]] ; then
-		git-r3_fetch
-		git-r3_checkout '' . '' "${components[@]}"
-	else
-		archive="${MY_P}.tar.gz"
-		ebegin "Unpacking from ${archive}"
-		tar -x -z -o \
-			-f "${DISTDIR}/${archive}" \
-			"${components[@]/#/${MY_P}/}" || die
-		eend ${?}
-	fi
-}
-
-src_prepare() {
-	cmake_src_prepare
-
-	sed -e "s:lib/llvm/bin:lib/llvm/${LLVM_SLOT}/bin:" \
-		-e "s:/opt/rocm:/usr:g" \
-		-i src/hipBin_base.h \
-		-i src/hipBin_amd.h || die
-
-	sed -e "s:amdgcn/bitcode:lib/amdgcn/bitcode:g" \
-		-i src/hipBin_amd.h || die
-}
-
-src_install() {
-	cmake_src_install
-	# remove bat files...
-	rm -rf "${ED}/usr/hip" || die
-}
diff --git a/dev-util/hipcc/metadata.xml b/dev-util/hipcc/metadata.xml
deleted file mode 100644
index 2f61f8d..0000000
--- a/dev-util/hipcc/metadata.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<maintainer type="person" proxied="yes">
-		<email>lockalsash@gmail.com</email>
-		<name>Sv. Lockal</name>
-		<description>Primary maintainer</description>
-	</maintainer>
-	<maintainer type="person" proxied="yes">
-		<email>xgreenlandforwyy@gmail.com</email>
-		<name>Yiyang Wu</name>
-	</maintainer>
-	<maintainer type="person">
-		<email>patrick@gentoo.org</email>
-		<name>Patrick Lauer</name>
-	</maintainer>
-	<maintainer type="person" proxied="yes">
-		<email>negril.nx+gentoo@gmail.com</email>
-		<name>Paul Zander</name>
-		<description>General GPGPU stuff</description>
-	</maintainer>
-	<maintainer type="project" proxied="proxy">
-		<email>sci@gentoo.org</email>
-		<name>Gentoo Science Project</name>
-	</maintainer>
-	<upstream>
-		<remote-id type="github">ROCm/hipcc</remote-id>
-	</upstream>
-</pkgmetadata>
diff --git a/dev-util/radiance/Manifest b/dev-util/radiance/Manifest
deleted file mode 100644
index 68f1274..0000000
--- a/dev-util/radiance/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST radiance-2.1.0.tar.gz 26926650 BLAKE2B c244cf24059a2a4ff8e239f5d8e12587f26f0fcfbf455f4b223a71b2b615189fb902bed64e56f1d4aaad102135b2792ce10d4bbb8eb3e3f047f5eca80987d46b SHA512 bb9ca5cad616e91591093e950e877be068658cc8455ecd11a5c91bae8d56d596e09995e09a019be970913915c6f70c2a9071494c828046a487b9e7d5148e2560
diff --git a/dev-util/radiance/files/radiance-2.1.0-clang-24-host-device-constexpr.patch b/dev-util/radiance/files/radiance-2.1.0-clang-24-host-device-constexpr.patch
deleted file mode 100644
index a6e6834..0000000
--- a/dev-util/radiance/files/radiance-2.1.0-clang-24-host-device-constexpr.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-diff -ruN a/libr4d/r4d_fp8_wmma.h b/libr4d/r4d_fp8_wmma.h
---- a/libr4d/r4d_fp8_wmma.h
-+++ b/libr4d/r4d_fp8_wmma.h
-@@ -163,7 +163,9 @@
- // block instead of 32, allowing 3 resident blocks per WGP instead of 4, which the saved bank
- // cycle outweighs.
- template <uint32_t FK>
--__device__ __forceinline__ constexpr uint32_t lds_pitch() { return FK + 8u; }
-+// clang 24 evaluates Lds<NT>::kB (r4d_logits_vocab.hip) in the host pass, where a
-+// __device__-only constexpr is not callable; the pure pitch helper is host-visible too.
-+__host__ __device__ __forceinline__ constexpr uint32_t lds_pitch() { return FK + 8u; }
- 
- template <uint32_t FK>
- __device__ __forceinline__ i2v frag(const uint8_t* __restrict__ lds, uint32_t row0, uint32_t k0,
diff --git a/dev-util/radiance/files/radiance-2.1.0-clang-24-vector-types.patch b/dev-util/radiance/files/radiance-2.1.0-clang-24-vector-types.patch
deleted file mode 100644
index 531a122..0000000
--- a/dev-util/radiance/files/radiance-2.1.0-clang-24-vector-types.patch
+++ /dev/null
@@ -1,71 +0,0 @@
-diff -ruN a/libr4d/r4d_dt16.h b/libr4d/r4d_dt16.h
---- a/libr4d/r4d_dt16.h
-+++ b/libr4d/r4d_dt16.h
-@@ -8,9 +8,12 @@
- #pragma once
- #include "r4d_common.h"
- 
--typedef __bf16   v8bf __attribute__((ext_vector_type(8)));
--typedef __fp16   v8hf __attribute__((ext_vector_type(8)));  // what the f16 WMMA builtin takes
--typedef __fp16   v2hf __attribute__((ext_vector_type(2)));  // what cvt_pkrtz returns
-+// clang 24 treats __bf16/__fp16 as distinct storage-only types, so the vector operands
-+// the WMMA/fdot2 builtins take must be spelled short/_Float16 exactly as declared.
-+typedef short    v8bf __attribute__((ext_vector_type(8)));  // 8 bf16, as the bf16 WMMA builtin takes them
-+typedef _Float16 v8hf __attribute__((ext_vector_type(8)));  // what the f16 WMMA builtin takes
-+typedef _Float16 v2hf __attribute__((ext_vector_type(2)));  // what fdot2 takes
-+typedef __fp16   cvt2hf __attribute__((ext_vector_type(2))); // what cvt_pkrtz returns
- 
- // GROW = how many octaves the running row max may exceed the reference max before the accumulator
- // must be rescaled. p = 2^(s - m_ref) must stay inside the format, so GROW is log2(format max) with
-@@ -51,15 +54,15 @@
-         return __builtin_amdgcn_wmma_f32_16x16x16_f16_w32_gfx12(a, b, c);
-     }
-     __device__ __forceinline__ static uint32_t pk(float x, float y) {
--        union { v2hf h; uint32_t u; } q; q.h = __builtin_amdgcn_cvt_pkrtz(x, y); return q.u;
-+        union { cvt2hf h; uint32_t u; } q; q.h = __builtin_amdgcn_cvt_pkrtz(x, y); return q.u;
-     }
-     __device__ __forceinline__ static uint32_t pkv(v2f x) {
-         union { v2f f; float e[2]; } s; s.f = x;
--        union { v2hf h; uint32_t u; } q; q.h = __builtin_amdgcn_cvt_pkrtz(s.e[0], s.e[1]); return q.u;
-+        union { cvt2hf h; uint32_t u; } q; q.h = __builtin_amdgcn_cvt_pkrtz(s.e[0], s.e[1]); return q.u;
-     }
-     // two bf16 in a dword -> two f16 in a dword. bf16->f32 is a shift, so this is 3 VALU.
-     __device__ __forceinline__ static uint32_t from_bf16w(uint32_t w) {
--        union { v2hf h; uint32_t u; } q;
-+        union { cvt2hf h; uint32_t u; } q;
-         q.h = __builtin_amdgcn_cvt_pkrtz(__builtin_bit_cast(float, w << 16),
-                                          __builtin_bit_cast(float, w & 0xffff0000u));
-         return q.u;
-diff -ruN a/libr4d/r4d_gdn_wmma.h b/libr4d/r4d_gdn_wmma.h
---- a/libr4d/r4d_gdn_wmma.h
-+++ b/libr4d/r4d_gdn_wmma.h
-@@ -7,7 +7,7 @@
- #pragma once
- #include <hip/hip_runtime.h>
- 
--typedef __bf16 v8bf __attribute__((ext_vector_type(8)));
-+typedef short  v8bf __attribute__((ext_vector_type(8)));  /* 8 bf16, as the builtin takes them (clang 24) */
- typedef float  v8f  __attribute__((ext_vector_type(8)));
- 
- // Software f32 -> bf16 (gfx1201 has no convert). Round-half-away (u + 0x8000) is one add where
-diff -ruN a/libr4d/r4d_moe.hip b/libr4d/r4d_moe.hip
---- a/libr4d/r4d_moe.hip
-+++ b/libr4d/r4d_moe.hip
-@@ -1892,7 +1892,7 @@
- constexpr uint32_t kBK16 = 64;            // bf16 K elements staged per pass
- constexpr uint32_t kP16  = kBK16 + 8;     // the LDS row pitch, in elements
- 
--typedef __bf16 mb_v8bf __attribute__((ext_vector_type(8)));
-+typedef short  mb_v8bf __attribute__((ext_vector_type(8)));
- typedef float  mb_v8f  __attribute__((ext_vector_type(8)));
- 
- __device__ __forceinline__ mb_v8f mb_mma(mb_v8bf a, mb_v8bf b, mb_v8f c) {
-@@ -3397,7 +3397,7 @@
- 
- constexpr int kRgKU = 8;                  /* r4d_gemm_bf16_nt_m64's KU: the unroll, not the order */
- 
--typedef __bf16 rg_v8bf __attribute__((ext_vector_type(8)));
-+typedef short  rg_v8bf __attribute__((ext_vector_type(8)));
- typedef float  rg_v8f  __attribute__((ext_vector_type(8)));
- /* Global-address-space pointer for the fragment loads, as r4d_gemm_bf16_nt_m64.hip holds it. */
- typedef __attribute__((address_space(1))) const unsigned long long* rg_gu2;
diff --git a/dev-util/radiance/metadata.xml b/dev-util/radiance/metadata.xml
deleted file mode 100644
index 77c22dd..0000000
--- a/dev-util/radiance/metadata.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<maintainer type="person">
-		<email>administrator@josie-c.com</email>
-		<name>cjosie</name>
-	</maintainer>
-	<upstream>
-		<remote-id type="codeberg">StillDeadcode/radiance</remote-id>
-	</upstream>
-</pkgmetadata>
diff --git a/dev-util/radiance/radiance-2.1.0.ebuild b/dev-util/radiance/radiance-2.1.0.ebuild
deleted file mode 100644
index 9cb38cf..0000000
--- a/dev-util/radiance/radiance-2.1.0.ebuild
+++ /dev/null
@@ -1,61 +0,0 @@
-# Copyright 2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-ROCM_VERSION=10.2
-
-inherit cmake rocm
-
-DESCRIPTION="LLM inference server for AMD GPUs"
-HOMEPAGE="https://codeberg.org/StillDeadcode/radiance"
-SRC_URI="https://codeberg.org/StillDeadcode/radiance/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-S="${WORKDIR}/radiance"
-
-LICENSE="Apache-2.0 MIT LFM-1.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-IUSE="ffmpeg test"
-REQUIRED_USE="${ROCM_REQUIRED_USE}"
-RESTRICT="!test? ( test )"
-
-DEPEND="
-	dev-util/hip:0/${ROCM_VERSION}
-	ffmpeg? ( media-video/ffmpeg:= )
-"
-BDEPEND="dev-util/hipcc:0/${ROCM_VERSION}"
-RDEPEND="
-	${DEPEND}
-	net-misc/curl
-	app-misc/jq
-"
-
-DOCS=( README.md )
-
-PATCHES=(
-	# clang 24 makes __bf16/__fp16 distinct storage-only types; the WMMA/fdot2
-	# builtins now demand short/_Float16 vector operands.
-	"${FILESDIR}/${PN}-2.1.0-clang-24-vector-types.patch"
-	# clang 24 errors on a __device__-only constexpr evaluated in a host constant
-	# expression (Lds<NT>::kB calls lds_pitch()).
-	"${FILESDIR}/${PN}-2.1.0-clang-24-host-device-constexpr.patch"
-)
-
-src_configure() {
-	# radiance's CMake locates hipcc itself and drives it as the device compiler.
-	# Do not call rocm_use_hipcc: forcing CC/CXX=hipcc compiles host code for amdgcn.
-	local mycmakeargs=(
-		-DRAD_WITH_HIP=ON
-		-DRAD_GPU_TARGETS="$(get_amdgpu_flags)"
-		-DRAD_WITH_FFMPEG=$(usex ffmpeg ON OFF)
-		-DRAD_BUILD_TESTS=$(usex test ON OFF)
-	)
-	cmake_src_configure
-}
-
-src_test() {
-	# host-only suite: gpu tests need a card, oot rebuilds every plugin
-	local myctestargs=( -LE 'gpu|oot' )
-	cmake_src_test
-}
diff --git a/dev-util/ramsleuth-bin/Manifest b/dev-util/ramsleuth-bin/Manifest
deleted file mode 100644
index deb493b..0000000
--- a/dev-util/ramsleuth-bin/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST ramsleuth-bin-2.4.18.tar.zst 7360101 BLAKE2B 744ed9807448a58884a23cd76ee2bc72589bd47690d6a94454b097a15d3443c46e5ce550368c7b38f01ae1e71c95a257dd7e4e4b8a89871a9bbcd68fdf2b8ab1 SHA512 088728b75ae7dbc8f60b76fb6f7db43376bde18194cd018499445b9c5ed85325a41425fe2286c6ad39c5ee9cab18a174b1c644dfe2fe0af5b0ef62e78945ec76
diff --git a/dev-util/ramsleuth-bin/files/GPL-2 b/dev-util/ramsleuth-bin/files/GPL-2
deleted file mode 100644
index e5afae9..0000000
--- a/dev-util/ramsleuth-bin/files/GPL-2
+++ /dev/null
@@ -1,338 +0,0 @@
-                    GNU GENERAL PUBLIC LICENSE
-                       Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
- <https://fsf.org/>
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-                            Preamble
-
-  The licenses for most software are designed to take away your
-freedom to share and change it.  By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users.  This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it.  (Some other Free Software Foundation software is covered by
-the GNU Lesser General Public License instead.)  You can apply it to
-your programs, too.
-
-  When we speak of free software, we are referring to freedom, not
-price.  Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
-  To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
-  For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have.  You must make sure that they, too, receive or can get the
-source code.  And you must show them these terms so they know their
-rights.
-
-  We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
-  Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software.  If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
-  Finally, any free program is threatened constantly by software
-patents.  We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary.  To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
-  The precise terms and conditions for copying, distribution and
-modification follow.
-
-                    GNU GENERAL PUBLIC LICENSE
-   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
-  0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License.  The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language.  (Hereinafter, translation is included without limitation in
-the term "modification".)  Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope.  The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
-  1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
-  2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
-    a) You must cause the modified files to carry prominent notices
-    stating that you changed the files and the date of any change.
-
-    b) You must cause any work that you distribute or publish, that in
-    whole or in part contains or is derived from the Program or any
-    part thereof, to be licensed as a whole at no charge to all third
-    parties under the terms of this License.
-
-    c) If the modified program normally reads commands interactively
-    when run, you must cause it, when started running for such
-    interactive use in the most ordinary way, to print or display an
-    announcement including an appropriate copyright notice and a
-    notice that there is no warranty (or else, saying that you provide
-    a warranty) and that users may redistribute the program under
-    these conditions, and telling the user how to view a copy of this
-    License.  (Exception: if the Program itself is interactive but
-    does not normally print such an announcement, your work based on
-    the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole.  If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works.  But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
-  3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
-    a) Accompany it with the complete corresponding machine-readable
-    source code, which must be distributed under the terms of Sections
-    1 and 2 above on a medium customarily used for software interchange; or,
-
-    b) Accompany it with a written offer, valid for at least three
-    years, to give any third party, for a charge no more than your
-    cost of physically performing source distribution, a complete
-    machine-readable copy of the corresponding source code, to be
-    distributed under the terms of Sections 1 and 2 above on a medium
-    customarily used for software interchange; or,
-
-    c) Accompany it with the information you received as to the offer
-    to distribute corresponding source code.  (This alternative is
-    allowed only for noncommercial distribution and only if you
-    received the program in object code or executable form with such
-    an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it.  For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable.  However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
-  4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License.  Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
-  5. You are not required to accept this License, since you have not
-signed it.  However, nothing else grants you permission to modify or
-distribute the Program or its derivative works.  These actions are
-prohibited by law if you do not accept this License.  Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
-  6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions.  You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
-  7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License.  If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all.  For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices.  Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
-  8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded.  In such case, this License incorporates
-the limitation as if written in the body of this License.
-
-  9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time.  Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number.  If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation.  If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
-  10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission.  For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this.  Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
-                            NO WARRANTY
-
-  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
-  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
-                     END OF TERMS AND CONDITIONS
-
-            How to Apply These Terms to Your New Programs
-
-  If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
-  To do so, attach the following notices to the program.  It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
-    <one line to give the program's name and a brief idea of what it does.>
-    Copyright (C) <year>  <name of author>
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License along
-    with this program; if not, see <https://www.gnu.org/licenses/>.
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
-    Gnomovision version 69, Copyright (C) year name of author
-    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
-    This is free software, and you are welcome to redistribute it
-    under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License.  Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary.  Here is a sample; alter the names:
-
-  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
-  `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
-  <signature of Moe Ghoul>, 1 April 1989
-  Moe Ghoul, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs.  If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library.  If this is what you want to do, use the GNU Lesser General
-Public License instead of this License.
diff --git a/dev-util/ramsleuth-bin/files/ramsleuth.confd b/dev-util/ramsleuth-bin/files/ramsleuth.confd
deleted file mode 100644
index cbc9d31..0000000
--- a/dev-util/ramsleuth-bin/files/ramsleuth.confd
+++ /dev/null
@@ -1,6 +0,0 @@
-# /etc/conf.d/ramsleuth — knobs for the RamSleuth OpenRC service.
-# Extra daemon flags (the socket path is the frozen default; see
-# ramsleuth-daemon --help for --max-age).
-RAMSLEUTH_DAEMON_ARGS="--socket /run/ramsleuth/ramsleuth.sock"
-# Socket's owning group (the daemon's best-effort chown target).
-RAMSLEUTH_GROUP="ramsleuth"
diff --git a/dev-util/ramsleuth-bin/files/ramsleuth.initd b/dev-util/ramsleuth-bin/files/ramsleuth.initd
deleted file mode 100644
index b99920d..0000000
--- a/dev-util/ramsleuth-bin/files/ramsleuth.initd
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-#
-# RamSleuth daemon — OpenRC port of upstream's systemd/ramsleuth.service.
-#
-# Privilege model: the daemon runs as root (group ramsleuth) and only needs
-# CAP_SYS_RAWIO (/dev/ryzen_smu + /dev/mem MCHBAR); OpenRC has no capability
-# clamp, so root simply holds it. Missing privileges are a SOFT degrade
-# (fields report N/A), never a crash. Live AMD subtimings additionally want
-# the ryzen_smu module loaded (`modprobe ryzen_smu`) before the daemon.
-
-description="RamSleuth privileged memory telemetry and benchmark daemon"
-description_doc="https://github.com/MadGoatHaz/RamSleuth"
-
-: ${RAMSLEUTH_DAEMON_ARGS:="--socket /run/ramsleuth/ramsleuth.sock"}
-: ${RAMSLEUTH_GROUP:=ramsleuth}
-
-command="/usr/bin/ramsleuth-daemon"
-command_args="${RAMSLEUTH_DAEMON_ARGS}"
-# root:ramsleuth mirrors the upstream unit's User=root / Group=ramsleuth.
-command_user="root:${RAMSLEUTH_GROUP}"
-command_background="yes"
-pidfile="/run/${RC_SVCNAME}.pid"
-# The unit's journal output, landed on files instead.
-redir_stdout="/var/log/ramsleuth.out"
-redir_stderr="/var/log/ramsleuth.err"
-
-depend() {
-	need localmount
-	after bootmisc
-	use logger
-}
-
-start_pre() {
-	# The unit's RuntimeDirectory=ramsleuth (root:Group 0755) — created before
-	# the daemon starts so it never has to touch /run itself.
-	checkpath --directory --owner root:"${RAMSLEUTH_GROUP}" --mode 0755 /run/ramsleuth || return 1
-	checkpath --directory --owner root:root --mode 0755 /var/log || return 1
-}
diff --git a/dev-util/ramsleuth-bin/metadata.xml b/dev-util/ramsleuth-bin/metadata.xml
deleted file mode 100644
index 1c72b94..0000000
--- a/dev-util/ramsleuth-bin/metadata.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<maintainer type="person">
-		<email>administrator@josie-c.com</email>
-		<name>cjosie</name>
-	</maintainer>
-	<upstream>
-		<remote-id type="github">MadGoatHaz/RamSleuth</remote-id>
-	</upstream>
-	<use>
-		<flag name="openrc">Install an OpenRC init script and conf.d file for the privileged daemon.</flag>
-		<flag name="systemd">Install the upstream systemd unit, preset, one-click setup helper, and polkit policy.</flag>
-		<flag name="amd-dkms">Install the optional GPL-2 ryzen_smu AMD DKMS module source and helper script.</flag>
-		<flag name="intel-dkms">Install the optional GPL-2 ramsleuth_intel Intel DKMS module source and helper script.</flag>
-	</use>
-</pkgmetadata>
diff --git a/dev-util/ramsleuth-bin/ramsleuth-bin-2.4.18.ebuild b/dev-util/ramsleuth-bin/ramsleuth-bin-2.4.18.ebuild
deleted file mode 100644
index 972175b..0000000
--- a/dev-util/ramsleuth-bin/ramsleuth-bin-2.4.18.ebuild
+++ /dev/null
@@ -1,157 +0,0 @@
-# Copyright 2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit desktop systemd
-
-DESCRIPTION="Memory-controller telemetry and benchmark for AMD and Intel (precompiled)"
-HOMEPAGE="https://github.com/MadGoatHaz/RamSleuth"
-SRC_URI="https://github.com/MadGoatHaz/RamSleuth/releases/download/v${PV}/ramsleuth-${PV}-x86_64.tar.zst -> ${P}.tar.zst"
-S="${WORKDIR}/ramsleuth-${PV}"
-
-LICENSE="MIT amd-dkms? ( GPL-2 ) intel-dkms? ( GPL-2 )"
-SLOT="0"
-KEYWORDS="~amd64"
-
-IUSE="+openrc systemd amd-dkms intel-dkms"
-REQUIRED_USE="|| ( openrc systemd )"
-
-COMMON_DEPEND="
-	dev-libs/wayland
-	media-libs/mesa
-	x11-libs/libX11
-	x11-libs/libXcursor
-	x11-libs/libXi
-	x11-libs/libXinerama
-	x11-libs/libXrandr
-	x11-libs/libxkbcommon
-"
-RDEPEND="${COMMON_DEPEND}
-	acct-group/ramsleuth
-	systemd? ( sys-apps/systemd sys-auth/polkit )
-	!dev-util/ramsleuth
-"
-BDEPEND="app-arch/zstd"
-
-RESTRICT="mirror strip"
-QA_PREBUILT="
-	usr/bin/ramsleuth
-	usr/bin/ramsleuth-bench
-	usr/bin/ramsleuth-client
-	usr/bin/ramsleuth-daemon
-	usr/bin/ramsleuth-telemetry
-	usr/bin/ramsleuth-tui
-"
-
-src_unpack() {
-	tar --zstd -xf "${DISTDIR}/${A}" -C "${WORKDIR}" || die
-}
-
-src_install() {
-	local size src
-
-	dobin bin/ramsleuth bin/ramsleuth-bench bin/ramsleuth-client \
-		bin/ramsleuth-daemon bin/ramsleuth-telemetry bin/ramsleuth-tui
-
-	domenu RamSleuth.desktop
-
-	for size in 16 24 32 48 64 128 256 512; do
-		src="icons/hicolor/${size}/apps/ramsleuth.png"
-		insinto "/usr/share/icons/hicolor/${size}/apps"
-		newins "${src}" ramsleuth.png
-		newins "${src}" RamSleuth.png
-		insinto "/usr/share/icons/hicolor/${size}x${size}/apps"
-		newins "${src}" ramsleuth.png
-		newins "${src}" RamSleuth.png
-	done
-
-	insinto /usr/share/pixmaps
-	newins icons/hicolor/48/apps/ramsleuth.png ramsleuth.png
-	newins icons/hicolor/48/apps/ramsleuth.png RamSleuth.png
-
-	insinto "/usr/share/licenses/${PN}"
-	doins LICENSE
-
-	if use openrc; then
-		newinitd "${FILESDIR}/ramsleuth.initd" ramsleuth
-		newconfd "${FILESDIR}/ramsleuth.confd" ramsleuth
-	fi
-
-	if use systemd; then
-		systemd_dounit systemd/ramsleuth.service
-		insinto /usr/lib/systemd/system-preset
-		doins systemd/ramsleuth.preset
-
-		exeinto /usr/bin
-		newexe ramsleuth-setup.sh ramsleuth-setup
-
-		insinto /usr/share/polkit-1/actions
-		doins 90-ramsleuth-setup.policy
-	fi
-
-	if use amd-dkms; then
-		exeinto /usr/bin
-		newexe scripts/install-ryzen-smu-dkms.sh ramsleuth-install-ryzen-smu-dkms
-
-		insinto /usr/share/ryzen-smu-dkms
-		doins packaging/ryzen-smu-dkms/dkms.conf
-
-		insinto /usr/share/ryzen-smu-dkms/vendor
-		doins packaging/ryzen-smu-dkms/vendor/SUMS.sha256 \
-			packaging/ryzen-smu-dkms/vendor/NOTICE.md
-
-		insinto /usr/share/ryzen-smu-dkms/vendor/ryzen-smu
-		doins packaging/ryzen-smu-dkms/vendor/ryzen-smu/*
-	fi
-
-	if use intel-dkms; then
-		exeinto /usr/bin
-		newexe scripts/install-intel-dkms.sh ramsleuth-install-intel-dkms
-
-		insinto /usr/share/ramsleuth-intel-dkms/src
-		doins kernel/ramsleuth-intel/*
-	fi
-
-	if use amd-dkms || use intel-dkms; then
-		insinto "/usr/share/licenses/${PN}"
-		doins "${FILESDIR}/GPL-2"
-	fi
-}
-
-pkg_postinst() {
-	if use openrc; then
-		elog "RamSleuth's OpenRC service is installed but not enabled."
-		elog "Start it and enable it at boot with:"
-		elog "  rc-service ramsleuth start"
-		elog "  rc-update add ramsleuth default"
-		elog "Add your user to the ramsleuth group (then log out and back in):"
-		elog "  usermod -aG ramsleuth <user>"
-	fi
-
-	if use systemd; then
-		elog "RamSleuth's systemd unit and preset are installed."
-		elog "Enable and start it with:"
-		elog "  systemctl enable --now ramsleuth"
-		elog "The GUI one-click setup helper is installed as ramsleuth-setup."
-	fi
-
-	if use amd-dkms; then
-		elog "Optional AMD ryzen_smu DKMS module (GPL-2) installed."
-		elog "Build and load it with:"
-		elog "  ramsleuth-install-ryzen-smu-dkms"
-		elog "It needs matching kernel headers and DKMS; without it AMD"
-		elog "subtimings report N/A (DriverMissing) but the app still runs."
-	fi
-
-	if use intel-dkms; then
-		elog "Optional Intel ramsleuth_intel DKMS module (GPL-2) installed."
-		elog "Build and load it with:"
-		elog "  ramsleuth-install-intel-dkms"
-		elog "It needs matching kernel headers and DKMS; on Alder Lake and"
-		elog "newer it exposes less than the built-in /dev/mem path."
-	fi
-
-	elog "The daemon socket is /run/ramsleuth/ramsleuth.sock."
-	elog "Try: ramsleuth-client dump, ramsleuth-tui, or ramsleuth"
-}
diff --git a/dev-util/ramsleuth/Manifest b/dev-util/ramsleuth/Manifest
deleted file mode 100644
index 9a47e22..0000000
--- a/dev-util/ramsleuth/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST ramsleuth-2.4.18.tar.gz 1597909 BLAKE2B 823c636ae6632c599c4f2715d65c6b0b7fb767dbbfe9ef89d8019d4e5b5252314c9c414da40bbb1c5820ead8b11b604ecd77d873ce73f9aaec159251e688dc0f SHA512 80fed9f3e8bd3ecebc2640d42b8014de061d8a3b0cd7be2cb0b678e15553c549ab6f244f713e8e947df73f4e1b7b5fcb8e7494089f6b66de51e070ec6f4f4748
diff --git a/dev-util/ramsleuth/files/GPL-2 b/dev-util/ramsleuth/files/GPL-2
deleted file mode 100644
index e5afae9..0000000
--- a/dev-util/ramsleuth/files/GPL-2
+++ /dev/null
@@ -1,338 +0,0 @@
-                    GNU GENERAL PUBLIC LICENSE
-                       Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
- <https://fsf.org/>
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-                            Preamble
-
-  The licenses for most software are designed to take away your
-freedom to share and change it.  By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users.  This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it.  (Some other Free Software Foundation software is covered by
-the GNU Lesser General Public License instead.)  You can apply it to
-your programs, too.
-
-  When we speak of free software, we are referring to freedom, not
-price.  Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
-  To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
-  For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have.  You must make sure that they, too, receive or can get the
-source code.  And you must show them these terms so they know their
-rights.
-
-  We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
-  Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software.  If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
-  Finally, any free program is threatened constantly by software
-patents.  We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary.  To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
-  The precise terms and conditions for copying, distribution and
-modification follow.
-
-                    GNU GENERAL PUBLIC LICENSE
-   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
-  0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License.  The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language.  (Hereinafter, translation is included without limitation in
-the term "modification".)  Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope.  The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
-  1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
-  2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
-    a) You must cause the modified files to carry prominent notices
-    stating that you changed the files and the date of any change.
-
-    b) You must cause any work that you distribute or publish, that in
-    whole or in part contains or is derived from the Program or any
-    part thereof, to be licensed as a whole at no charge to all third
-    parties under the terms of this License.
-
-    c) If the modified program normally reads commands interactively
-    when run, you must cause it, when started running for such
-    interactive use in the most ordinary way, to print or display an
-    announcement including an appropriate copyright notice and a
-    notice that there is no warranty (or else, saying that you provide
-    a warranty) and that users may redistribute the program under
-    these conditions, and telling the user how to view a copy of this
-    License.  (Exception: if the Program itself is interactive but
-    does not normally print such an announcement, your work based on
-    the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole.  If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works.  But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
-  3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
-    a) Accompany it with the complete corresponding machine-readable
-    source code, which must be distributed under the terms of Sections
-    1 and 2 above on a medium customarily used for software interchange; or,
-
-    b) Accompany it with a written offer, valid for at least three
-    years, to give any third party, for a charge no more than your
-    cost of physically performing source distribution, a complete
-    machine-readable copy of the corresponding source code, to be
-    distributed under the terms of Sections 1 and 2 above on a medium
-    customarily used for software interchange; or,
-
-    c) Accompany it with the information you received as to the offer
-    to distribute corresponding source code.  (This alternative is
-    allowed only for noncommercial distribution and only if you
-    received the program in object code or executable form with such
-    an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it.  For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable.  However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
-  4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License.  Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
-  5. You are not required to accept this License, since you have not
-signed it.  However, nothing else grants you permission to modify or
-distribute the Program or its derivative works.  These actions are
-prohibited by law if you do not accept this License.  Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
-  6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions.  You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
-  7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License.  If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all.  For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices.  Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
-  8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded.  In such case, this License incorporates
-the limitation as if written in the body of this License.
-
-  9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time.  Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number.  If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation.  If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
-  10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission.  For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this.  Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
-                            NO WARRANTY
-
-  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
-  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
-                     END OF TERMS AND CONDITIONS
-
-            How to Apply These Terms to Your New Programs
-
-  If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
-  To do so, attach the following notices to the program.  It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
-    <one line to give the program's name and a brief idea of what it does.>
-    Copyright (C) <year>  <name of author>
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License along
-    with this program; if not, see <https://www.gnu.org/licenses/>.
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
-    Gnomovision version 69, Copyright (C) year name of author
-    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
-    This is free software, and you are welcome to redistribute it
-    under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License.  Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary.  Here is a sample; alter the names:
-
-  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
-  `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
-  <signature of Moe Ghoul>, 1 April 1989
-  Moe Ghoul, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs.  If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library.  If this is what you want to do, use the GNU Lesser General
-Public License instead of this License.
diff --git a/dev-util/ramsleuth/files/ramsleuth.confd b/dev-util/ramsleuth/files/ramsleuth.confd
deleted file mode 100644
index cbc9d31..0000000
--- a/dev-util/ramsleuth/files/ramsleuth.confd
+++ /dev/null
@@ -1,6 +0,0 @@
-# /etc/conf.d/ramsleuth — knobs for the RamSleuth OpenRC service.
-# Extra daemon flags (the socket path is the frozen default; see
-# ramsleuth-daemon --help for --max-age).
-RAMSLEUTH_DAEMON_ARGS="--socket /run/ramsleuth/ramsleuth.sock"
-# Socket's owning group (the daemon's best-effort chown target).
-RAMSLEUTH_GROUP="ramsleuth"
diff --git a/dev-util/ramsleuth/files/ramsleuth.initd b/dev-util/ramsleuth/files/ramsleuth.initd
deleted file mode 100644
index b99920d..0000000
--- a/dev-util/ramsleuth/files/ramsleuth.initd
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-#
-# RamSleuth daemon — OpenRC port of upstream's systemd/ramsleuth.service.
-#
-# Privilege model: the daemon runs as root (group ramsleuth) and only needs
-# CAP_SYS_RAWIO (/dev/ryzen_smu + /dev/mem MCHBAR); OpenRC has no capability
-# clamp, so root simply holds it. Missing privileges are a SOFT degrade
-# (fields report N/A), never a crash. Live AMD subtimings additionally want
-# the ryzen_smu module loaded (`modprobe ryzen_smu`) before the daemon.
-
-description="RamSleuth privileged memory telemetry and benchmark daemon"
-description_doc="https://github.com/MadGoatHaz/RamSleuth"
-
-: ${RAMSLEUTH_DAEMON_ARGS:="--socket /run/ramsleuth/ramsleuth.sock"}
-: ${RAMSLEUTH_GROUP:=ramsleuth}
-
-command="/usr/bin/ramsleuth-daemon"
-command_args="${RAMSLEUTH_DAEMON_ARGS}"
-# root:ramsleuth mirrors the upstream unit's User=root / Group=ramsleuth.
-command_user="root:${RAMSLEUTH_GROUP}"
-command_background="yes"
-pidfile="/run/${RC_SVCNAME}.pid"
-# The unit's journal output, landed on files instead.
-redir_stdout="/var/log/ramsleuth.out"
-redir_stderr="/var/log/ramsleuth.err"
-
-depend() {
-	need localmount
-	after bootmisc
-	use logger
-}
-
-start_pre() {
-	# The unit's RuntimeDirectory=ramsleuth (root:Group 0755) — created before
-	# the daemon starts so it never has to touch /run itself.
-	checkpath --directory --owner root:"${RAMSLEUTH_GROUP}" --mode 0755 /run/ramsleuth || return 1
-	checkpath --directory --owner root:root --mode 0755 /var/log || return 1
-}
diff --git a/dev-util/ramsleuth/metadata.xml b/dev-util/ramsleuth/metadata.xml
deleted file mode 100644
index 1c72b94..0000000
--- a/dev-util/ramsleuth/metadata.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<maintainer type="person">
-		<email>administrator@josie-c.com</email>
-		<name>cjosie</name>
-	</maintainer>
-	<upstream>
-		<remote-id type="github">MadGoatHaz/RamSleuth</remote-id>
-	</upstream>
-	<use>
-		<flag name="openrc">Install an OpenRC init script and conf.d file for the privileged daemon.</flag>
-		<flag name="systemd">Install the upstream systemd unit, preset, one-click setup helper, and polkit policy.</flag>
-		<flag name="amd-dkms">Install the optional GPL-2 ryzen_smu AMD DKMS module source and helper script.</flag>
-		<flag name="intel-dkms">Install the optional GPL-2 ramsleuth_intel Intel DKMS module source and helper script.</flag>
-	</use>
-</pkgmetadata>
diff --git a/dev-util/ramsleuth/ramsleuth-2.4.18.ebuild b/dev-util/ramsleuth/ramsleuth-2.4.18.ebuild
deleted file mode 100644
index d7a33c1..0000000
--- a/dev-util/ramsleuth/ramsleuth-2.4.18.ebuild
+++ /dev/null
@@ -1,177 +0,0 @@
-# Copyright 2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit desktop systemd toolchain-funcs
-
-DESCRIPTION="Live memory-controller telemetry and memory benchmark for AMD and Intel"
-HOMEPAGE="https://github.com/MadGoatHaz/RamSleuth"
-SRC_URI="https://github.com/MadGoatHaz/RamSleuth/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
-S="${WORKDIR}/RamSleuth-${PV}"
-
-LICENSE="MIT amd-dkms? ( GPL-2 ) intel-dkms? ( GPL-2 )"
-SLOT="0"
-KEYWORDS="~amd64"
-
-IUSE="+openrc systemd amd-dkms intel-dkms"
-REQUIRED_USE="|| ( openrc systemd )"
-
-COMMON_DEPEND="
-	dev-libs/wayland
-	media-libs/mesa
-	x11-libs/libX11
-	x11-libs/libXcursor
-	x11-libs/libXi
-	x11-libs/libXinerama
-	x11-libs/libXrandr
-	x11-libs/libxkbcommon
-"
-DEPEND="${COMMON_DEPEND}
-	dev-libs/wayland-protocols
-"
-RDEPEND="${COMMON_DEPEND}
-	acct-group/ramsleuth
-	systemd? ( sys-apps/systemd sys-auth/polkit )
-	!dev-util/ramsleuth-bin
-"
-BDEPEND="
-	dev-lang/rust
-	virtual/pkgconfig
-"
-
-# RamSleuth's Rust workspace has 400+ crates. There is no vendored crate
-# tarball in the release source, so cargo must fetch the registry during the
-# build. This is intentional for this personal overlay; the bin package is the
-# offline/reproducible alternative.
-RESTRICT="network-sandbox"
-
-# Rust binaries do not consume CFLAGS/LDFLAGS in the usual way.
-QA_FLAGS_IGNORED="
-	usr/bin/ramsleuth
-	usr/bin/ramsleuth-bench
-	usr/bin/ramsleuth-client
-	usr/bin/ramsleuth-daemon
-	usr/bin/ramsleuth-telemetry
-	usr/bin/ramsleuth-tui
-"
-
-src_compile() {
-	export CARGO_HOME="${T}/cargo-home"
-	mkdir -p "${CARGO_HOME}" || die
-	tc-export AR CC CXX PKG_CONFIG
-
-	cargo build --release --locked --workspace || die "cargo build failed"
-}
-
-src_install() {
-	local bin size src
-
-	for bin in ramsleuth-daemon ramsleuth-client ramsleuth-tui \
-		ramsleuth ramsleuth-bench ramsleuth-telemetry; do
-		dobin "target/release/${bin}"
-	done
-
-	domenu packaging/shared/RamSleuth.desktop
-
-	for size in 16 24 32 48 64 128 256 512; do
-		src="assets/icons/hicolor/${size}/apps/ramsleuth.png"
-		insinto "/usr/share/icons/hicolor/${size}/apps"
-		newins "${src}" ramsleuth.png
-		newins "${src}" RamSleuth.png
-		insinto "/usr/share/icons/hicolor/${size}x${size}/apps"
-		newins "${src}" ramsleuth.png
-		newins "${src}" RamSleuth.png
-	done
-
-	insinto /usr/share/pixmaps
-	newins assets/icons/hicolor/48/apps/ramsleuth.png ramsleuth.png
-	newins assets/icons/hicolor/48/apps/ramsleuth.png RamSleuth.png
-
-	insinto "/usr/share/licenses/${PN}"
-	doins LICENSE
-
-	if use openrc; then
-		newinitd "${FILESDIR}/ramsleuth.initd" ramsleuth
-		newconfd "${FILESDIR}/ramsleuth.confd" ramsleuth
-	fi
-
-	if use systemd; then
-		systemd_dounit systemd/ramsleuth.service
-		insinto /usr/lib/systemd/system-preset
-		doins packaging/shared/ramsleuth.preset
-
-		exeinto /usr/bin
-		newexe scripts/ramsleuth-setup.sh ramsleuth-setup
-
-		insinto /usr/share/polkit-1/actions
-		doins packaging/polkit/90-ramsleuth-setup.policy
-	fi
-
-	if use amd-dkms; then
-		exeinto /usr/bin
-		newexe scripts/install-ryzen-smu-dkms.sh ramsleuth-install-ryzen-smu-dkms
-
-		insinto /usr/share/ryzen-smu-dkms
-		doins packaging/ryzen-smu-dkms/dkms.conf
-
-		insinto /usr/share/ryzen-smu-dkms/vendor
-		doins packaging/ryzen-smu-dkms/vendor/SUMS.sha256 \
-			packaging/ryzen-smu-dkms/vendor/NOTICE.md
-
-		insinto /usr/share/ryzen-smu-dkms/vendor/ryzen-smu
-		doins packaging/ryzen-smu-dkms/vendor/ryzen-smu/*
-	fi
-
-	if use intel-dkms; then
-		exeinto /usr/bin
-		newexe scripts/install-intel-dkms.sh ramsleuth-install-intel-dkms
-
-		insinto /usr/share/ramsleuth-intel-dkms/src
-		doins kernel/ramsleuth-intel/*
-	fi
-
-	if use amd-dkms || use intel-dkms; then
-		insinto "/usr/share/licenses/${PN}"
-		doins "${FILESDIR}/GPL-2"
-	fi
-
-	dodoc README.md CHANGELOG.md Docs/*.md
-}
-
-pkg_postinst() {
-	if use openrc; then
-		elog "RamSleuth's OpenRC service is installed but not enabled."
-		elog "Start it and enable it at boot with:"
-		elog "  rc-service ramsleuth start"
-		elog "  rc-update add ramsleuth default"
-		elog "Add your user to the ramsleuth group (then log out and back in):"
-		elog "  usermod -aG ramsleuth <user>"
-	fi
-
-	if use systemd; then
-		elog "RamSleuth's systemd unit and preset are installed."
-		elog "Enable and start it with:"
-		elog "  systemctl enable --now ramsleuth"
-		elog "The GUI one-click setup helper is installed as ramsleuth-setup."
-	fi
-
-	if use amd-dkms; then
-		elog "Optional AMD ryzen_smu DKMS module (GPL-2) installed."
-		elog "Build and load it with:"
-		elog "  ramsleuth-install-ryzen-smu-dkms"
-		elog "It needs matching kernel headers and DKMS; without it AMD"
-		elog "subtimings report N/A (DriverMissing) but the app still runs."
-	fi
-
-	if use intel-dkms; then
-		elog "Optional Intel ramsleuth_intel DKMS module (GPL-2) installed."
-		elog "Build and load it with:"
-		elog "  ramsleuth-install-intel-dkms"
-		elog "It needs matching kernel headers and DKMS; on Alder Lake and"
-		elog "newer it exposes less than the built-in /dev/mem path."
-	fi
-
-	elog "The daemon socket is /run/ramsleuth/ramsleuth.sock."
-	elog "Try: ramsleuth-client dump, ramsleuth-tui, or ramsleuth"
-}
diff --git a/dev-util/rocm-smi/Manifest b/dev-util/rocm-smi/Manifest
deleted file mode 100644
index 8d2712d..0000000
--- a/dev-util/rocm-smi/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST rocm-smi-10.2.tar.gz 944447 BLAKE2B bcd22c67f15c514d001e7f160a28ac2e8f35a38d6fbcf11e8a2ea93362d47c2300eeb14fca9edceb032c92aa2a309a386101eb078fbc8b587315ecf914e380dd SHA512 f2663bfe10d7c1927b3773ea6a9a74996d4994039f839b70d9b7231fab15bf311b15337cc779e230820cd336f97a49dba54ab310c5daadf436e76db1c588c20d
diff --git a/dev-util/rocm-smi/files/rocm-smi-5.7.1-remove-example.patch b/dev-util/rocm-smi/files/rocm-smi-5.7.1-remove-example.patch
deleted file mode 100644
index 131938e..0000000
--- a/dev-util/rocm-smi/files/rocm-smi-5.7.1-remove-example.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-Remove example; unused, only generates not important QA warnings
---- a/rocm_smi/CMakeLists.txt
-+++ b/rocm_smi/CMakeLists.txt
-@@ -79,8 +79,10 @@
- 
- set(SMI_EXAMPLE_EXE "rocm_smi_ex")
- 
-+if (WITH_EXAMPLE)
- add_executable(${SMI_EXAMPLE_EXE} "example/rocm_smi_example.cc")
- target_link_libraries(${SMI_EXAMPLE_EXE} ${ROCM_SMI_TARGET})
-+endif()
- add_library(${ROCM_SMI_TARGET} ${CMN_SRC_LIST} ${SMI_SRC_LIST} ${CMN_INC_LIST} ${SMI_INC_LIST})
- target_link_libraries(${ROCM_SMI_TARGET} PRIVATE pthread rt dl)
- target_include_directories(
diff --git a/dev-util/rocm-smi/metadata.xml b/dev-util/rocm-smi/metadata.xml
deleted file mode 100644
index 68e21ef..0000000
--- a/dev-util/rocm-smi/metadata.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<maintainer type="person" proxied="yes">
-		<email>lockalsash@gmail.com</email>
-		<name>Sv. Lockal</name>
-		<description>Primary maintainer</description>
-	</maintainer>
-	<maintainer type="person" proxied="yes">
-		<email>xgreenlandforwyy@gmail.com</email>
-		<name>Yiyang Wu</name>
-	</maintainer>
-	<maintainer type="person" proxied="yes">
-		<email>negril.nx+gentoo@gmail.com</email>
-		<name>Paul Zander</name>
-		<description>General GPGPU stuff</description>
-	</maintainer>
-	<maintainer type="project" proxied="proxy">
-		<email>sci@gentoo.org</email>
-		<name>Gentoo Science Project</name>
-	</maintainer>
-	<upstream>
-		<remote-id type="github">ROCm/rocm-systems</remote-id>
-	</upstream>
-</pkgmetadata>
diff --git a/dev-util/rocm-smi/rocm-smi-10.2.ebuild b/dev-util/rocm-smi/rocm-smi-10.2.ebuild
deleted file mode 100644
index d2cbe7b..0000000
--- a/dev-util/rocm-smi/rocm-smi-10.2.ebuild
+++ /dev/null
@@ -1,72 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{11..14} python3_13t )
-
-inherit cmake linux-info optfeature python-r1
-
-DESCRIPTION="ROCm System Management Interface Library"
-HOMEPAGE="https://github.com/ROCm/rocm-systems/tree/develop/projects/rocm-smi-lib"
-
-if [[ ${PV} == *9999 ]] ; then
-	inherit git-r3
-	EGIT_SUBMODULES=()
-	EGIT_REPO_URI="https://github.com/ROCm/rocm-systems.git"
-	S="${WORKDIR}/${P}/projects/rocm-smi-lib"
-else
-	SRC_URI="https://github.com/ROCm/rocm-systems/releases/download/therock-${PV}/rocm-smi-lib.tar.gz -> rocm-smi-${PV}.tar.gz"
-	KEYWORDS="~amd64"
-	S="${WORKDIR}/rocm-smi-lib"
-fi
-
-LICENSE="MIT"
-SLOT="0/$(ver_cut 1-2)"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-RDEPEND="${PYTHON_DEPS}"
-DEPEND="${RDEPEND}
-	sys-kernel/linux-headers
-	x11-libs/libdrm[video_cards_amdgpu]
-"
-
-PATCHES=(
-	"${FILESDIR}"/${PN}-5.7.1-remove-example.patch
-)
-
-CONFIG_CHECK="~HSA_AMD ~DRM_AMDGPU"
-
-src_prepare() {
-	cmake_src_prepare
-
-	# Disable code that relies on missing .git directory.
-	# Just silences potential "git: command not found" QA warnings.
-	sed -e "/find_program (GIT NAMES git)/d" -i CMakeLists.txt || die
-	sed -e "/num_change_since_prev_pkg(\${VERSION_PREFIX})/d" -i cmake_modules/utils.cmake || die
-
-	local rocm_lib="${EPREFIX}/usr/$(get_libdir)/librocm_smi64.so.@VERSION_MAJOR@"
-	sed -E "s|path_librocm =.+__file__.+|path_librocm = '${rocm_lib}'|" \
-		-i python_smi_tools/rsmiBindingsInit.py.in || die
-}
-
-src_configure() {
-	local mycmakeargs=(
-		-DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
-	)
-	cmake_src_configure
-}
-
-src_install() {
-	cmake_src_install
-	python_foreach_impl python_newscript python_smi_tools/rocm_smi.py rocm-smi
-	python_foreach_impl python_domodule python_smi_tools/rsmiBindings.py
-	python_foreach_impl python_domodule python_smi_tools/rsmiBindingsInit.py
-
-	mv "${ED}"/usr/share/doc/rocm-smi-lib/* "${ED}/usr/share/doc/${PF}" || die
-	rm -r "${ED}"/usr/share/doc/rocm-smi-lib || die
-}
-
-pkg_postinst() {
-	optfeature "vendor and device names instead of hex device IDs" sys-apps/hwdata
-}
diff --git a/dev-util/rocminfo/Manifest b/dev-util/rocminfo/Manifest
deleted file mode 100644
index 31421ae..0000000
--- a/dev-util/rocminfo/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST rocminfo-10.2.tar.gz 33461 BLAKE2B 05c6ab40ec07a650bf3a6be272a7576d8b7f55fe0bb8ee6d3e3b06e26f31cbb9c510abd5503948abecef40ea45967454a9e44d380622918bf98a0fad9a52fd03 SHA512 952716c0141abcd3c35cf32102a9b7f9005601f4934ca25db0c1bff23d50dca3445ae9b485be77f704414d3d50663c28cb9f6b01f91322471a4f4888aa62397a
diff --git a/dev-util/rocminfo/metadata.xml b/dev-util/rocminfo/metadata.xml
deleted file mode 100644
index 68e21ef..0000000
--- a/dev-util/rocminfo/metadata.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<maintainer type="person" proxied="yes">
-		<email>lockalsash@gmail.com</email>
-		<name>Sv. Lockal</name>
-		<description>Primary maintainer</description>
-	</maintainer>
-	<maintainer type="person" proxied="yes">
-		<email>xgreenlandforwyy@gmail.com</email>
-		<name>Yiyang Wu</name>
-	</maintainer>
-	<maintainer type="person" proxied="yes">
-		<email>negril.nx+gentoo@gmail.com</email>
-		<name>Paul Zander</name>
-		<description>General GPGPU stuff</description>
-	</maintainer>
-	<maintainer type="project" proxied="proxy">
-		<email>sci@gentoo.org</email>
-		<name>Gentoo Science Project</name>
-	</maintainer>
-	<upstream>
-		<remote-id type="github">ROCm/rocm-systems</remote-id>
-	</upstream>
-</pkgmetadata>
diff --git a/dev-util/rocminfo/rocminfo-10.2.ebuild b/dev-util/rocminfo/rocminfo-10.2.ebuild
deleted file mode 100644
index fec64e6..0000000
--- a/dev-util/rocminfo/rocminfo-10.2.ebuild
+++ /dev/null
@@ -1,44 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{11..14} python3_13t )
-inherit cmake python-r1
-
-if [[ ${PV} == *9999 ]] ; then
-	EGIT_REPO_URI="https://github.com/ROCm/rocminfo/"
-	inherit git-r3
-else
-	SRC_URI="https://github.com/ROCm/rocm-systems/releases/download/therock-${PV}/${PN}.tar.gz -> ${P}.tar.gz"
-	KEYWORDS="~amd64"
-	S="${WORKDIR}/${PN}"
-fi
-
-DESCRIPTION="ROCm Application for Reporting System Info"
-HOMEPAGE="https://github.com/ROCm/rocm-systems/tree/develop/projects/rocminfo"
-LICENSE="UoI-NCSA"
-SLOT="0/$(ver_cut 1-2)"
-
-RDEPEND="dev-libs/rocr-runtime:${SLOT}
-	${PYTHON_DEPS}"
-DEPEND="${RDEPEND}"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-src_prepare() {
-	sed -e "/CPACK_RESOURCE_FILE_LICENSE/d" -i CMakeLists.txt || die
-	sed -e "/num_change_since_prev_pkg(/cset(NUM_COMMITS 0)" \
-		-i cmake_modules/utils.cmake || die # Fix QA issue on "git not found"
-	cmake_src_prepare
-}
-
-src_configure() {
-	local mycmakeargs=( -DROCRTST_BLD_TYPE=Release )
-	cmake_src_configure
-}
-
-src_install() {
-	cmake_src_install
-	rm "${ED}/usr/bin/rocm_agent_enumerator" || die
-	python_foreach_impl python_doexe rocm_agent_enumerator "${BUILD_DIR}"/rocm_agent_enumerator
-}
diff --git a/eclass/rocm.eclass b/eclass/rocm.eclass
deleted file mode 100644
index 15e6a43..0000000
--- a/eclass/rocm.eclass
+++ /dev/null
@@ -1,363 +0,0 @@
-# Copyright 2022-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-# @ECLASS: rocm.eclass
-# @MAINTAINER:
-# Gentoo Science Project <sci@gentoo.org>
-# @AUTHOR:
-# Yiyang Wu <xgreenlandforwyy@gmail.com>
-# @SUPPORTED_EAPIS: 8
-# @BLURB: Common functions and variables for ROCm packages written in HIP
-# @DESCRIPTION:
-# ROCm packages such as sci-libs/<roc|hip>*, and packages built on top of ROCm
-# libraries, can utilize variables and functions provided by this eclass.
-# It handles the AMDGPU_TARGETS variable via USE_EXPAND, so user can
-# edit USE flag to control which GPU architecture to compile. Using
-# ${ROCM_USEDEP} can ensure coherence among dependencies. Ebuilds can call the
-# function get_amdgpu_flag to translate activated target to GPU compile flags,
-# passing it to configuration. Function rocm_use_hipcc switches active compiler
-# to hipcc and cleans incompatible flags (useful for users with gcc-only flags
-# in /etc/portage/make.conf). Function check_amdgpu can help ebuild ensure
-# read and write permissions to GPU device in src_test phase, throwing friendly
-# error message if unavailable. However src_configure in general should not
-# access any AMDGPU devices. If it does, it usually means that CMakeLists.txt
-# ignores AMDGPU_TARGETS in favor of autodetected GPU, which is not desired.
-#
-# @EXAMPLE:
-# Example ebuild for ROCm library in https://github.com/ROCmSoftwarePlatform
-# which uses cmake to build and test, and depends on rocBLAS:
-# @CODE
-# ROCM_VERSION=${PV}
-# inherit cmake rocm
-# # ROCm libraries SRC_URI is usually in form of:
-# SRC_URI="https://github.com/ROCmSoftwarePlatform/${PN}/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz"
-# S=${WORKDIR}/${PN}-rocm-${PV}
-# SLOT="0/$(ver_cut 1-2)"
-# IUSE="test"
-# REQUIRED_USE="${ROCM_REQUIRED_USE}"
-# RESTRICT="!test? ( test )"
-#
-# RDEPEND="
-#     dev-util/hip
-#     sci-libs/rocBLAS:${SLOT}[${ROCM_USEDEP}]
-# "
-#
-# src_configure() {
-#     rocm_use_hipcc
-#     local mycmakeargs=(
-#         -DAMDGPU_TARGETS="$(get_amdgpu_flags)"
-#         -DBUILD_CLIENTS_TESTS=$(usex test ON OFF)
-#     )
-#     cmake_src_configure
-# }
-#
-# src_test() {
-#     check_amdgpu
-#     # export LD_LIBRARY_PATH=<path to built lib dir> if necessary
-#     cmake_src_test # for packages using the cmake test
-#     # For packages using a standalone test binary rather than cmake test,
-#     # just execute it (or using edob)
-# }
-# @CODE
-#
-# Examples for packages depend on ROCm libraries -- a package which depends on
-# rocBLAS, uses comma separated ${HCC_AMDGPU_TARGET} to determine GPU
-# architectures, and requires ROCm version >=5.1
-# @CODE
-# ROCM_VERSION=5.1
-# inherit rocm
-# IUSE="rocm"
-# REQUIRED_USE="rocm? ( ${ROCM_REQUIRED_USE} )"
-# DEPEND="rocm? ( >=dev-util/hip-${ROCM_VERSION}
-#     >=sci-libs/rocBLAS-${ROCM_VERSION}[${ROCM_USEDEP}] )"
-#
-# src_configure() {
-#     if use rocm; then
-#         local amdgpu_flags=$(get_amdgpu_flags)
-#         export HCC_AMDGPU_TARGET=${amdgpu_flags//;/,}
-#     fi
-#     default
-# }
-# src_test() {
-#     use rocm && check_amdgpu
-#     default
-# }
-# @CODE
-
-case ${EAPI} in
-	8) ;;
-	*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
-esac
-
-if [[ -z ${_ROCM_ECLASS} ]]; then
-_ROCM_ECLASS=1
-
-inherit flag-o-matic
-
-# @ECLASS_VARIABLE: ROCM_VERSION
-# @REQUIRED
-# @PRE_INHERIT
-# @DESCRIPTION:
-# The ROCm version of current package. For ROCm libraries, it should be ${PV};
-# for other packages that depend on ROCm libraries, this can be set to match
-# the version required for ROCm libraries.
-
-# @ECLASS_VARIABLE: ROCM_REQUIRED_USE
-# @OUTPUT_VARIABLE
-# @DESCRIPTION:
-# Requires at least one AMDGPU target to be compiled.
-# Example use for ROCm libraries:
-# @CODE
-# REQUIRED_USE="${ROCM_REQUIRED_USE}"
-# @CODE
-# Example use for packages that depend on ROCm libraries:
-# @CODE
-# IUSE="rocm"
-# REQUIRED_USE="rocm? ( ${ROCM_REQUIRED_USE} )"
-# @CODE
-
-# @ECLASS_VARIABLE: ROCM_USEDEP
-# @OUTPUT_VARIABLE
-# @DESCRIPTION:
-# This is an eclass-generated USE-dependency string which can be used to
-# depend on another ROCm package being built for the same AMDGPU architecture.
-#
-# The generated USE-flag list is compatible with packages using rocm.eclass.
-#
-# Example use:
-# @CODE
-# DEPEND="sci-libs/rocBLAS[${ROCM_USEDEP}]"
-# @CODE
-
-# @ECLASS_VARIABLE: ROCM_SKIP_GLOBALS
-# @DESCRIPTION:
-# Controls whether _rocm_set_globals() is executed. This variable is for
-# ebuilds that call check_amdgpu() without the need to define amdgpu_targets_*
-# USE-flags, such as dev-util/hip and dev-libs/rocm-opencl-runtime.
-#
-# Example use:
-# @CODE
-# ROCM_SKIP_GLOBALS=1
-# inherit rocm
-# @CODE
-
-# @FUNCTION: _rocm_set_globals
-# @INTERNAL
-# @DESCRIPTION:
-# Set global variables useful to ebuilds: IUSE, ROCM_REQUIRED_USE, and
-# ROCM_USEDEP, unless ROCM_SKIP_GLOBALS is set.
-
-_rocm_set_globals() {
-	[[ -n ${ROCM_SKIP_GLOBALS} ]] && return
-
-	# Two lists of AMDGPU_TARGETS of certain ROCm version.  Official support
-	# matrix:
-	# https://docs.amd.com/bundle/ROCm-Installation-Guide-v${ROCM_VERSION}/page/Prerequisite_Actions.html.
-	# There is no well-known unofficial support matrix.
-	# https://github.com/Bengt/ROCm/blob/patch-2/README.md#library-target-matrix
-	# may help. Gentoo have patches to enable gfx1031 as well.
-	local unofficial_amdgpu_targets official_amdgpu_targets
-	case ${ROCM_VERSION} in
-		5.[0-3].*)
-			unofficial_amdgpu_targets=(
-				gfx803 gfx900 gfx1010 gfx1011 gfx1012 gfx1031
-			)
-			official_amdgpu_targets=(
-				gfx906 gfx908 gfx90a gfx1030
-			)
-			;;
-		5.*)
-			unofficial_amdgpu_targets=(
-				gfx803 gfx900 gfx1010 gfx1011 gfx1012
-				gfx1031 gfx1100 gfx1101 gfx1102
-			)
-			official_amdgpu_targets=(
-				gfx906 gfx908 gfx90a gfx1030
-			)
-			;;
-		6.[0-3].*)
-			unofficial_amdgpu_targets=(
-				gfx803 gfx900 gfx940 gfx941
-				gfx1010 gfx1011 gfx1012
-				gfx1031 gfx1101 gfx1102
-			)
-			official_amdgpu_targets=(
-				gfx906 gfx908 gfx90a gfx942 gfx1030 gfx1100
-			)
-			;;
-		6.4.[0-2])
-			unofficial_amdgpu_targets=(
-				gfx803 gfx900 gfx906 gfx940 gfx941
-				gfx1010 gfx1011 gfx1012
-				gfx1031 gfx1101 gfx1102 gfx1200 gfx1201
-			)
-			official_amdgpu_targets=(
-				gfx908 gfx90a gfx942 gfx1030 gfx1100
-			)
-			;;
-		6.*)
-			unofficial_amdgpu_targets=(
-				gfx803 gfx900 gfx906 gfx940 gfx941
-				gfx1010 gfx1011 gfx1012
-				gfx1031 gfx1102 gfx1103 gfx1150 gfx1151
-			)
-			official_amdgpu_targets=(
-				gfx908 gfx90a gfx942 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201
-			)
-			;;
-		7.*|9999)
-			unofficial_amdgpu_targets=(
-				gfx803 gfx900 gfx906 gfx940 gfx941
-				gfx1010 gfx1011 gfx1012
-				gfx1031 gfx1102 gfx1103 gfx1150 gfx1151
-			)
-			official_amdgpu_targets=(
-				gfx908 gfx90a gfx942 gfx950 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201
-			)
-			;;
-		10.*)
-			unofficial_amdgpu_targets=(
-				gfx803 gfx900 gfx906 gfx940 gfx941
-				gfx1010 gfx1011 gfx1012
-				gfx1031
-			)
-			official_amdgpu_targets=(
-				gfx908 gfx90a gfx942 gfx950 gfx1030
-				gfx1100 gfx1101 gfx1102 gfx1103
-				gfx1150 gfx1151 gfx1152 gfx1153
-				gfx1200 gfx1201
-			)
-			;;
-		*)
-			die "Unknown ROCm major version! Please update rocm.eclass before bumping to new ebuilds"
-			;;
-	esac
-
-	local iuse_flags=(
-		"${official_amdgpu_targets[@]/#/+amdgpu_targets_}"
-		"${unofficial_amdgpu_targets[@]/#/amdgpu_targets_}"
-	)
-	IUSE="${iuse_flags[*]}"
-
-	local all_amdgpu_targets=(
-		"${official_amdgpu_targets[@]}"
-		"${unofficial_amdgpu_targets[@]}"
-	)
-	local allflags=( "${all_amdgpu_targets[@]/#/amdgpu_targets_}" )
-	ROCM_REQUIRED_USE=" || ( ${allflags[*]} )"
-
-	local optflags=${allflags[@]/%/(-)?}
-	ROCM_USEDEP=${optflags// /,}
-}
-_rocm_set_globals
-unset -f _rocm_set_globals
-
-# @FUNCTION: get_amdgpu_flags
-# @USAGE: get_amdgpu_flags
-# @DESCRIPTION:
-# Convert specified use flag of amdgpu_targets to compilation flags.
-# Append default target feature to GPU arch. See
-# https://llvm.org/docs/AMDGPUUsage.html#target-features
-get_amdgpu_flags() {
-	echo $(printf "%s;" ${AMDGPU_TARGETS[@]})
-}
-
-# @FUNCTION: rocm_add_sandbox
-# @USAGE: [-w]
-# @DESCRIPTION:
-# Add AMD GPU/NPU dev nodes to the sandbox predict list.
-# with -w, add to the sandbox write list.
-rocm_add_sandbox() {
-	debug-print-function "${FUNCNAME[0]}" "$@"
-
-	local i
-	for i in /dev/kfd /dev/dri/render* /dev/accel/accel*; do
-		if [[ ! -c $i ]]; then
-			continue
-		elif [[ $1 == '-w' ]]; then
-			addwrite "$i"
-		else
-			addpredict "$i"
-		fi
-	done
-}
-
-# @FUNCTION: check_amdgpu
-# @USAGE: check_amdgpu
-# @DESCRIPTION:
-# Grant and check read-write permissions on AMDGPU and AMDNPU devices.
-# Die if no AMDGPU devices are available.
-check_amdgpu() {
-	# Common case: no AMDGPU device or the kernel fusion driver is disabled in the kernel.
-	if [[ ! -c /dev/kfd ]]; then
-		eerror "Device /dev/kfd does not exist!"
-		eerror "To proceed, you need to have an AMD GPU and have CONFIG_HSA_AMD set in your kernel config."
-		die "/dev/kfd is missing"
-	fi
-
-	local device
-	for device in /dev/kfd /dev/dri/render* /dev/accel/accel*; do
-		[[ ! -c ${device} ]] && continue
-
-		addwrite "${device}"
-		if [[ ! -r ${device} || ! -w ${device} ]]; then
-			eerror "Cannot read or write ${device}!"
-			eerror "Make sure it is present and check the permission."
-			ewarn "By default render group have access to it. Check if portage user is in render group."
-			die "${device} inaccessible"
-		fi
-	done
-}
-
-fi
-
-# @FUNCTION: _rocm_strip_unsupported_flags
-# @INTERNAL
-# @DESCRIPTION:
-# Clean flags that are not compatible with 'amdgcn-amd-amdhsa' target.
-_rocm_strip_unsupported_flags() {
-	strip-unsupported-flags
-
-	# FLAGS like -mtls-dialect=* pass test-flags-CXX check, but are not supported
-	# bug #957893
-	export CXXFLAGS=$(test-flags-HIPCXX ${CXXFLAGS})
-}
-
-# @FUNCTION: rocm_use_hipcc
-# @USAGE: rocm_use_hipcc
-# @DESCRIPTION:
-# switch active C and C++ compilers to hipcc, clean unsupported flags and setup ROCM_TARGET_LST file.
-rocm_use_hipcc() {
-	# During the configuration stage, CMake tests whether the compiler is able to compile a simple program.
-	# Since CMake checker does not specify --offload-arch=, hipcc enumerates devices using four methods
-	# until it finds at least one device. Last way is by accessing them (via rocminfo).
-	# To prevent potential sandbox violations, we set the ROCM_TARGET_LST variable (which is checked first).
-	local target_lst="${T}"/gentoo_rocm_target.lst
-	if [[ "${AMDGPU_TARGETS[@]}" = "" ]]; then
-		# Expected no GPU code; still need to calm down sandbox
-		echo "gfx000" > "${target_lst}" || die
-	else
-		printf "%s\n" ${AMDGPU_TARGETS[@]} > "${target_lst}" || die
-	fi
-	export ROCM_TARGET_LST="${target_lst}"
-
-	# Export updated CC and CXX. Note that CC is needed even if no C code used,
-	# as CMake checks that C compiler can compile a simple test program.
-	export CC=hipcc CXX=hipcc
-	_rocm_strip_unsupported_flags
-}
-
-# @FUNCTION: rocm_use_clang
-# @USAGE: rocm_use_clang
-# @DESCRIPTION:
-# switch active C and C++ compilers to clang/clang++, clean unsupported flags
-rocm_use_clang() {
-	local hipclangpath
-	if ! hipclangpath=$(hipconfig --hipclangpath); then
-        die "Error: \"hipconfig --hipclangpath\" failed"
-    fi
-	
-	export CC="${hipclangpath}/${CHOST}-clang"
-	export CXX="${hipclangpath}/${CHOST}-clang++"
-	_rocm_strip_unsupported_flags
-}