1 |
commit: b3cd05705d2a74e713b497ce76a9decd3f277541 |
2 |
Author: Yiyang Wu <xgreenlandforwyy <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Sep 22 03:36:49 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 22 10:18:42 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3cd0570 |
7 |
|
8 |
sci-libs/rocSOLVER: clean redundant file |
9 |
|
10 |
Fixes QA warning |
11 |
|
12 |
Signed-off-by: Yiyang Wu <xgreenlandforwyy <AT> gmail.com> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/27394 |
14 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
15 |
|
16 |
.../rocSOLVER/files/rocSOLVER-5.1.3-libfmt8.patch | 173 --------------------- |
17 |
sci-libs/rocSOLVER/rocSOLVER-5.1.3.ebuild | 2 +- |
18 |
2 files changed, 1 insertion(+), 174 deletions(-) |
19 |
|
20 |
diff --git a/sci-libs/rocSOLVER/files/rocSOLVER-5.1.3-libfmt8.patch b/sci-libs/rocSOLVER/files/rocSOLVER-5.1.3-libfmt8.patch |
21 |
deleted file mode 100644 |
22 |
index 3f2c0553689b..000000000000 |
23 |
--- a/sci-libs/rocSOLVER/files/rocSOLVER-5.1.3-libfmt8.patch |
24 |
+++ /dev/null |
25 |
@@ -1,173 +0,0 @@ |
26 |
-Backported from upstream to fix dev-cpp/libfmt-8 compatibility |
27 |
- |
28 |
-remove changes of CHANGELOG.md from original git commit |
29 |
- |
30 |
-From 2bbfb8976f6e4d667499c77e41a6433850063e88 Mon Sep 17 00:00:00 2001 |
31 |
-From: Cory Bloor <Cordell.Bloor@×××.com> |
32 |
-Date: Tue, 8 Feb 2022 23:53:57 -0700 |
33 |
-Subject: [PATCH] Fix compatibility with fmt v8.1 (#371) |
34 |
- |
35 |
-* Make rocsolver_logvalue fmt specializations const |
36 |
- |
37 |
-This allows for compile-time format string processing in fmt v8.0. |
38 |
- |
39 |
-* Fix compatibility with fmt v7.1 |
40 |
- |
41 |
-* Update CHANGELOG.md |
42 |
---- |
43 |
- CHANGELOG.md | 2 ++ |
44 |
- library/src/include/rocsolver_logvalue.hpp | 38 +++++++++++++--------- |
45 |
- 2 files changed, 25 insertions(+), 15 deletions(-) |
46 |
- |
47 |
-diff --git a/library/src/include/rocsolver_logvalue.hpp b/library/src/include/rocsolver_logvalue.hpp |
48 |
-index 199f8d57d..9b3791031 100644 |
49 |
---- a/library/src/include/rocsolver_logvalue.hpp |
50 |
-+++ b/library/src/include/rocsolver_logvalue.hpp |
51 |
-@@ -1,5 +1,5 @@ |
52 |
- /* ************************************************************************ |
53 |
-- * Copyright (c) 2021 Advanced Micro Devices, Inc. |
54 |
-+ * Copyright (c) 2021-2022 Advanced Micro Devices, Inc. |
55 |
- * ************************************************************************ */ |
56 |
- |
57 |
- #pragma once |
58 |
-@@ -8,6 +8,14 @@ |
59 |
- |
60 |
- #include "rocsolver_datatype2string.hpp" |
61 |
- |
62 |
-+/* The format function for user-defined types cannot be const before fmt v8.0 |
63 |
-+ but must be const in fmt v8.1 if the type is used in a tuple. */ |
64 |
-+#if FMT_VERSION < 80000 |
65 |
-+#define ROCSOLVER_FMT_CONST |
66 |
-+#else |
67 |
-+#define ROCSOLVER_FMT_CONST const |
68 |
-+#endif |
69 |
-+ |
70 |
- /*************************************************************************** |
71 |
- * Wrapper for types passed to logger, so we can more easily adjust the |
72 |
- * default way of printing built-in types without doing it globally. (e.g. |
73 |
-@@ -37,7 +45,7 @@ template <typename T> |
74 |
- struct formatter<rocsolver_logvalue<T>> : formatter<T> |
75 |
- { |
76 |
- template <typename FormatCtx> |
77 |
-- auto format(rocsolver_logvalue<T> wrapper, FormatCtx& ctx) |
78 |
-+ auto format(rocsolver_logvalue<T> wrapper, FormatCtx& ctx) ROCSOLVER_FMT_CONST |
79 |
- { |
80 |
- return formatter<T>::format(wrapper.value, ctx); |
81 |
- } |
82 |
-@@ -49,7 +57,7 @@ template <> |
83 |
- struct formatter<rocsolver_logvalue<bool>> : formatter<char> |
84 |
- { |
85 |
- template <typename FormatCtx> |
86 |
-- auto format(rocsolver_logvalue<bool> wrapper, FormatCtx& ctx) |
87 |
-+ auto format(rocsolver_logvalue<bool> wrapper, FormatCtx& ctx) ROCSOLVER_FMT_CONST |
88 |
- { |
89 |
- return formatter<char>::format(wrapper.value ? '1' : '0', ctx); |
90 |
- } |
91 |
-@@ -58,7 +66,7 @@ template <> |
92 |
- struct formatter<rocsolver_logvalue<rocblas_operation>> : formatter<char> |
93 |
- { |
94 |
- template <typename FormatCtx> |
95 |
-- auto format(rocsolver_logvalue<rocblas_operation> wrapper, FormatCtx& ctx) |
96 |
-+ auto format(rocsolver_logvalue<rocblas_operation> wrapper, FormatCtx& ctx) ROCSOLVER_FMT_CONST |
97 |
- { |
98 |
- return formatter<char>::format(rocblas2char_operation(wrapper.value), ctx); |
99 |
- } |
100 |
-@@ -67,7 +75,7 @@ template <> |
101 |
- struct formatter<rocsolver_logvalue<rocblas_fill>> : formatter<char> |
102 |
- { |
103 |
- template <typename FormatCtx> |
104 |
-- auto format(rocsolver_logvalue<rocblas_fill> wrapper, FormatCtx& ctx) |
105 |
-+ auto format(rocsolver_logvalue<rocblas_fill> wrapper, FormatCtx& ctx) ROCSOLVER_FMT_CONST |
106 |
- { |
107 |
- return formatter<char>::format(rocblas2char_fill(wrapper.value), ctx); |
108 |
- } |
109 |
-@@ -76,7 +84,7 @@ template <> |
110 |
- struct formatter<rocsolver_logvalue<rocblas_diagonal>> : formatter<char> |
111 |
- { |
112 |
- template <typename FormatCtx> |
113 |
-- auto format(rocsolver_logvalue<rocblas_diagonal> wrapper, FormatCtx& ctx) |
114 |
-+ auto format(rocsolver_logvalue<rocblas_diagonal> wrapper, FormatCtx& ctx) ROCSOLVER_FMT_CONST |
115 |
- { |
116 |
- return formatter<char>::format(rocblas2char_diagonal(wrapper.value), ctx); |
117 |
- } |
118 |
-@@ -85,7 +93,7 @@ template <> |
119 |
- struct formatter<rocsolver_logvalue<rocblas_side>> : formatter<char> |
120 |
- { |
121 |
- template <typename FormatCtx> |
122 |
-- auto format(rocsolver_logvalue<rocblas_side> wrapper, FormatCtx& ctx) |
123 |
-+ auto format(rocsolver_logvalue<rocblas_side> wrapper, FormatCtx& ctx) ROCSOLVER_FMT_CONST |
124 |
- { |
125 |
- return formatter<char>::format(rocblas2char_side(wrapper.value), ctx); |
126 |
- } |
127 |
-@@ -94,7 +102,7 @@ template <> |
128 |
- struct formatter<rocsolver_logvalue<rocblas_direct>> : formatter<char> |
129 |
- { |
130 |
- template <typename FormatCtx> |
131 |
-- auto format(rocsolver_logvalue<rocblas_direct> wrapper, FormatCtx& ctx) |
132 |
-+ auto format(rocsolver_logvalue<rocblas_direct> wrapper, FormatCtx& ctx) ROCSOLVER_FMT_CONST |
133 |
- { |
134 |
- return formatter<char>::format(rocblas2char_direct(wrapper.value), ctx); |
135 |
- } |
136 |
-@@ -104,7 +112,7 @@ template <> |
137 |
- struct formatter<rocsolver_logvalue<rocblas_storev>> : formatter<char> |
138 |
- { |
139 |
- template <typename FormatCtx> |
140 |
-- auto format(rocsolver_logvalue<rocblas_storev> wrapper, FormatCtx& ctx) |
141 |
-+ auto format(rocsolver_logvalue<rocblas_storev> wrapper, FormatCtx& ctx) ROCSOLVER_FMT_CONST |
142 |
- { |
143 |
- return formatter<char>::format(rocblas2char_storev(wrapper.value), ctx); |
144 |
- } |
145 |
-@@ -113,7 +121,7 @@ template <> |
146 |
- struct formatter<rocsolver_logvalue<rocblas_workmode>> : formatter<char> |
147 |
- { |
148 |
- template <typename FormatCtx> |
149 |
-- auto format(rocsolver_logvalue<rocblas_workmode> wrapper, FormatCtx& ctx) |
150 |
-+ auto format(rocsolver_logvalue<rocblas_workmode> wrapper, FormatCtx& ctx) ROCSOLVER_FMT_CONST |
151 |
- { |
152 |
- return formatter<char>::format(rocblas2char_workmode(wrapper.value), ctx); |
153 |
- } |
154 |
-@@ -122,7 +130,7 @@ template <> |
155 |
- struct formatter<rocsolver_logvalue<rocblas_svect>> : formatter<char> |
156 |
- { |
157 |
- template <typename FormatCtx> |
158 |
-- auto format(rocsolver_logvalue<rocblas_svect> wrapper, FormatCtx& ctx) |
159 |
-+ auto format(rocsolver_logvalue<rocblas_svect> wrapper, FormatCtx& ctx) ROCSOLVER_FMT_CONST |
160 |
- { |
161 |
- return formatter<char>::format(rocblas2char_svect(wrapper.value), ctx); |
162 |
- } |
163 |
-@@ -131,7 +139,7 @@ template <> |
164 |
- struct formatter<rocsolver_logvalue<rocblas_evect>> : formatter<char> |
165 |
- { |
166 |
- template <typename FormatCtx> |
167 |
-- auto format(rocsolver_logvalue<rocblas_evect> wrapper, FormatCtx& ctx) |
168 |
-+ auto format(rocsolver_logvalue<rocblas_evect> wrapper, FormatCtx& ctx) ROCSOLVER_FMT_CONST |
169 |
- { |
170 |
- return formatter<char>::format(rocblas2char_evect(wrapper.value), ctx); |
171 |
- } |
172 |
-@@ -140,7 +148,7 @@ template <> |
173 |
- struct formatter<rocsolver_logvalue<rocblas_eform>> : formatter<char> |
174 |
- { |
175 |
- template <typename FormatCtx> |
176 |
-- auto format(rocsolver_logvalue<rocblas_eform> wrapper, FormatCtx& ctx) |
177 |
-+ auto format(rocsolver_logvalue<rocblas_eform> wrapper, FormatCtx& ctx) ROCSOLVER_FMT_CONST |
178 |
- { |
179 |
- return formatter<char>::format(rocblas2char_eform(wrapper.value), ctx); |
180 |
- } |
181 |
-@@ -149,7 +157,7 @@ template <> |
182 |
- struct formatter<rocsolver_logvalue<rocblas_datatype>> : formatter<string_view> |
183 |
- { |
184 |
- template <typename FormatCtx> |
185 |
-- auto format(rocsolver_logvalue<rocblas_datatype> wrapper, FormatCtx& ctx) |
186 |
-+ auto format(rocsolver_logvalue<rocblas_datatype> wrapper, FormatCtx& ctx) ROCSOLVER_FMT_CONST |
187 |
- { |
188 |
- return formatter<string_view>::format(rocblas2string_datatype(wrapper.value), ctx); |
189 |
- } |
190 |
-@@ -158,7 +166,7 @@ template <> |
191 |
- struct formatter<rocsolver_logvalue<rocblas_initialization>> : formatter<string_view> |
192 |
- { |
193 |
- template <typename FormatCtx> |
194 |
-- auto format(rocsolver_logvalue<rocblas_initialization> wrapper, FormatCtx& ctx) |
195 |
-+ auto format(rocsolver_logvalue<rocblas_initialization> wrapper, FormatCtx& ctx) ROCSOLVER_FMT_CONST |
196 |
- { |
197 |
- return formatter<string_view>::format(rocblas2string_initialization(wrapper.value), ctx); |
198 |
- } |
199 |
|
200 |
diff --git a/sci-libs/rocSOLVER/rocSOLVER-5.1.3.ebuild b/sci-libs/rocSOLVER/rocSOLVER-5.1.3.ebuild |
201 |
index 77092f820467..e2db9aba2a19 100644 |
202 |
--- a/sci-libs/rocSOLVER/rocSOLVER-5.1.3.ebuild |
203 |
+++ b/sci-libs/rocSOLVER/rocSOLVER-5.1.3.ebuild |
204 |
@@ -29,7 +29,7 @@ BDEPEND="test? ( dev-cpp/gtest |
205 |
|
206 |
PATCHES=( |
207 |
"${FILESDIR}/${PN}-4.2.0-add-stdint-header.patch" |
208 |
- "${FILESDIR}/${P}-libfmt8.patch" |
209 |
+ "${FILESDIR}/${PN}-5.0.2-libfmt8.patch" |
210 |
) |
211 |
|
212 |
RESTRICT="!test? ( test )" |