Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/wine-staging/
Date: Tue, 17 May 2022 04:29:36
Message-Id: 1652761758.00727fa047a355a08e2c797f894611d0e9b58c66.sam@gentoo
1 commit: 00727fa047a355a08e2c797f894611d0e9b58c66
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 17 01:36:21 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue May 17 04:29:18 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00727fa0
7
8 app-emulation/wine-staging: [QA] drop (very) stale GCC version checks
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 .../wine-staging/wine-staging-7.5-r1.ebuild | 70 +---------------------
13 .../wine-staging/wine-staging-7.6-r1.ebuild | 70 +---------------------
14 app-emulation/wine-staging/wine-staging-7.7.ebuild | 70 +---------------------
15 app-emulation/wine-staging/wine-staging-7.8.ebuild | 70 +---------------------
16 .../wine-staging/wine-staging-9999.ebuild | 70 +---------------------
17 5 files changed, 10 insertions(+), 340 deletions(-)
18
19 diff --git a/app-emulation/wine-staging/wine-staging-7.5-r1.ebuild b/app-emulation/wine-staging/wine-staging-7.5-r1.ebuild
20 index 96b148692d17..178ae2fa6afe 100644
21 --- a/app-emulation/wine-staging/wine-staging-7.5-r1.ebuild
22 +++ b/app-emulation/wine-staging/wine-staging-7.5-r1.ebuild
23 @@ -163,80 +163,14 @@ if [[ ${#PATCHES_BIN[@]} -ge 1 ]] || [[ ${MY_PV} == 9999 ]]; then
24 fi
25
26 wine_compiler_check() {
27 - # GCC-specific bugs
28 - if tc-is-gcc; then
29 - # bug #549768
30 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
31 - ebegin "Checking for gcc-5 ms_abi compiler bug"
32 - $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die
33 - # Run in subshell to prevent "Aborted" message
34 - ( "${T}"/pr66838 || false ) >/dev/null 2>&1
35 - if ! eend $?; then
36 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
37 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
38 - eerror "or use gcc-config to select a different compiler version."
39 - eerror "See https://bugs.gentoo.org/549768"
40 - eerror
41 - return 1
42 - fi
43 - fi
44 - # bug #574044
45 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then
46 - ebegin "Checking for gcc-5-3 stack realignment compiler bug"
47 - # Compile in subshell to prevent "Aborted" message
48 - ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1
49 - if ! eend $?; then
50 - eerror "Wine cannot be built with this version of gcc-5.3"
51 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild,"
52 - eerror "or use gcc-config to select a different compiler version."
53 - eerror "See https://bugs.gentoo.org/574044"
54 - eerror
55 - return 1
56 - fi
57 - fi
58 - fi
59 -
60 # Ensure compiler support
61 - if use abi_x86_64; then
62 - ebegin "Checking for 64-bit compiler with builtin_ms_va_list support"
63 - # Compile in subshell to prevent "Aborted" message
64 - ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1)
65 - if ! eend $?; then
66 - eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine"
67 - eerror
68 - eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine"
69 - eerror
70 - return 1
71 - fi
72 - fi
73 + # (No checks here as of 2022)
74 + return 0
75 }
76
77 wine_build_environment_check() {
78 [[ ${MERGE_TYPE} = "binary" ]] && return 0
79
80 - if use abi_x86_64; then
81 - if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
82 - eerror "You need gcc-4.4+ to compile 64-bit wine"
83 - die
84 - elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
85 - eerror "You need clang-3.8+ to compile 64-bit wine"
86 - die
87 - fi
88 - fi
89 - if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
90 - ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
91 - ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
92 - ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
93 - fi
94 - if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then
95 - if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then
96 - ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work"
97 - ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine."
98 - ewarn "See package.env in man 5 portage for more information on how to do this."
99 - ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details"
100 - fi
101 - fi
102 -
103 if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
104 eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
105 eerror "See https://bugs.gentoo.org/487864 for more details."
106
107 diff --git a/app-emulation/wine-staging/wine-staging-7.6-r1.ebuild b/app-emulation/wine-staging/wine-staging-7.6-r1.ebuild
108 index 85082a82bc6f..2985fe9ef68e 100644
109 --- a/app-emulation/wine-staging/wine-staging-7.6-r1.ebuild
110 +++ b/app-emulation/wine-staging/wine-staging-7.6-r1.ebuild
111 @@ -163,80 +163,14 @@ if [[ ${#PATCHES_BIN[@]} -ge 1 ]] || [[ ${MY_PV} == 9999 ]]; then
112 fi
113
114 wine_compiler_check() {
115 - # GCC-specific bugs
116 - if tc-is-gcc; then
117 - # bug #549768
118 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
119 - ebegin "Checking for gcc-5 ms_abi compiler bug"
120 - $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die
121 - # Run in subshell to prevent "Aborted" message
122 - ( "${T}"/pr66838 || false ) >/dev/null 2>&1
123 - if ! eend $?; then
124 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
125 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
126 - eerror "or use gcc-config to select a different compiler version."
127 - eerror "See https://bugs.gentoo.org/549768"
128 - eerror
129 - return 1
130 - fi
131 - fi
132 - # bug #574044
133 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then
134 - ebegin "Checking for gcc-5-3 stack realignment compiler bug"
135 - # Compile in subshell to prevent "Aborted" message
136 - ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1
137 - if ! eend $?; then
138 - eerror "Wine cannot be built with this version of gcc-5.3"
139 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild,"
140 - eerror "or use gcc-config to select a different compiler version."
141 - eerror "See https://bugs.gentoo.org/574044"
142 - eerror
143 - return 1
144 - fi
145 - fi
146 - fi
147 -
148 # Ensure compiler support
149 - if use abi_x86_64; then
150 - ebegin "Checking for 64-bit compiler with builtin_ms_va_list support"
151 - # Compile in subshell to prevent "Aborted" message
152 - ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1)
153 - if ! eend $?; then
154 - eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine"
155 - eerror
156 - eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine"
157 - eerror
158 - return 1
159 - fi
160 - fi
161 + # (No checks here as of 2022)
162 + return 0
163 }
164
165 wine_build_environment_check() {
166 [[ ${MERGE_TYPE} = "binary" ]] && return 0
167
168 - if use abi_x86_64; then
169 - if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
170 - eerror "You need gcc-4.4+ to compile 64-bit wine"
171 - die
172 - elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
173 - eerror "You need clang-3.8+ to compile 64-bit wine"
174 - die
175 - fi
176 - fi
177 - if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
178 - ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
179 - ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
180 - ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
181 - fi
182 - if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then
183 - if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then
184 - ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work"
185 - ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine."
186 - ewarn "See package.env in man 5 portage for more information on how to do this."
187 - ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details"
188 - fi
189 - fi
190 -
191 if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
192 eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
193 eerror "See https://bugs.gentoo.org/487864 for more details."
194
195 diff --git a/app-emulation/wine-staging/wine-staging-7.7.ebuild b/app-emulation/wine-staging/wine-staging-7.7.ebuild
196 index 85082a82bc6f..2985fe9ef68e 100644
197 --- a/app-emulation/wine-staging/wine-staging-7.7.ebuild
198 +++ b/app-emulation/wine-staging/wine-staging-7.7.ebuild
199 @@ -163,80 +163,14 @@ if [[ ${#PATCHES_BIN[@]} -ge 1 ]] || [[ ${MY_PV} == 9999 ]]; then
200 fi
201
202 wine_compiler_check() {
203 - # GCC-specific bugs
204 - if tc-is-gcc; then
205 - # bug #549768
206 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
207 - ebegin "Checking for gcc-5 ms_abi compiler bug"
208 - $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die
209 - # Run in subshell to prevent "Aborted" message
210 - ( "${T}"/pr66838 || false ) >/dev/null 2>&1
211 - if ! eend $?; then
212 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
213 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
214 - eerror "or use gcc-config to select a different compiler version."
215 - eerror "See https://bugs.gentoo.org/549768"
216 - eerror
217 - return 1
218 - fi
219 - fi
220 - # bug #574044
221 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then
222 - ebegin "Checking for gcc-5-3 stack realignment compiler bug"
223 - # Compile in subshell to prevent "Aborted" message
224 - ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1
225 - if ! eend $?; then
226 - eerror "Wine cannot be built with this version of gcc-5.3"
227 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild,"
228 - eerror "or use gcc-config to select a different compiler version."
229 - eerror "See https://bugs.gentoo.org/574044"
230 - eerror
231 - return 1
232 - fi
233 - fi
234 - fi
235 -
236 # Ensure compiler support
237 - if use abi_x86_64; then
238 - ebegin "Checking for 64-bit compiler with builtin_ms_va_list support"
239 - # Compile in subshell to prevent "Aborted" message
240 - ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1)
241 - if ! eend $?; then
242 - eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine"
243 - eerror
244 - eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine"
245 - eerror
246 - return 1
247 - fi
248 - fi
249 + # (No checks here as of 2022)
250 + return 0
251 }
252
253 wine_build_environment_check() {
254 [[ ${MERGE_TYPE} = "binary" ]] && return 0
255
256 - if use abi_x86_64; then
257 - if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
258 - eerror "You need gcc-4.4+ to compile 64-bit wine"
259 - die
260 - elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
261 - eerror "You need clang-3.8+ to compile 64-bit wine"
262 - die
263 - fi
264 - fi
265 - if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
266 - ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
267 - ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
268 - ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
269 - fi
270 - if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then
271 - if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then
272 - ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work"
273 - ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine."
274 - ewarn "See package.env in man 5 portage for more information on how to do this."
275 - ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details"
276 - fi
277 - fi
278 -
279 if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
280 eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
281 eerror "See https://bugs.gentoo.org/487864 for more details."
282
283 diff --git a/app-emulation/wine-staging/wine-staging-7.8.ebuild b/app-emulation/wine-staging/wine-staging-7.8.ebuild
284 index a19da0c1d76d..c612384db05e 100644
285 --- a/app-emulation/wine-staging/wine-staging-7.8.ebuild
286 +++ b/app-emulation/wine-staging/wine-staging-7.8.ebuild
287 @@ -161,80 +161,14 @@ if [[ ${#PATCHES_BIN[@]} -ge 1 ]] || [[ ${MY_PV} == 9999 ]]; then
288 fi
289
290 wine_compiler_check() {
291 - # GCC-specific bugs
292 - if tc-is-gcc; then
293 - # bug #549768
294 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
295 - ebegin "Checking for gcc-5 ms_abi compiler bug"
296 - $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die
297 - # Run in subshell to prevent "Aborted" message
298 - ( "${T}"/pr66838 || false ) >/dev/null 2>&1
299 - if ! eend $?; then
300 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
301 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
302 - eerror "or use gcc-config to select a different compiler version."
303 - eerror "See https://bugs.gentoo.org/549768"
304 - eerror
305 - return 1
306 - fi
307 - fi
308 - # bug #574044
309 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then
310 - ebegin "Checking for gcc-5-3 stack realignment compiler bug"
311 - # Compile in subshell to prevent "Aborted" message
312 - ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1
313 - if ! eend $?; then
314 - eerror "Wine cannot be built with this version of gcc-5.3"
315 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild,"
316 - eerror "or use gcc-config to select a different compiler version."
317 - eerror "See https://bugs.gentoo.org/574044"
318 - eerror
319 - return 1
320 - fi
321 - fi
322 - fi
323 -
324 # Ensure compiler support
325 - if use abi_x86_64; then
326 - ebegin "Checking for 64-bit compiler with builtin_ms_va_list support"
327 - # Compile in subshell to prevent "Aborted" message
328 - ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1)
329 - if ! eend $?; then
330 - eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine"
331 - eerror
332 - eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine"
333 - eerror
334 - return 1
335 - fi
336 - fi
337 + # (No checks here as of 2022)
338 + return 0
339 }
340
341 wine_build_environment_check() {
342 [[ ${MERGE_TYPE} = "binary" ]] && return 0
343
344 - if use abi_x86_64; then
345 - if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
346 - eerror "You need gcc-4.4+ to compile 64-bit wine"
347 - die
348 - elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
349 - eerror "You need clang-3.8+ to compile 64-bit wine"
350 - die
351 - fi
352 - fi
353 - if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
354 - ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
355 - ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
356 - ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
357 - fi
358 - if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then
359 - if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then
360 - ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work"
361 - ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine."
362 - ewarn "See package.env in man 5 portage for more information on how to do this."
363 - ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details"
364 - fi
365 - fi
366 -
367 if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
368 eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
369 eerror "See https://bugs.gentoo.org/487864 for more details."
370
371 diff --git a/app-emulation/wine-staging/wine-staging-9999.ebuild b/app-emulation/wine-staging/wine-staging-9999.ebuild
372 index a19da0c1d76d..c612384db05e 100644
373 --- a/app-emulation/wine-staging/wine-staging-9999.ebuild
374 +++ b/app-emulation/wine-staging/wine-staging-9999.ebuild
375 @@ -161,80 +161,14 @@ if [[ ${#PATCHES_BIN[@]} -ge 1 ]] || [[ ${MY_PV} == 9999 ]]; then
376 fi
377
378 wine_compiler_check() {
379 - # GCC-specific bugs
380 - if tc-is-gcc; then
381 - # bug #549768
382 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then
383 - ebegin "Checking for gcc-5 ms_abi compiler bug"
384 - $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die
385 - # Run in subshell to prevent "Aborted" message
386 - ( "${T}"/pr66838 || false ) >/dev/null 2>&1
387 - if ! eend $?; then
388 - eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0"
389 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild,"
390 - eerror "or use gcc-config to select a different compiler version."
391 - eerror "See https://bugs.gentoo.org/549768"
392 - eerror
393 - return 1
394 - fi
395 - fi
396 - # bug #574044
397 - if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then
398 - ebegin "Checking for gcc-5-3 stack realignment compiler bug"
399 - # Compile in subshell to prevent "Aborted" message
400 - ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1
401 - if ! eend $?; then
402 - eerror "Wine cannot be built with this version of gcc-5.3"
403 - eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild,"
404 - eerror "or use gcc-config to select a different compiler version."
405 - eerror "See https://bugs.gentoo.org/574044"
406 - eerror
407 - return 1
408 - fi
409 - fi
410 - fi
411 -
412 # Ensure compiler support
413 - if use abi_x86_64; then
414 - ebegin "Checking for 64-bit compiler with builtin_ms_va_list support"
415 - # Compile in subshell to prevent "Aborted" message
416 - ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1)
417 - if ! eend $?; then
418 - eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine"
419 - eerror
420 - eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine"
421 - eerror
422 - return 1
423 - fi
424 - fi
425 + # (No checks here as of 2022)
426 + return 0
427 }
428
429 wine_build_environment_check() {
430 [[ ${MERGE_TYPE} = "binary" ]] && return 0
431
432 - if use abi_x86_64; then
433 - if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then
434 - eerror "You need gcc-4.4+ to compile 64-bit wine"
435 - die
436 - elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then
437 - eerror "You need clang-3.8+ to compile 64-bit wine"
438 - die
439 - fi
440 - fi
441 - if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then
442 - ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by"
443 - ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in"
444 - ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4"
445 - fi
446 - if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then
447 - if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then
448 - ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work"
449 - ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine."
450 - ewarn "See package.env in man 5 portage for more information on how to do this."
451 - ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details"
452 - fi
453 - fi
454 -
455 if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then
456 eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
457 eerror "See https://bugs.gentoo.org/487864 for more details."