dev-util/rocm-smi: add logging patch to 6.3.3, check for HSA_AMD, suggest sys-apps/hwdata

Bug: https://bugs.gentoo.org/957064
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42608
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sv. Lockal
2025-06-15 12:12:23 +00:00
committed by Sam James
parent 940971dd00
commit 2cf2808d06
2 changed files with 21 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ EAPI=8
PYTHON_COMPAT=( python3_{10..13} python3_13t )
inherit cmake python-r1
inherit cmake linux-info python-r1
DESCRIPTION="ROCm System Management Interface Library"
HOMEPAGE="https://github.com/ROCm/rocm_smi_lib"
@@ -31,8 +31,11 @@ PATCHES=(
"${FILESDIR}"/${PN}-5.7.1-remove-example.patch
"${FILESDIR}"/${PN}-6.3.0-set-soversion.patch
"${FILESDIR}"/${PN}-6.3.0-fix-flags.patch
"${FILESDIR}"/${PN}-6.4.1-log-exceptions.patch
)
CONFIG_CHECK="~HSA_AMD ~DRM_AMDGPU"
src_prepare() {
cmake_src_prepare
@@ -58,3 +61,10 @@ src_install() {
mv "${ED}"/usr/share/doc/rocm_smi "${ED}/usr/share/doc/${PF}" || die
}
pkg_postinst() {
if ! has_version sys-apps/hwdata; then
elog "Install sys-apps/hwdata to see vendor and device names"
elog "instead of hex device IDs in rocm-smi output"
fi
}

View File

@@ -5,7 +5,7 @@ EAPI=8
PYTHON_COMPAT=( python3_{11..14} python3_13t )
inherit cmake python-r1
inherit cmake linux-info python-r1
DESCRIPTION="ROCm System Management Interface Library"
HOMEPAGE="https://github.com/ROCm/rocm_smi_lib"
@@ -34,6 +34,8 @@ PATCHES=(
"${FILESDIR}"/${PN}-6.4.1-log-exceptions.patch
)
CONFIG_CHECK="~HSA_AMD ~DRM_AMDGPU"
src_prepare() {
cmake_src_prepare
@@ -59,3 +61,10 @@ src_install() {
mv "${ED}"/usr/share/doc/rocm_smi "${ED}/usr/share/doc/${PF}" || die
}
pkg_postinst() {
if ! has_version sys-apps/hwdata; then
elog "Install sys-apps/hwdata to see vendor and device names"
elog "instead of hex device IDs in rocm-smi output"
fi
}