diff options
author | Sam James <sam@gentoo.org> | 2022-06-10 11:24:53 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-06-10 11:28:34 +0100 |
commit | 9b15e9df8e00f31a1fbdd5938a495d21fb8bb120 (patch) | |
tree | d6ef5731e8b680d074e209e98aacb869420cb9b7 /dev-util/rocm-smi | |
parent | sci-libs/cfitsio: add 4.1.0 (diff) | |
download | gentoo-9b15e9df8e00f31a1fbdd5938a495d21fb8bb120.tar.gz gentoo-9b15e9df8e00f31a1fbdd5938a495d21fb8bb120.tar.bz2 gentoo-9b15e9df8e00f31a1fbdd5938a495d21fb8bb120.zip |
dev-util/rocm-smi: fix build with GCC 12
Closes: https://bugs.gentoo.org/840149
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/rocm-smi')
-rw-r--r-- | dev-util/rocm-smi/files/rocm-smi-5.0.2-gcc12-memcpy.patch | 19 | ||||
-rw-r--r-- | dev-util/rocm-smi/rocm-smi-5.0.2.ebuild | 4 |
2 files changed, 23 insertions, 0 deletions
diff --git a/dev-util/rocm-smi/files/rocm-smi-5.0.2-gcc12-memcpy.patch b/dev-util/rocm-smi/files/rocm-smi-5.0.2-gcc12-memcpy.patch new file mode 100644 index 000000000000..981efc14c23e --- /dev/null +++ b/dev-util/rocm-smi/files/rocm-smi-5.0.2-gcc12-memcpy.patch @@ -0,0 +1,19 @@ +https://github.com/RadeonOpenCompute/rocm_smi_lib/pull/107 +https://bugs.gentoo.org/840149 + +From 447bf22557c875ca7d26a72d20561feb607ed300 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Torsten=20Ke=C3=9Fler?= <t.kessler@posteo.de> +Date: Fri, 13 May 2022 11:33:11 +0200 +Subject: [PATCH] Add missing string header for memcpy + +--- a/src/rocm_smi_gpu_metrics.cc ++++ b/src/rocm_smi_gpu_metrics.cc +@@ -53,6 +53,7 @@ + #include <regex> // NOLINT + #include <vector> + #include <pthread.h> ++#include <string.h> + + #include "rocm_smi/rocm_smi_common.h" // Should go before rocm_smi.h + #include "rocm_smi/rocm_smi_main.h" + diff --git a/dev-util/rocm-smi/rocm-smi-5.0.2.ebuild b/dev-util/rocm-smi/rocm-smi-5.0.2.ebuild index d9dd59e76bf1..c928d8c055fa 100644 --- a/dev-util/rocm-smi/rocm-smi-5.0.2.ebuild +++ b/dev-util/rocm-smi/rocm-smi-5.0.2.ebuild @@ -29,6 +29,10 @@ DEPEND="" RDEPEND="${PYTHON_DEPS}" BDEPEND="" +PATCHES=( + "${FILESDIR}"/${PN}-5.0.2-gcc12-memcpy.patch +) + src_prepare() { sed -e "/DESTINATION/s,\${OAM_NAME}/lib,$(get_libdir)," \ -e "/DESTINATION/s,oam/include/oam,include/oam," -i oam/CMakeLists.txt || die |