|
150 | 150 | %{!?python3_pkgversion: %global python3_pkgversion 3} |
151 | 151 | %{!?python3_version_nodots: %global python3_version_nodots 3} |
152 | 152 | %{!?python3_version: %global python3_version 3} |
153 | | -%if 0%{with crimson} |
154 | 153 | %if 0%{?rhel} < 10 |
155 | 154 | %{!?gts_version: %global gts_version 13} |
156 | 155 | %endif |
157 | | -%else |
158 | | -%if 0%{?rhel} == 8 |
159 | | -%{!?gts_version: %global gts_version 11} |
160 | | -%endif |
161 | | -%endif |
162 | | - |
163 | | -# Disable lto on systems that do not support symver attribute |
164 | | -# See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48200 for details |
165 | | -%if (0%{?rhel} && 0%{?rhel} < 9) || ( 0%{?suse_version} && 0%{?suse_version} <= 1500 ) |
166 | | -%define _lto_cflags %{nil} |
167 | | -%endif |
168 | 156 |
|
169 | 157 | %if ! 0%{?suse_version} |
170 | 158 | # use multi-threaded xz compression: xz level 7 using ncpus threads |
|
201 | 189 | %if 0%{?enable_devtoolset13:1} |
202 | 190 | %enable_devtoolset13 |
203 | 191 | %endif |
204 | | -%else |
205 | | -%if 0%{?enable_devtoolset11:1} |
206 | | -%enable_devtoolset11 |
207 | | -%endif |
208 | 192 | %endif |
209 | 193 | %endif |
210 | 194 |
|
@@ -255,29 +239,17 @@ BuildRequires: cmake > 3.5 |
255 | 239 | BuildRequires: fuse-devel |
256 | 240 | BuildRequires: git |
257 | 241 | BuildRequires: grpc-devel |
258 | | -%if 0%{?fedora} || 0%{?suse_version} > 1500 || 0%{?rhel} == 9 || 0%{?openEuler} |
259 | | -BuildRequires: gcc-c++ >= 11 |
260 | | -%endif |
261 | | -%if 0%{?suse_version} == 1500 |
262 | | -BuildRequires: gcc11-c++ |
263 | | -%endif |
264 | | -%if 0%{?gts_version} > 0 |
265 | | -%if 0%{?gts_version} == 13 |
266 | 242 | # Before 13.3, an lto bug resulted in a segfault in SafeTimer and perhaps |
267 | 243 | # elsewhere. Require the fixed version so we can reenable lto. See |
268 | 244 | # ceph bug https://tracker.ceph.com/issues/63867 |
269 | 245 | # and |
270 | 246 | # gcc bug https://bugzilla.redhat.com/show_bug.cgi?id=2241339 |
271 | 247 | # for details. |
272 | | -BuildRequires: gcc-toolset-%{gts_version}-gcc-c++ >= 13.3 |
| 248 | +%if 0%{?gts_version} == 0 |
| 249 | +BuildRequires: gcc-c++ >= 13.3 |
273 | 250 | %else |
274 | | -BuildRequires: gcc-toolset-%{gts_version}-gcc-c++ |
275 | | -%endif |
276 | | -%if 0%{?gts_version} >= 12 |
| 251 | +BuildRequires: gcc-toolset-%{gts_version}-gcc-c++ >= 13.3 |
277 | 252 | BuildRequires: gcc-toolset-%{gts_version}-runtime |
278 | | -%else |
279 | | -BuildRequires: gcc-toolset-%{gts_version}-build |
280 | | -%endif |
281 | 253 | BuildRequires: gcc-toolset-%{gts_version}-libatomic-devel |
282 | 254 | %endif |
283 | 255 | %if 0%{?fedora} || 0%{?rhel} == 9 || 0%{?openEuler} |
@@ -405,12 +377,7 @@ BuildRequires: libasan |
405 | 377 | BuildRequires: protobuf-devel |
406 | 378 | BuildRequires: protobuf-compiler |
407 | 379 | %if 0%{?gts_version} > 0 |
408 | | -%if 0%{?gts_version} >= 12 |
409 | 380 | BuildRequires: gcc-toolset-%{gts_version}-gcc-plugin-annobin |
410 | | -%else |
411 | | -BuildRequires: gcc-toolset-%{gts_version}-annobin |
412 | | -BuildRequires: gcc-toolset-%{gts_version}-annobin-plugin-gcc |
413 | | -%endif |
414 | 381 | BuildRequires: gcc-toolset-%{gts_version}-libubsan-devel |
415 | 382 | BuildRequires: gcc-toolset-%{gts_version}-libasan-devel |
416 | 383 | %endif |
|
0 commit comments