summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYiyang Wu <xgreenlandforwyy@gmail.com>2022-06-22 21:49:13 +0800
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2022-06-22 20:35:04 +0200
commite8114ae86f9257cfcb4fd37a0ea228e6bdf6bae9 (patch)
treeefc1c18265d2eeb89ee39d254df50fafc0d2367a
parentdev-util/roctracer-4.3.0: fix wrong SRC_URI (diff)
downloadgentoo-e8114ae86f9257cfcb4fd37a0ea228e6bdf6bae9.tar.gz
gentoo-e8114ae86f9257cfcb4fd37a0ea228e6bdf6bae9.tar.bz2
gentoo-e8114ae86f9257cfcb4fd37a0ea228e6bdf6bae9.zip
dev-util/roctracer: patch to respect LDFLAG
Closes: https://bugs.gentoo.org/766851 Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/25891 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
-rw-r--r--dev-util/roctracer/files/roctracer-4.3.0-ldflag.patch13
-rw-r--r--dev-util/roctracer/roctracer-4.3.0-r2.ebuild1
-rw-r--r--dev-util/roctracer/roctracer-5.0.2.ebuild1
3 files changed, 15 insertions, 0 deletions
diff --git a/dev-util/roctracer/files/roctracer-4.3.0-ldflag.patch b/dev-util/roctracer/files/roctracer-4.3.0-ldflag.patch
new file mode 100644
index 000000000000..a1db6922158a
--- /dev/null
+++ b/dev-util/roctracer/files/roctracer-4.3.0-ldflag.patch
@@ -0,0 +1,13 @@
+Index: roctracer-rocm-4.3.0/cmake_modules/env.cmake
+===================================================================
+--- roctracer-rocm-4.3.0.orig/cmake_modules/env.cmake
++++ roctracer-rocm-4.3.0/cmake_modules/env.cmake
+@@ -51,7 +51,7 @@ set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS
+ set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fmerge-all-constants" )
+ set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC" )
+
+-set ( CMAKE_SHARED_LINKER_FLAGS "-Wl,-Bdynamic -Wl,-z,noexecstack" )
++set ( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-Bdynamic -Wl,-z,noexecstack" )
+
+ set ( CMAKE_SKIP_BUILD_RPATH TRUE )
+
diff --git a/dev-util/roctracer/roctracer-4.3.0-r2.ebuild b/dev-util/roctracer/roctracer-4.3.0-r2.ebuild
index 88fb2b6669fb..e5c7872fe3a1 100644
--- a/dev-util/roctracer/roctracer-4.3.0-r2.ebuild
+++ b/dev-util/roctracer/roctracer-4.3.0-r2.ebuild
@@ -31,6 +31,7 @@ BDEPEND="
PATCHES=(
# https://github.com/ROCm-Developer-Tools/roctracer/pull/63
"${FILESDIR}"/${PN}-4.3.0-glibc-2.34.patch
+ "${FILESDIR}"/${PN}-4.3.0-ldflag.patch
"${FILESDIR}"/${PN}-4.3.0-tracer_tool.patch
)
diff --git a/dev-util/roctracer/roctracer-5.0.2.ebuild b/dev-util/roctracer/roctracer-5.0.2.ebuild
index 755100264624..efabd899d252 100644
--- a/dev-util/roctracer/roctracer-5.0.2.ebuild
+++ b/dev-util/roctracer/roctracer-5.0.2.ebuild
@@ -31,6 +31,7 @@ BDEPEND="
PATCHES=(
# https://github.com/ROCm-Developer-Tools/roctracer/pull/63
"${FILESDIR}"/${PN}-4.3.0-glibc-2.34.patch
+ "${FILESDIR}"/${PN}-4.3.0-ldflag.patch
"${FILESDIR}"/${PN}-4.3.0-tracer_tool.patch
"${FILESDIR}"/${PN}-5.0.2-Werror.patch
"${FILESDIR}"/${PN}-5.0.2-headers.patch