public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/rocm-smi/, dev-util/rocm-smi/files/
Date: Fri, 10 Jun 2022 10:28:40 +0000 (UTC)	[thread overview]
Message-ID: <1654856914.9b15e9df8e00f31a1fbdd5938a495d21fb8bb120.sam@gentoo> (raw)

commit:     9b15e9df8e00f31a1fbdd5938a495d21fb8bb120
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 10 10:24:53 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jun 10 10:28:34 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b15e9df

dev-util/rocm-smi: fix build with GCC 12

Closes: https://bugs.gentoo.org/840149
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../rocm-smi/files/rocm-smi-5.0.2-gcc12-memcpy.patch  | 19 +++++++++++++++++++
 dev-util/rocm-smi/rocm-smi-5.0.2.ebuild               |  4 ++++
 2 files changed, 23 insertions(+)

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


             reply	other threads:[~2022-06-10 10:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-10 10:28 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-01-27  7:33 [gentoo-commits] repo/gentoo:master commit in: dev-util/rocm-smi/, dev-util/rocm-smi/files/ Joonas Niilola

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1654856914.9b15e9df8e00f31a1fbdd5938a495d21fb8bb120.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox