public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/roctracer/, dev-util/roctracer/files/
Date: Sat, 30 Oct 2021 16:47:17 +0000 (UTC)	[thread overview]
Message-ID: <1635612429.17141c97e9313f7f73148036e5d3dc96f9760f15.soap@gentoo> (raw)

commit:     17141c97e9313f7f73148036e5d3dc96f9760f15
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 30 16:47:09 2021 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Oct 30 16:47:09 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17141c97

dev-util/roctracer: pthread_yield -> sched_yield (glibc 2.34)

Closes: https://bugs.gentoo.org/808049
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../files/roctracer-4.3.0-glibc-2.34.patch         | 35 ++++++++++++++++++++++
 dev-util/roctracer/roctracer-4.3.0.ebuild          |  9 ++++--
 2 files changed, 41 insertions(+), 3 deletions(-)

diff --git a/dev-util/roctracer/files/roctracer-4.3.0-glibc-2.34.patch b/dev-util/roctracer/files/roctracer-4.3.0-glibc-2.34.patch
new file mode 100644
index 00000000000..e11b1148bb8
--- /dev/null
+++ b/dev-util/roctracer/files/roctracer-4.3.0-glibc-2.34.patch
@@ -0,0 +1,35 @@
+From 5f4c1c01de8f0da24956c1c931d3ffe7410b5b78 Mon Sep 17 00:00:00 2001
+From: David Seifert <soap@gentoo.org>
+Date: Sat, 30 Oct 2021 18:35:53 +0200
+Subject: [PATCH] pthread_yield -> sched_yield (glibc 2.34)
+
+Bug: https://bugs.gentoo.org/808049
+Upstream: https://github.com/ROCm-Developer-Tools/roctracer/pull/63
+---
+ src/core/memory_pool.h | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/core/memory_pool.h b/src/core/memory_pool.h
+index fe2f1a6..fbd9060 100644
+--- a/src/core/memory_pool.h
++++ b/src/core/memory_pool.h
+@@ -24,6 +24,7 @@ THE SOFTWARE.
+ #define MEMORY_POOL_H_
+ 
+ #include <pthread.h>
++#include <sched.h>
+ #include <stdlib.h>
+ 
+ #include <atomic>
+@@ -152,7 +153,7 @@ class MemoryPool {
+   }
+ 
+   static void sync_reader(const consumer_arg_t* arg) {
+-    while(arg->valid.load() == true) PTHREAD_CALL(pthread_yield());
++    while(arg->valid.load() == true) PTHREAD_CALL(sched_yield());
+   }
+ 
+   static void* reader_fun(void* consumer_arg) {
+-- 
+2.33.1
+

diff --git a/dev-util/roctracer/roctracer-4.3.0.ebuild b/dev-util/roctracer/roctracer-4.3.0.ebuild
index 19a0adee967..35092c81a55 100644
--- a/dev-util/roctracer/roctracer-4.3.0.ebuild
+++ b/dev-util/roctracer/roctracer-4.3.0.ebuild
@@ -11,6 +11,7 @@ DESCRIPTION="Callback/Activity Library for Performance tracing AMD GPU's"
 HOMEPAGE="https://github.com/ROCm-Developer-Tools/roctracer.git"
 SRC_URI="https://github.com/ROCm-Developer-Tools/roctracer/archive/rocm-${PV}.tar.gz -> rocm-tracer-${PV}.tar.gz
 		https://github.com/ROCm-Developer-Tools/rocprofiler/archive/rocm-${PV}.tar.gz -> rocprofiler-${PV}.tar.gz"
+S="${WORKDIR}/roctracer-rocm-${PV}"
 
 LICENSE="MIT"
 SLOT="0/$(ver_cut 1-2)"
@@ -26,13 +27,16 @@ BDEPEND="
 	')
 "
 
+PATCHES=(
+	# https://github.com/ROCm-Developer-Tools/roctracer/pull/63
+	"${FILESDIR}"/${PN}-4.3.0-glibc-2.34.patch
+)
+
 python_check_deps() {
 	has_version "dev-python/CppHeaderParser[${PYTHON_USEDEP}]" &&
 	has_version "dev-python/ply[${PYTHON_USEDEP}]"
 }
 
-S="${WORKDIR}/roctracer-rocm-${PV}"
-
 src_prepare() {
 	mv "${WORKDIR}"/rocprofiler-rocm-${PV} "${WORKDIR}"/rocprofiler || die
 
@@ -54,7 +58,6 @@ src_prepare() {
 
 	hprefixify script/*.py
 
-	eapply_user
 	cmake_src_prepare
 }
 


             reply	other threads:[~2021-10-30 16:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-30 16:47 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-13  8:38 [gentoo-commits] repo/gentoo:master commit in: dev-util/roctracer/, dev-util/roctracer/files/ Sam James
2025-01-05 21:49 Sam James
2023-02-01  9:53 Andreas Sturmlechner
2023-01-31 14:18 Benda XU
2022-08-08  1:38 Benda XU
2022-05-01 14:43 Benda XU
2021-01-24  7:43 Benda XU

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=1635612429.17141c97e9313f7f73148036e5d3dc96f9760f15.soap@gentoo \
    --to=soap@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