From 54180b5c38969ceaf2baa76c4bf0a03feb5791d4 Mon Sep 17 00:00:00 2001 From: "Sv. Lockal" Date: Sun, 15 Jun 2025 18:04:11 +0000 Subject: [PATCH] dev-util/rocm-smi: use optfeature instead of elog Signed-off-by: Sv. Lockal Part-of: https://github.com/gentoo/gentoo/pull/42610 Closes: https://github.com/gentoo/gentoo/pull/42610 Signed-off-by: Sam James --- dev-util/rocm-smi/rocm-smi-6.3.3-r1.ebuild | 7 ++----- dev-util/rocm-smi/rocm-smi-6.4.1.ebuild | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/dev-util/rocm-smi/rocm-smi-6.3.3-r1.ebuild b/dev-util/rocm-smi/rocm-smi-6.3.3-r1.ebuild index fe31310588225..58841363f0550 100644 --- a/dev-util/rocm-smi/rocm-smi-6.3.3-r1.ebuild +++ b/dev-util/rocm-smi/rocm-smi-6.3.3-r1.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..13} python3_13t ) -inherit cmake linux-info python-r1 +inherit cmake linux-info optfeature python-r1 DESCRIPTION="ROCm System Management Interface Library" HOMEPAGE="https://github.com/ROCm/rocm_smi_lib" @@ -63,8 +63,5 @@ src_install() { } 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 + optfeature "vendor and device names instead of hex device IDs" sys-apps/hwdata } diff --git a/dev-util/rocm-smi/rocm-smi-6.4.1.ebuild b/dev-util/rocm-smi/rocm-smi-6.4.1.ebuild index c295e3f119330..a0c81ed871afb 100644 --- a/dev-util/rocm-smi/rocm-smi-6.4.1.ebuild +++ b/dev-util/rocm-smi/rocm-smi-6.4.1.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{11..14} python3_13t ) -inherit cmake linux-info python-r1 +inherit cmake linux-info optfeature python-r1 DESCRIPTION="ROCm System Management Interface Library" HOMEPAGE="https://github.com/ROCm/rocm_smi_lib" @@ -63,8 +63,5 @@ src_install() { } 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 + optfeature "vendor and device names instead of hex device IDs" sys-apps/hwdata }