1 |
commit: 548d7270d6a895bcd7ce4af5bb6417e8508d2175 |
2 |
Author: Yiyang Wu <xgreenlandforwyy <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jun 14 08:02:26 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 22 18:35:03 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=548d7270 |
7 |
|
8 |
dev-util/rocprofiler: QA fixes |
9 |
|
10 |
Closes: https://bugs.gentoo.org/851792 |
11 |
Closes: https://bugs.gentoo.org/851795 |
12 |
Signed-off-by: Yiyang Wu <xgreenlandforwyy <AT> gmail.com> |
13 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
14 |
|
15 |
dev-util/rocprofiler/files/rocprofiler-4.3.0-ldflag.patch | 13 +++++++++++++ |
16 |
dev-util/rocprofiler/files/rocprofiler-4.3.0-nostrip.patch | 13 +++++++++++++ |
17 |
dev-util/rocprofiler/rocprofiler-4.3.0.ebuild | 2 ++ |
18 |
dev-util/rocprofiler/rocprofiler-5.0.2.ebuild | 4 +++- |
19 |
4 files changed, 31 insertions(+), 1 deletion(-) |
20 |
|
21 |
diff --git a/dev-util/rocprofiler/files/rocprofiler-4.3.0-ldflag.patch b/dev-util/rocprofiler/files/rocprofiler-4.3.0-ldflag.patch |
22 |
new file mode 100644 |
23 |
index 000000000000..dc097a568ca4 |
24 |
--- /dev/null |
25 |
+++ b/dev-util/rocprofiler/files/rocprofiler-4.3.0-ldflag.patch |
26 |
@@ -0,0 +1,13 @@ |
27 |
+Index: rocprofiler-rocm-5.0.2/cmake_modules/env.cmake |
28 |
+=================================================================== |
29 |
+--- rocprofiler-rocm-5.0.2.orig/cmake_modules/env.cmake |
30 |
++++ rocprofiler-rocm-5.0.2/cmake_modules/env.cmake |
31 |
+@@ -51,7 +51,7 @@ set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS |
32 |
+ #set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=int-in-bool-context" ) |
33 |
+ set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC" ) |
34 |
+ |
35 |
+-set ( CMAKE_SHARED_LINKER_FLAGS "-Wl,-Bdynamic -Wl,-z,noexecstack" ) |
36 |
++set ( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-Bdynamic -Wl,-z,noexecstack" ) |
37 |
+ |
38 |
+ set ( CMAKE_SKIP_BUILD_RPATH TRUE ) |
39 |
+ |
40 |
|
41 |
diff --git a/dev-util/rocprofiler/files/rocprofiler-4.3.0-nostrip.patch b/dev-util/rocprofiler/files/rocprofiler-4.3.0-nostrip.patch |
42 |
new file mode 100644 |
43 |
index 000000000000..3da3d99357f7 |
44 |
--- /dev/null |
45 |
+++ b/dev-util/rocprofiler/files/rocprofiler-4.3.0-nostrip.patch |
46 |
@@ -0,0 +1,13 @@ |
47 |
+Index: rocprofiler-rocm-5.0.2/cmake_modules/env.cmake |
48 |
+=================================================================== |
49 |
+--- rocprofiler-rocm-5.0.2.orig/cmake_modules/env.cmake |
50 |
++++ rocprofiler-rocm-5.0.2/cmake_modules/env.cmake |
51 |
+@@ -92,8 +92,6 @@ string ( TOLOWER "${CMAKE_BUILD_TYPE}" C |
52 |
+ if ( "${CMAKE_BUILD_TYPE}" STREQUAL debug ) |
53 |
+ set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ggdb" ) |
54 |
+ set ( CMAKE_BUILD_TYPE "debug" ) |
55 |
+-else () |
56 |
+- set ( CMAKE_BUILD_TYPE "release" ) |
57 |
+ endif () |
58 |
+ |
59 |
+ ## Extend Compiler flags based on Processor architecture |
60 |
|
61 |
diff --git a/dev-util/rocprofiler/rocprofiler-4.3.0.ebuild b/dev-util/rocprofiler/rocprofiler-4.3.0.ebuild |
62 |
index 28e57bde66a4..630f4754fc8f 100644 |
63 |
--- a/dev-util/rocprofiler/rocprofiler-4.3.0.ebuild |
64 |
+++ b/dev-util/rocprofiler/rocprofiler-4.3.0.ebuild |
65 |
@@ -27,6 +27,8 @@ BDEPEND=" |
66 |
" |
67 |
|
68 |
PATCHES=( "${FILESDIR}/${P}-fix-gcc11.patch" |
69 |
+ "${FILESDIR}/${PN}-4.3.0-nostrip.patch" |
70 |
+ "${FILESDIR}/${PN}-4.3.0-ldflag.patch" |
71 |
"${FILESDIR}/${PN}-4.3.0-gentoo-location.patch" ) |
72 |
|
73 |
python_check_deps() { |
74 |
|
75 |
diff --git a/dev-util/rocprofiler/rocprofiler-5.0.2.ebuild b/dev-util/rocprofiler/rocprofiler-5.0.2.ebuild |
76 |
index ff321726622e..7e8f0346636d 100644 |
77 |
--- a/dev-util/rocprofiler/rocprofiler-5.0.2.ebuild |
78 |
+++ b/dev-util/rocprofiler/rocprofiler-5.0.2.ebuild |
79 |
@@ -26,7 +26,9 @@ BDEPEND=" |
80 |
') |
81 |
" |
82 |
|
83 |
-PATCHES=( "${FILESDIR}/${PN}-5.0.2-gentoo-location.patch" ) |
84 |
+PATCHES=( "${FILESDIR}/${PN}-4.3.0-nostrip.patch" |
85 |
+ "${FILESDIR}/${PN}-4.3.0-ldflag.patch" |
86 |
+ "${FILESDIR}/${PN}-5.0.2-gentoo-location.patch" ) |
87 |
|
88 |
python_check_deps() { |
89 |
has_version "dev-python/CppHeaderParser[${PYTHON_USEDEP}]" |