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/hip/, dev-util/hip/files/
Date: Tue, 31 Jan 2023 13:32:32
Message-Id: 1675171893.02e622b72fd4770f699859a7b6433ea8a92c648a.heroxbd@gentoo
1 commit: 02e622b72fd4770f699859a7b6433ea8a92c648a
2 Author: Yiyang Wu <xgreenlandforwyy <AT> gmail <DOT> com>
3 AuthorDate: Wed Jan 25 04:12:24 2023 +0000
4 Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 31 13:31:33 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02e622b7
7
8 dev-util/hip: remove -Werror added by src/CMakeLists.txt
9
10 Closes: https://bugs.gentoo.org/887383
11 Signed-off-by: Yiyang Wu <xgreenlandforwyy <AT> gmail.com>
12 Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>
13
14 dev-util/hip/files/hip-5.3.3-disable-Werror.patch | 16 ++++++++++++++++
15 dev-util/hip/hip-5.3.3-r2.ebuild | 1 +
16 2 files changed, 17 insertions(+)
17
18 diff --git a/dev-util/hip/files/hip-5.3.3-disable-Werror.patch b/dev-util/hip/files/hip-5.3.3-disable-Werror.patch
19 new file mode 100644
20 index 000000000000..bed46bd144f4
21 --- /dev/null
22 +++ b/dev-util/hip/files/hip-5.3.3-disable-Werror.patch
23 @@ -0,0 +1,16 @@
24 +Index: hipamd-rocm-5.3.3/src/CMakeLists.txt
25 +===================================================================
26 +--- hipamd-rocm-5.3.3.orig/src/CMakeLists.txt
27 ++++ hipamd-rocm-5.3.3/src/CMakeLists.txt
28 +@@ -44,11 +44,6 @@ if(ADDRESS_SANITIZER)
29 + set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${ASAN_LINKER_FLAGS} -Wl,--build-id=sha1")
30 + endif()
31 +
32 +-if(CMAKE_COMPILER_IS_GNUCC)
33 +- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
34 +- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
35 +-endif()
36 +-
37 + option(DISABLE_DIRECT_DISPATCH "Disable Direct Dispatch" OFF)
38 +
39 + option(BUILD_SHARED_LIBS "Build the shared library" ON)
40
41 diff --git a/dev-util/hip/hip-5.3.3-r2.ebuild b/dev-util/hip/hip-5.3.3-r2.ebuild
42 index 94f21e6e965b..8d41b2af630f 100644
43 --- a/dev-util/hip/hip-5.3.3-r2.ebuild
44 +++ b/dev-util/hip/hip-5.3.3-r2.ebuild
45 @@ -39,6 +39,7 @@ PATCHES=(
46 "${FILESDIR}/${PN}-5.0.1-hip_vector_types.patch"
47 "${FILESDIR}/${PN}-5.0.2-set-build-id.patch"
48 "${FILESDIR}/${PN}-5.3.3-remove-cmake-doxygen-commands.patch"
49 + "${FILESDIR}/${PN}-5.3.3-disable-Werror.patch"
50 "${FILESDIR}/0001-SWDEV-352878-LLVM-pkg-search-directly-using-find_dep.patch"
51 )