mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user