Gentoo Archives: gentoo-commits

From: Benda XU <heroxbd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/rocprofiler/files/, dev-util/rocprofiler/
Date: Tue, 31 Jan 2023 14:18:46
Message-Id: 1675174707.acf7743519df9e0592827326467127316aaa1439.heroxbd@gentoo
1 commit: acf7743519df9e0592827326467127316aaa1439
2 Author: Yiyang Wu <xgreenlandforwyy <AT> gmail <DOT> com>
3 AuthorDate: Fri Jan 27 15:11:14 2023 +0000
4 Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 31 14:18:27 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=acf77435
7
8 dev-util/rocprofiler: strip -Werror
9
10 Closes: https://bugs.gentoo.org/888867
11 Signed-off-by: Yiyang Wu <xgreenlandforwyy <AT> gmail.com>
12 Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>
13
14 .../rocprofiler/files/rocprofiler-5.1.3-remove-Werror.patch | 12 ++++++++++++
15 dev-util/rocprofiler/rocprofiler-5.1.3-r1.ebuild | 3 ++-
16 2 files changed, 14 insertions(+), 1 deletion(-)
17
18 diff --git a/dev-util/rocprofiler/files/rocprofiler-5.1.3-remove-Werror.patch b/dev-util/rocprofiler/files/rocprofiler-5.1.3-remove-Werror.patch
19 new file mode 100644
20 index 000000000000..a30d6d6d00a7
21 --- /dev/null
22 +++ b/dev-util/rocprofiler/files/rocprofiler-5.1.3-remove-Werror.patch
23 @@ -0,0 +1,12 @@
24 +Index: rocprofiler-rocm-5.1.3/cmake_modules/env.cmake
25 +===================================================================
26 +--- rocprofiler-rocm-5.1.3.orig/cmake_modules/env.cmake
27 ++++ rocprofiler-rocm-5.1.3/cmake_modules/env.cmake
28 +@@ -38,7 +38,6 @@ add_definitions ( -DHSA_DEPRECATED= )
29 + ## Linux Compiler options
30 + set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
31 + set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall" )
32 +-set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror" )
33 + set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=return-type" )
34 + set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions" )
35 + set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden" )
36
37 diff --git a/dev-util/rocprofiler/rocprofiler-5.1.3-r1.ebuild b/dev-util/rocprofiler/rocprofiler-5.1.3-r1.ebuild
38 index ded4edd1ce8e..e63978351e11 100644
39 --- a/dev-util/rocprofiler/rocprofiler-5.1.3-r1.ebuild
40 +++ b/dev-util/rocprofiler/rocprofiler-5.1.3-r1.ebuild
41 @@ -28,7 +28,8 @@ BDEPEND="
42
43 PATCHES=( "${FILESDIR}/${PN}-4.3.0-nostrip.patch"
44 "${FILESDIR}/${PN}-4.3.0-no-aqlprofile.patch"
45 - "${FILESDIR}/${PN}-5.0.2-gentoo-location.patch" )
46 + "${FILESDIR}/${PN}-5.0.2-gentoo-location.patch"
47 + "${FILESDIR}/${PN}-5.1.3-remove-Werror.patch" )
48
49 python_check_deps() {
50 python_has_version "dev-python/CppHeaderParser[${PYTHON_USEDEP}]"