1 |
commit: f622a69383df88c81790f2b96fb2b0e13bfc7b02 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 17 03:42:25 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 17 03:42:25 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/wine.git/commit/?id=f622a693 |
7 |
|
8 |
app-emulation/wine-any: [QA] drop (very) stale GCC version checks |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
app-emulation/wine-any/wine-any-2.0-r1.ebuild | 70 +------------------------- |
13 |
app-emulation/wine-any/wine-any-2.1-r1.ebuild | 70 +------------------------- |
14 |
app-emulation/wine-any/wine-any-2.10-r1.ebuild | 70 +------------------------- |
15 |
app-emulation/wine-any/wine-any-2.11-r1.ebuild | 70 +------------------------- |
16 |
app-emulation/wine-any/wine-any-2.12-r1.ebuild | 70 +------------------------- |
17 |
app-emulation/wine-any/wine-any-2.13-r1.ebuild | 70 +------------------------- |
18 |
app-emulation/wine-any/wine-any-2.14-r1.ebuild | 70 +------------------------- |
19 |
app-emulation/wine-any/wine-any-2.15-r1.ebuild | 70 +------------------------- |
20 |
app-emulation/wine-any/wine-any-2.16-r1.ebuild | 70 +------------------------- |
21 |
app-emulation/wine-any/wine-any-2.17-r1.ebuild | 70 +------------------------- |
22 |
app-emulation/wine-any/wine-any-2.18.ebuild | 70 +------------------------- |
23 |
app-emulation/wine-any/wine-any-2.19.ebuild | 70 +------------------------- |
24 |
app-emulation/wine-any/wine-any-2.2-r1.ebuild | 70 +------------------------- |
25 |
app-emulation/wine-any/wine-any-2.20.ebuild | 70 +------------------------- |
26 |
app-emulation/wine-any/wine-any-2.21.ebuild | 70 +------------------------- |
27 |
app-emulation/wine-any/wine-any-2.3-r1.ebuild | 70 +------------------------- |
28 |
app-emulation/wine-any/wine-any-2.4-r1.ebuild | 70 +------------------------- |
29 |
app-emulation/wine-any/wine-any-2.5-r1.ebuild | 70 +------------------------- |
30 |
app-emulation/wine-any/wine-any-2.6-r1.ebuild | 70 +------------------------- |
31 |
app-emulation/wine-any/wine-any-2.7-r1.ebuild | 70 +------------------------- |
32 |
app-emulation/wine-any/wine-any-2.8-r1.ebuild | 70 +------------------------- |
33 |
app-emulation/wine-any/wine-any-2.9-r1.ebuild | 70 +------------------------- |
34 |
app-emulation/wine-any/wine-any-3.10.ebuild | 70 +------------------------- |
35 |
app-emulation/wine-any/wine-any-3.11.ebuild | 70 +------------------------- |
36 |
app-emulation/wine-any/wine-any-3.12.ebuild | 70 +------------------------- |
37 |
app-emulation/wine-any/wine-any-3.13-r1.ebuild | 70 +------------------------- |
38 |
app-emulation/wine-any/wine-any-3.13.ebuild | 70 +------------------------- |
39 |
app-emulation/wine-any/wine-any-3.14.ebuild | 70 +------------------------- |
40 |
app-emulation/wine-any/wine-any-3.15.ebuild | 70 +------------------------- |
41 |
app-emulation/wine-any/wine-any-3.16.ebuild | 70 +------------------------- |
42 |
app-emulation/wine-any/wine-any-3.17.ebuild | 70 +------------------------- |
43 |
app-emulation/wine-any/wine-any-3.18.ebuild | 70 +------------------------- |
44 |
app-emulation/wine-any/wine-any-3.19.ebuild | 70 +------------------------- |
45 |
app-emulation/wine-any/wine-any-3.20.ebuild | 70 +------------------------- |
46 |
app-emulation/wine-any/wine-any-3.21.ebuild | 70 +------------------------- |
47 |
app-emulation/wine-any/wine-any-3.3.ebuild | 70 +------------------------- |
48 |
app-emulation/wine-any/wine-any-3.4.ebuild | 70 +------------------------- |
49 |
app-emulation/wine-any/wine-any-3.5.ebuild | 70 +------------------------- |
50 |
app-emulation/wine-any/wine-any-3.6.ebuild | 70 +------------------------- |
51 |
app-emulation/wine-any/wine-any-3.7.ebuild | 70 +------------------------- |
52 |
app-emulation/wine-any/wine-any-3.8.ebuild | 70 +------------------------- |
53 |
app-emulation/wine-any/wine-any-3.9.ebuild | 70 +------------------------- |
54 |
app-emulation/wine-any/wine-any-4.0.ebuild | 70 +------------------------- |
55 |
app-emulation/wine-any/wine-any-4.1.ebuild | 70 +------------------------- |
56 |
app-emulation/wine-any/wine-any-9999.ebuild | 70 +------------------------- |
57 |
45 files changed, 90 insertions(+), 3060 deletions(-) |
58 |
|
59 |
diff --git a/app-emulation/wine-any/wine-any-2.0-r1.ebuild b/app-emulation/wine-any/wine-any-2.0-r1.ebuild |
60 |
index 9fe4444..e6fb12a 100644 |
61 |
--- a/app-emulation/wine-any/wine-any-2.0-r1.ebuild |
62 |
+++ b/app-emulation/wine-any/wine-any-2.0-r1.ebuild |
63 |
@@ -186,80 +186,14 @@ fi |
64 |
wine_compiler_check() { |
65 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
66 |
|
67 |
- # GCC-specific bugs |
68 |
- if tc-is-gcc; then |
69 |
- # bug #549768 |
70 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
71 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
72 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
73 |
- # Run in subshell to prevent "Aborted" message |
74 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
75 |
- if ! eend $?; then |
76 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
77 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
78 |
- eerror "or use gcc-config to select a different compiler version." |
79 |
- eerror "See https://bugs.gentoo.org/549768" |
80 |
- eerror |
81 |
- return 1 |
82 |
- fi |
83 |
- fi |
84 |
- # bug #574044 |
85 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
86 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
87 |
- # Compile in subshell to prevent "Aborted" message |
88 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
89 |
- if ! eend $?; then |
90 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
91 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
92 |
- eerror "or use gcc-config to select a different compiler version." |
93 |
- eerror "See https://bugs.gentoo.org/574044" |
94 |
- eerror |
95 |
- return 1 |
96 |
- fi |
97 |
- fi |
98 |
- fi |
99 |
- |
100 |
# Ensure compiler support |
101 |
- if use abi_x86_64; then |
102 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
103 |
- # Compile in subshell to prevent "Aborted" message |
104 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
105 |
- if ! eend $?; then |
106 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
107 |
- eerror |
108 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
109 |
- eerror |
110 |
- return 1 |
111 |
- fi |
112 |
- fi |
113 |
+ # (No checks here as of 2022) |
114 |
+ return 0 |
115 |
} |
116 |
|
117 |
wine_build_environment_check() { |
118 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
119 |
|
120 |
- if use abi_x86_64; then |
121 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
122 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
123 |
- die |
124 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
125 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
126 |
- die |
127 |
- fi |
128 |
- fi |
129 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
130 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
131 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
132 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
133 |
- fi |
134 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
135 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
136 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
137 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
138 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
139 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
140 |
- fi |
141 |
- fi |
142 |
- |
143 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
144 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
145 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
146 |
|
147 |
diff --git a/app-emulation/wine-any/wine-any-2.1-r1.ebuild b/app-emulation/wine-any/wine-any-2.1-r1.ebuild |
148 |
index 492730f..a625ea7 100644 |
149 |
--- a/app-emulation/wine-any/wine-any-2.1-r1.ebuild |
150 |
+++ b/app-emulation/wine-any/wine-any-2.1-r1.ebuild |
151 |
@@ -186,80 +186,14 @@ fi |
152 |
wine_compiler_check() { |
153 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
154 |
|
155 |
- # GCC-specific bugs |
156 |
- if tc-is-gcc; then |
157 |
- # bug #549768 |
158 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
159 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
160 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
161 |
- # Run in subshell to prevent "Aborted" message |
162 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
163 |
- if ! eend $?; then |
164 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
165 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
166 |
- eerror "or use gcc-config to select a different compiler version." |
167 |
- eerror "See https://bugs.gentoo.org/549768" |
168 |
- eerror |
169 |
- return 1 |
170 |
- fi |
171 |
- fi |
172 |
- # bug #574044 |
173 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
174 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
175 |
- # Compile in subshell to prevent "Aborted" message |
176 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
177 |
- if ! eend $?; then |
178 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
179 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
180 |
- eerror "or use gcc-config to select a different compiler version." |
181 |
- eerror "See https://bugs.gentoo.org/574044" |
182 |
- eerror |
183 |
- return 1 |
184 |
- fi |
185 |
- fi |
186 |
- fi |
187 |
- |
188 |
# Ensure compiler support |
189 |
- if use abi_x86_64; then |
190 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
191 |
- # Compile in subshell to prevent "Aborted" message |
192 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
193 |
- if ! eend $?; then |
194 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
195 |
- eerror |
196 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
197 |
- eerror |
198 |
- return 1 |
199 |
- fi |
200 |
- fi |
201 |
+ # (No checks here as of 2022) |
202 |
+ return 0 |
203 |
} |
204 |
|
205 |
wine_build_environment_check() { |
206 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
207 |
|
208 |
- if use abi_x86_64; then |
209 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
210 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
211 |
- die |
212 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
213 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
214 |
- die |
215 |
- fi |
216 |
- fi |
217 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
218 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
219 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
220 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
221 |
- fi |
222 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
223 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
224 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
225 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
226 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
227 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
228 |
- fi |
229 |
- fi |
230 |
- |
231 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
232 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
233 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
234 |
|
235 |
diff --git a/app-emulation/wine-any/wine-any-2.10-r1.ebuild b/app-emulation/wine-any/wine-any-2.10-r1.ebuild |
236 |
index 8fbaa2a..fd63f35 100644 |
237 |
--- a/app-emulation/wine-any/wine-any-2.10-r1.ebuild |
238 |
+++ b/app-emulation/wine-any/wine-any-2.10-r1.ebuild |
239 |
@@ -187,80 +187,14 @@ fi |
240 |
wine_compiler_check() { |
241 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
242 |
|
243 |
- # GCC-specific bugs |
244 |
- if tc-is-gcc; then |
245 |
- # bug #549768 |
246 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
247 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
248 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
249 |
- # Run in subshell to prevent "Aborted" message |
250 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
251 |
- if ! eend $?; then |
252 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
253 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
254 |
- eerror "or use gcc-config to select a different compiler version." |
255 |
- eerror "See https://bugs.gentoo.org/549768" |
256 |
- eerror |
257 |
- return 1 |
258 |
- fi |
259 |
- fi |
260 |
- # bug #574044 |
261 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
262 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
263 |
- # Compile in subshell to prevent "Aborted" message |
264 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
265 |
- if ! eend $?; then |
266 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
267 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
268 |
- eerror "or use gcc-config to select a different compiler version." |
269 |
- eerror "See https://bugs.gentoo.org/574044" |
270 |
- eerror |
271 |
- return 1 |
272 |
- fi |
273 |
- fi |
274 |
- fi |
275 |
- |
276 |
# Ensure compiler support |
277 |
- if use abi_x86_64; then |
278 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
279 |
- # Compile in subshell to prevent "Aborted" message |
280 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
281 |
- if ! eend $?; then |
282 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
283 |
- eerror |
284 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
285 |
- eerror |
286 |
- return 1 |
287 |
- fi |
288 |
- fi |
289 |
+ # (No checks here as of 2022) |
290 |
+ return 0 |
291 |
} |
292 |
|
293 |
wine_build_environment_check() { |
294 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
295 |
|
296 |
- if use abi_x86_64; then |
297 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
298 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
299 |
- die |
300 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
301 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
302 |
- die |
303 |
- fi |
304 |
- fi |
305 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
306 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
307 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
308 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
309 |
- fi |
310 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
311 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
312 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
313 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
314 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
315 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
316 |
- fi |
317 |
- fi |
318 |
- |
319 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
320 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
321 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
322 |
|
323 |
diff --git a/app-emulation/wine-any/wine-any-2.11-r1.ebuild b/app-emulation/wine-any/wine-any-2.11-r1.ebuild |
324 |
index 8fbaa2a..fd63f35 100644 |
325 |
--- a/app-emulation/wine-any/wine-any-2.11-r1.ebuild |
326 |
+++ b/app-emulation/wine-any/wine-any-2.11-r1.ebuild |
327 |
@@ -187,80 +187,14 @@ fi |
328 |
wine_compiler_check() { |
329 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
330 |
|
331 |
- # GCC-specific bugs |
332 |
- if tc-is-gcc; then |
333 |
- # bug #549768 |
334 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
335 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
336 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
337 |
- # Run in subshell to prevent "Aborted" message |
338 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
339 |
- if ! eend $?; then |
340 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
341 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
342 |
- eerror "or use gcc-config to select a different compiler version." |
343 |
- eerror "See https://bugs.gentoo.org/549768" |
344 |
- eerror |
345 |
- return 1 |
346 |
- fi |
347 |
- fi |
348 |
- # bug #574044 |
349 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
350 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
351 |
- # Compile in subshell to prevent "Aborted" message |
352 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
353 |
- if ! eend $?; then |
354 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
355 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
356 |
- eerror "or use gcc-config to select a different compiler version." |
357 |
- eerror "See https://bugs.gentoo.org/574044" |
358 |
- eerror |
359 |
- return 1 |
360 |
- fi |
361 |
- fi |
362 |
- fi |
363 |
- |
364 |
# Ensure compiler support |
365 |
- if use abi_x86_64; then |
366 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
367 |
- # Compile in subshell to prevent "Aborted" message |
368 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
369 |
- if ! eend $?; then |
370 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
371 |
- eerror |
372 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
373 |
- eerror |
374 |
- return 1 |
375 |
- fi |
376 |
- fi |
377 |
+ # (No checks here as of 2022) |
378 |
+ return 0 |
379 |
} |
380 |
|
381 |
wine_build_environment_check() { |
382 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
383 |
|
384 |
- if use abi_x86_64; then |
385 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
386 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
387 |
- die |
388 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
389 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
390 |
- die |
391 |
- fi |
392 |
- fi |
393 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
394 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
395 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
396 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
397 |
- fi |
398 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
399 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
400 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
401 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
402 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
403 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
404 |
- fi |
405 |
- fi |
406 |
- |
407 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
408 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
409 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
410 |
|
411 |
diff --git a/app-emulation/wine-any/wine-any-2.12-r1.ebuild b/app-emulation/wine-any/wine-any-2.12-r1.ebuild |
412 |
index 8fbaa2a..fd63f35 100644 |
413 |
--- a/app-emulation/wine-any/wine-any-2.12-r1.ebuild |
414 |
+++ b/app-emulation/wine-any/wine-any-2.12-r1.ebuild |
415 |
@@ -187,80 +187,14 @@ fi |
416 |
wine_compiler_check() { |
417 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
418 |
|
419 |
- # GCC-specific bugs |
420 |
- if tc-is-gcc; then |
421 |
- # bug #549768 |
422 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
423 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
424 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
425 |
- # Run in subshell to prevent "Aborted" message |
426 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
427 |
- if ! eend $?; then |
428 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
429 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
430 |
- eerror "or use gcc-config to select a different compiler version." |
431 |
- eerror "See https://bugs.gentoo.org/549768" |
432 |
- eerror |
433 |
- return 1 |
434 |
- fi |
435 |
- fi |
436 |
- # bug #574044 |
437 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
438 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
439 |
- # Compile in subshell to prevent "Aborted" message |
440 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
441 |
- if ! eend $?; then |
442 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
443 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
444 |
- eerror "or use gcc-config to select a different compiler version." |
445 |
- eerror "See https://bugs.gentoo.org/574044" |
446 |
- eerror |
447 |
- return 1 |
448 |
- fi |
449 |
- fi |
450 |
- fi |
451 |
- |
452 |
# Ensure compiler support |
453 |
- if use abi_x86_64; then |
454 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
455 |
- # Compile in subshell to prevent "Aborted" message |
456 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
457 |
- if ! eend $?; then |
458 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
459 |
- eerror |
460 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
461 |
- eerror |
462 |
- return 1 |
463 |
- fi |
464 |
- fi |
465 |
+ # (No checks here as of 2022) |
466 |
+ return 0 |
467 |
} |
468 |
|
469 |
wine_build_environment_check() { |
470 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
471 |
|
472 |
- if use abi_x86_64; then |
473 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
474 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
475 |
- die |
476 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
477 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
478 |
- die |
479 |
- fi |
480 |
- fi |
481 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
482 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
483 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
484 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
485 |
- fi |
486 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
487 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
488 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
489 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
490 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
491 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
492 |
- fi |
493 |
- fi |
494 |
- |
495 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
496 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
497 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
498 |
|
499 |
diff --git a/app-emulation/wine-any/wine-any-2.13-r1.ebuild b/app-emulation/wine-any/wine-any-2.13-r1.ebuild |
500 |
index 8fbaa2a..fd63f35 100644 |
501 |
--- a/app-emulation/wine-any/wine-any-2.13-r1.ebuild |
502 |
+++ b/app-emulation/wine-any/wine-any-2.13-r1.ebuild |
503 |
@@ -187,80 +187,14 @@ fi |
504 |
wine_compiler_check() { |
505 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
506 |
|
507 |
- # GCC-specific bugs |
508 |
- if tc-is-gcc; then |
509 |
- # bug #549768 |
510 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
511 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
512 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
513 |
- # Run in subshell to prevent "Aborted" message |
514 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
515 |
- if ! eend $?; then |
516 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
517 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
518 |
- eerror "or use gcc-config to select a different compiler version." |
519 |
- eerror "See https://bugs.gentoo.org/549768" |
520 |
- eerror |
521 |
- return 1 |
522 |
- fi |
523 |
- fi |
524 |
- # bug #574044 |
525 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
526 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
527 |
- # Compile in subshell to prevent "Aborted" message |
528 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
529 |
- if ! eend $?; then |
530 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
531 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
532 |
- eerror "or use gcc-config to select a different compiler version." |
533 |
- eerror "See https://bugs.gentoo.org/574044" |
534 |
- eerror |
535 |
- return 1 |
536 |
- fi |
537 |
- fi |
538 |
- fi |
539 |
- |
540 |
# Ensure compiler support |
541 |
- if use abi_x86_64; then |
542 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
543 |
- # Compile in subshell to prevent "Aborted" message |
544 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
545 |
- if ! eend $?; then |
546 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
547 |
- eerror |
548 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
549 |
- eerror |
550 |
- return 1 |
551 |
- fi |
552 |
- fi |
553 |
+ # (No checks here as of 2022) |
554 |
+ return 0 |
555 |
} |
556 |
|
557 |
wine_build_environment_check() { |
558 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
559 |
|
560 |
- if use abi_x86_64; then |
561 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
562 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
563 |
- die |
564 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
565 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
566 |
- die |
567 |
- fi |
568 |
- fi |
569 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
570 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
571 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
572 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
573 |
- fi |
574 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
575 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
576 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
577 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
578 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
579 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
580 |
- fi |
581 |
- fi |
582 |
- |
583 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
584 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
585 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
586 |
|
587 |
diff --git a/app-emulation/wine-any/wine-any-2.14-r1.ebuild b/app-emulation/wine-any/wine-any-2.14-r1.ebuild |
588 |
index 6992b83..66e9ea7 100644 |
589 |
--- a/app-emulation/wine-any/wine-any-2.14-r1.ebuild |
590 |
+++ b/app-emulation/wine-any/wine-any-2.14-r1.ebuild |
591 |
@@ -187,80 +187,14 @@ fi |
592 |
wine_compiler_check() { |
593 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
594 |
|
595 |
- # GCC-specific bugs |
596 |
- if tc-is-gcc; then |
597 |
- # bug #549768 |
598 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
599 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
600 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
601 |
- # Run in subshell to prevent "Aborted" message |
602 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
603 |
- if ! eend $?; then |
604 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
605 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
606 |
- eerror "or use gcc-config to select a different compiler version." |
607 |
- eerror "See https://bugs.gentoo.org/549768" |
608 |
- eerror |
609 |
- return 1 |
610 |
- fi |
611 |
- fi |
612 |
- # bug #574044 |
613 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
614 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
615 |
- # Compile in subshell to prevent "Aborted" message |
616 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
617 |
- if ! eend $?; then |
618 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
619 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
620 |
- eerror "or use gcc-config to select a different compiler version." |
621 |
- eerror "See https://bugs.gentoo.org/574044" |
622 |
- eerror |
623 |
- return 1 |
624 |
- fi |
625 |
- fi |
626 |
- fi |
627 |
- |
628 |
# Ensure compiler support |
629 |
- if use abi_x86_64; then |
630 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
631 |
- # Compile in subshell to prevent "Aborted" message |
632 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
633 |
- if ! eend $?; then |
634 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
635 |
- eerror |
636 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
637 |
- eerror |
638 |
- return 1 |
639 |
- fi |
640 |
- fi |
641 |
+ # (No checks here as of 2022) |
642 |
+ return 0 |
643 |
} |
644 |
|
645 |
wine_build_environment_check() { |
646 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
647 |
|
648 |
- if use abi_x86_64; then |
649 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
650 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
651 |
- die |
652 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
653 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
654 |
- die |
655 |
- fi |
656 |
- fi |
657 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
658 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
659 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
660 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
661 |
- fi |
662 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
663 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
664 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
665 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
666 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
667 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
668 |
- fi |
669 |
- fi |
670 |
- |
671 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
672 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
673 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
674 |
|
675 |
diff --git a/app-emulation/wine-any/wine-any-2.15-r1.ebuild b/app-emulation/wine-any/wine-any-2.15-r1.ebuild |
676 |
index 6992b83..66e9ea7 100644 |
677 |
--- a/app-emulation/wine-any/wine-any-2.15-r1.ebuild |
678 |
+++ b/app-emulation/wine-any/wine-any-2.15-r1.ebuild |
679 |
@@ -187,80 +187,14 @@ fi |
680 |
wine_compiler_check() { |
681 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
682 |
|
683 |
- # GCC-specific bugs |
684 |
- if tc-is-gcc; then |
685 |
- # bug #549768 |
686 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
687 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
688 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
689 |
- # Run in subshell to prevent "Aborted" message |
690 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
691 |
- if ! eend $?; then |
692 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
693 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
694 |
- eerror "or use gcc-config to select a different compiler version." |
695 |
- eerror "See https://bugs.gentoo.org/549768" |
696 |
- eerror |
697 |
- return 1 |
698 |
- fi |
699 |
- fi |
700 |
- # bug #574044 |
701 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
702 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
703 |
- # Compile in subshell to prevent "Aborted" message |
704 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
705 |
- if ! eend $?; then |
706 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
707 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
708 |
- eerror "or use gcc-config to select a different compiler version." |
709 |
- eerror "See https://bugs.gentoo.org/574044" |
710 |
- eerror |
711 |
- return 1 |
712 |
- fi |
713 |
- fi |
714 |
- fi |
715 |
- |
716 |
# Ensure compiler support |
717 |
- if use abi_x86_64; then |
718 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
719 |
- # Compile in subshell to prevent "Aborted" message |
720 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
721 |
- if ! eend $?; then |
722 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
723 |
- eerror |
724 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
725 |
- eerror |
726 |
- return 1 |
727 |
- fi |
728 |
- fi |
729 |
+ # (No checks here as of 2022) |
730 |
+ return 0 |
731 |
} |
732 |
|
733 |
wine_build_environment_check() { |
734 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
735 |
|
736 |
- if use abi_x86_64; then |
737 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
738 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
739 |
- die |
740 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
741 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
742 |
- die |
743 |
- fi |
744 |
- fi |
745 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
746 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
747 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
748 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
749 |
- fi |
750 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
751 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
752 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
753 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
754 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
755 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
756 |
- fi |
757 |
- fi |
758 |
- |
759 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
760 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
761 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
762 |
|
763 |
diff --git a/app-emulation/wine-any/wine-any-2.16-r1.ebuild b/app-emulation/wine-any/wine-any-2.16-r1.ebuild |
764 |
index 6992b83..66e9ea7 100644 |
765 |
--- a/app-emulation/wine-any/wine-any-2.16-r1.ebuild |
766 |
+++ b/app-emulation/wine-any/wine-any-2.16-r1.ebuild |
767 |
@@ -187,80 +187,14 @@ fi |
768 |
wine_compiler_check() { |
769 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
770 |
|
771 |
- # GCC-specific bugs |
772 |
- if tc-is-gcc; then |
773 |
- # bug #549768 |
774 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
775 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
776 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
777 |
- # Run in subshell to prevent "Aborted" message |
778 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
779 |
- if ! eend $?; then |
780 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
781 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
782 |
- eerror "or use gcc-config to select a different compiler version." |
783 |
- eerror "See https://bugs.gentoo.org/549768" |
784 |
- eerror |
785 |
- return 1 |
786 |
- fi |
787 |
- fi |
788 |
- # bug #574044 |
789 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
790 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
791 |
- # Compile in subshell to prevent "Aborted" message |
792 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
793 |
- if ! eend $?; then |
794 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
795 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
796 |
- eerror "or use gcc-config to select a different compiler version." |
797 |
- eerror "See https://bugs.gentoo.org/574044" |
798 |
- eerror |
799 |
- return 1 |
800 |
- fi |
801 |
- fi |
802 |
- fi |
803 |
- |
804 |
# Ensure compiler support |
805 |
- if use abi_x86_64; then |
806 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
807 |
- # Compile in subshell to prevent "Aborted" message |
808 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
809 |
- if ! eend $?; then |
810 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
811 |
- eerror |
812 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
813 |
- eerror |
814 |
- return 1 |
815 |
- fi |
816 |
- fi |
817 |
+ # (No checks here as of 2022) |
818 |
+ return 0 |
819 |
} |
820 |
|
821 |
wine_build_environment_check() { |
822 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
823 |
|
824 |
- if use abi_x86_64; then |
825 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
826 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
827 |
- die |
828 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
829 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
830 |
- die |
831 |
- fi |
832 |
- fi |
833 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
834 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
835 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
836 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
837 |
- fi |
838 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
839 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
840 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
841 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
842 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
843 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
844 |
- fi |
845 |
- fi |
846 |
- |
847 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
848 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
849 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
850 |
|
851 |
diff --git a/app-emulation/wine-any/wine-any-2.17-r1.ebuild b/app-emulation/wine-any/wine-any-2.17-r1.ebuild |
852 |
index 6992b83..66e9ea7 100644 |
853 |
--- a/app-emulation/wine-any/wine-any-2.17-r1.ebuild |
854 |
+++ b/app-emulation/wine-any/wine-any-2.17-r1.ebuild |
855 |
@@ -187,80 +187,14 @@ fi |
856 |
wine_compiler_check() { |
857 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
858 |
|
859 |
- # GCC-specific bugs |
860 |
- if tc-is-gcc; then |
861 |
- # bug #549768 |
862 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
863 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
864 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
865 |
- # Run in subshell to prevent "Aborted" message |
866 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
867 |
- if ! eend $?; then |
868 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
869 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
870 |
- eerror "or use gcc-config to select a different compiler version." |
871 |
- eerror "See https://bugs.gentoo.org/549768" |
872 |
- eerror |
873 |
- return 1 |
874 |
- fi |
875 |
- fi |
876 |
- # bug #574044 |
877 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
878 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
879 |
- # Compile in subshell to prevent "Aborted" message |
880 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
881 |
- if ! eend $?; then |
882 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
883 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
884 |
- eerror "or use gcc-config to select a different compiler version." |
885 |
- eerror "See https://bugs.gentoo.org/574044" |
886 |
- eerror |
887 |
- return 1 |
888 |
- fi |
889 |
- fi |
890 |
- fi |
891 |
- |
892 |
# Ensure compiler support |
893 |
- if use abi_x86_64; then |
894 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
895 |
- # Compile in subshell to prevent "Aborted" message |
896 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
897 |
- if ! eend $?; then |
898 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
899 |
- eerror |
900 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
901 |
- eerror |
902 |
- return 1 |
903 |
- fi |
904 |
- fi |
905 |
+ # (No checks here as of 2022) |
906 |
+ return 0 |
907 |
} |
908 |
|
909 |
wine_build_environment_check() { |
910 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
911 |
|
912 |
- if use abi_x86_64; then |
913 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
914 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
915 |
- die |
916 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
917 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
918 |
- die |
919 |
- fi |
920 |
- fi |
921 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
922 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
923 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
924 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
925 |
- fi |
926 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
927 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
928 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
929 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
930 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
931 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
932 |
- fi |
933 |
- fi |
934 |
- |
935 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
936 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
937 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
938 |
|
939 |
diff --git a/app-emulation/wine-any/wine-any-2.18.ebuild b/app-emulation/wine-any/wine-any-2.18.ebuild |
940 |
index cc31299..d06800b 100644 |
941 |
--- a/app-emulation/wine-any/wine-any-2.18.ebuild |
942 |
+++ b/app-emulation/wine-any/wine-any-2.18.ebuild |
943 |
@@ -183,80 +183,14 @@ fi |
944 |
wine_compiler_check() { |
945 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
946 |
|
947 |
- # GCC-specific bugs |
948 |
- if tc-is-gcc; then |
949 |
- # bug #549768 |
950 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
951 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
952 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
953 |
- # Run in subshell to prevent "Aborted" message |
954 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
955 |
- if ! eend $?; then |
956 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
957 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
958 |
- eerror "or use gcc-config to select a different compiler version." |
959 |
- eerror "See https://bugs.gentoo.org/549768" |
960 |
- eerror |
961 |
- return 1 |
962 |
- fi |
963 |
- fi |
964 |
- # bug #574044 |
965 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
966 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
967 |
- # Compile in subshell to prevent "Aborted" message |
968 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
969 |
- if ! eend $?; then |
970 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
971 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
972 |
- eerror "or use gcc-config to select a different compiler version." |
973 |
- eerror "See https://bugs.gentoo.org/574044" |
974 |
- eerror |
975 |
- return 1 |
976 |
- fi |
977 |
- fi |
978 |
- fi |
979 |
- |
980 |
# Ensure compiler support |
981 |
- if use abi_x86_64; then |
982 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
983 |
- # Compile in subshell to prevent "Aborted" message |
984 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
985 |
- if ! eend $?; then |
986 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
987 |
- eerror |
988 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
989 |
- eerror |
990 |
- return 1 |
991 |
- fi |
992 |
- fi |
993 |
+ # (No checks here as of 2022) |
994 |
+ return 0 |
995 |
} |
996 |
|
997 |
wine_build_environment_check() { |
998 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
999 |
|
1000 |
- if use abi_x86_64; then |
1001 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
1002 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
1003 |
- die |
1004 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
1005 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
1006 |
- die |
1007 |
- fi |
1008 |
- fi |
1009 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
1010 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
1011 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
1012 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
1013 |
- fi |
1014 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
1015 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
1016 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
1017 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
1018 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
1019 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
1020 |
- fi |
1021 |
- fi |
1022 |
- |
1023 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
1024 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
1025 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
1026 |
|
1027 |
diff --git a/app-emulation/wine-any/wine-any-2.19.ebuild b/app-emulation/wine-any/wine-any-2.19.ebuild |
1028 |
index cc31299..d06800b 100644 |
1029 |
--- a/app-emulation/wine-any/wine-any-2.19.ebuild |
1030 |
+++ b/app-emulation/wine-any/wine-any-2.19.ebuild |
1031 |
@@ -183,80 +183,14 @@ fi |
1032 |
wine_compiler_check() { |
1033 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1034 |
|
1035 |
- # GCC-specific bugs |
1036 |
- if tc-is-gcc; then |
1037 |
- # bug #549768 |
1038 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
1039 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
1040 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
1041 |
- # Run in subshell to prevent "Aborted" message |
1042 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
1043 |
- if ! eend $?; then |
1044 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
1045 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
1046 |
- eerror "or use gcc-config to select a different compiler version." |
1047 |
- eerror "See https://bugs.gentoo.org/549768" |
1048 |
- eerror |
1049 |
- return 1 |
1050 |
- fi |
1051 |
- fi |
1052 |
- # bug #574044 |
1053 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
1054 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
1055 |
- # Compile in subshell to prevent "Aborted" message |
1056 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
1057 |
- if ! eend $?; then |
1058 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
1059 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
1060 |
- eerror "or use gcc-config to select a different compiler version." |
1061 |
- eerror "See https://bugs.gentoo.org/574044" |
1062 |
- eerror |
1063 |
- return 1 |
1064 |
- fi |
1065 |
- fi |
1066 |
- fi |
1067 |
- |
1068 |
# Ensure compiler support |
1069 |
- if use abi_x86_64; then |
1070 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
1071 |
- # Compile in subshell to prevent "Aborted" message |
1072 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
1073 |
- if ! eend $?; then |
1074 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
1075 |
- eerror |
1076 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
1077 |
- eerror |
1078 |
- return 1 |
1079 |
- fi |
1080 |
- fi |
1081 |
+ # (No checks here as of 2022) |
1082 |
+ return 0 |
1083 |
} |
1084 |
|
1085 |
wine_build_environment_check() { |
1086 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1087 |
|
1088 |
- if use abi_x86_64; then |
1089 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
1090 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
1091 |
- die |
1092 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
1093 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
1094 |
- die |
1095 |
- fi |
1096 |
- fi |
1097 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
1098 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
1099 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
1100 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
1101 |
- fi |
1102 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
1103 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
1104 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
1105 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
1106 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
1107 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
1108 |
- fi |
1109 |
- fi |
1110 |
- |
1111 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
1112 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
1113 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
1114 |
|
1115 |
diff --git a/app-emulation/wine-any/wine-any-2.2-r1.ebuild b/app-emulation/wine-any/wine-any-2.2-r1.ebuild |
1116 |
index fa70ebb..89b69c4 100644 |
1117 |
--- a/app-emulation/wine-any/wine-any-2.2-r1.ebuild |
1118 |
+++ b/app-emulation/wine-any/wine-any-2.2-r1.ebuild |
1119 |
@@ -202,80 +202,14 @@ fi |
1120 |
wine_compiler_check() { |
1121 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1122 |
|
1123 |
- # GCC-specific bugs |
1124 |
- if tc-is-gcc; then |
1125 |
- # bug #549768 |
1126 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
1127 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
1128 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
1129 |
- # Run in subshell to prevent "Aborted" message |
1130 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
1131 |
- if ! eend $?; then |
1132 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
1133 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
1134 |
- eerror "or use gcc-config to select a different compiler version." |
1135 |
- eerror "See https://bugs.gentoo.org/549768" |
1136 |
- eerror |
1137 |
- return 1 |
1138 |
- fi |
1139 |
- fi |
1140 |
- # bug #574044 |
1141 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
1142 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
1143 |
- # Compile in subshell to prevent "Aborted" message |
1144 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
1145 |
- if ! eend $?; then |
1146 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
1147 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
1148 |
- eerror "or use gcc-config to select a different compiler version." |
1149 |
- eerror "See https://bugs.gentoo.org/574044" |
1150 |
- eerror |
1151 |
- return 1 |
1152 |
- fi |
1153 |
- fi |
1154 |
- fi |
1155 |
- |
1156 |
# Ensure compiler support |
1157 |
- if use abi_x86_64; then |
1158 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
1159 |
- # Compile in subshell to prevent "Aborted" message |
1160 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
1161 |
- if ! eend $?; then |
1162 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
1163 |
- eerror |
1164 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
1165 |
- eerror |
1166 |
- return 1 |
1167 |
- fi |
1168 |
- fi |
1169 |
+ # (No checks here as of 2022) |
1170 |
+ return 0 |
1171 |
} |
1172 |
|
1173 |
wine_build_environment_check() { |
1174 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1175 |
|
1176 |
- if use abi_x86_64; then |
1177 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
1178 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
1179 |
- die |
1180 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
1181 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
1182 |
- die |
1183 |
- fi |
1184 |
- fi |
1185 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
1186 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
1187 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
1188 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
1189 |
- fi |
1190 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
1191 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
1192 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
1193 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
1194 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
1195 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
1196 |
- fi |
1197 |
- fi |
1198 |
- |
1199 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
1200 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
1201 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
1202 |
|
1203 |
diff --git a/app-emulation/wine-any/wine-any-2.20.ebuild b/app-emulation/wine-any/wine-any-2.20.ebuild |
1204 |
index 99feab6..633d844 100644 |
1205 |
--- a/app-emulation/wine-any/wine-any-2.20.ebuild |
1206 |
+++ b/app-emulation/wine-any/wine-any-2.20.ebuild |
1207 |
@@ -184,80 +184,14 @@ fi |
1208 |
wine_compiler_check() { |
1209 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1210 |
|
1211 |
- # GCC-specific bugs |
1212 |
- if tc-is-gcc; then |
1213 |
- # bug #549768 |
1214 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
1215 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
1216 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
1217 |
- # Run in subshell to prevent "Aborted" message |
1218 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
1219 |
- if ! eend $?; then |
1220 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
1221 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
1222 |
- eerror "or use gcc-config to select a different compiler version." |
1223 |
- eerror "See https://bugs.gentoo.org/549768" |
1224 |
- eerror |
1225 |
- return 1 |
1226 |
- fi |
1227 |
- fi |
1228 |
- # bug #574044 |
1229 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
1230 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
1231 |
- # Compile in subshell to prevent "Aborted" message |
1232 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
1233 |
- if ! eend $?; then |
1234 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
1235 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
1236 |
- eerror "or use gcc-config to select a different compiler version." |
1237 |
- eerror "See https://bugs.gentoo.org/574044" |
1238 |
- eerror |
1239 |
- return 1 |
1240 |
- fi |
1241 |
- fi |
1242 |
- fi |
1243 |
- |
1244 |
# Ensure compiler support |
1245 |
- if use abi_x86_64; then |
1246 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
1247 |
- # Compile in subshell to prevent "Aborted" message |
1248 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
1249 |
- if ! eend $?; then |
1250 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
1251 |
- eerror |
1252 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
1253 |
- eerror |
1254 |
- return 1 |
1255 |
- fi |
1256 |
- fi |
1257 |
+ # (No checks here as of 2022) |
1258 |
+ return 0 |
1259 |
} |
1260 |
|
1261 |
wine_build_environment_check() { |
1262 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1263 |
|
1264 |
- if use abi_x86_64; then |
1265 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
1266 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
1267 |
- die |
1268 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
1269 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
1270 |
- die |
1271 |
- fi |
1272 |
- fi |
1273 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
1274 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
1275 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
1276 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
1277 |
- fi |
1278 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
1279 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
1280 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
1281 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
1282 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
1283 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
1284 |
- fi |
1285 |
- fi |
1286 |
- |
1287 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
1288 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
1289 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
1290 |
|
1291 |
diff --git a/app-emulation/wine-any/wine-any-2.21.ebuild b/app-emulation/wine-any/wine-any-2.21.ebuild |
1292 |
index 99feab6..633d844 100644 |
1293 |
--- a/app-emulation/wine-any/wine-any-2.21.ebuild |
1294 |
+++ b/app-emulation/wine-any/wine-any-2.21.ebuild |
1295 |
@@ -184,80 +184,14 @@ fi |
1296 |
wine_compiler_check() { |
1297 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1298 |
|
1299 |
- # GCC-specific bugs |
1300 |
- if tc-is-gcc; then |
1301 |
- # bug #549768 |
1302 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
1303 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
1304 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
1305 |
- # Run in subshell to prevent "Aborted" message |
1306 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
1307 |
- if ! eend $?; then |
1308 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
1309 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
1310 |
- eerror "or use gcc-config to select a different compiler version." |
1311 |
- eerror "See https://bugs.gentoo.org/549768" |
1312 |
- eerror |
1313 |
- return 1 |
1314 |
- fi |
1315 |
- fi |
1316 |
- # bug #574044 |
1317 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
1318 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
1319 |
- # Compile in subshell to prevent "Aborted" message |
1320 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
1321 |
- if ! eend $?; then |
1322 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
1323 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
1324 |
- eerror "or use gcc-config to select a different compiler version." |
1325 |
- eerror "See https://bugs.gentoo.org/574044" |
1326 |
- eerror |
1327 |
- return 1 |
1328 |
- fi |
1329 |
- fi |
1330 |
- fi |
1331 |
- |
1332 |
# Ensure compiler support |
1333 |
- if use abi_x86_64; then |
1334 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
1335 |
- # Compile in subshell to prevent "Aborted" message |
1336 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
1337 |
- if ! eend $?; then |
1338 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
1339 |
- eerror |
1340 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
1341 |
- eerror |
1342 |
- return 1 |
1343 |
- fi |
1344 |
- fi |
1345 |
+ # (No checks here as of 2022) |
1346 |
+ return 0 |
1347 |
} |
1348 |
|
1349 |
wine_build_environment_check() { |
1350 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1351 |
|
1352 |
- if use abi_x86_64; then |
1353 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
1354 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
1355 |
- die |
1356 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
1357 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
1358 |
- die |
1359 |
- fi |
1360 |
- fi |
1361 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
1362 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
1363 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
1364 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
1365 |
- fi |
1366 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
1367 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
1368 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
1369 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
1370 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
1371 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
1372 |
- fi |
1373 |
- fi |
1374 |
- |
1375 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
1376 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
1377 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
1378 |
|
1379 |
diff --git a/app-emulation/wine-any/wine-any-2.3-r1.ebuild b/app-emulation/wine-any/wine-any-2.3-r1.ebuild |
1380 |
index 492730f..a625ea7 100644 |
1381 |
--- a/app-emulation/wine-any/wine-any-2.3-r1.ebuild |
1382 |
+++ b/app-emulation/wine-any/wine-any-2.3-r1.ebuild |
1383 |
@@ -186,80 +186,14 @@ fi |
1384 |
wine_compiler_check() { |
1385 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1386 |
|
1387 |
- # GCC-specific bugs |
1388 |
- if tc-is-gcc; then |
1389 |
- # bug #549768 |
1390 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
1391 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
1392 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
1393 |
- # Run in subshell to prevent "Aborted" message |
1394 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
1395 |
- if ! eend $?; then |
1396 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
1397 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
1398 |
- eerror "or use gcc-config to select a different compiler version." |
1399 |
- eerror "See https://bugs.gentoo.org/549768" |
1400 |
- eerror |
1401 |
- return 1 |
1402 |
- fi |
1403 |
- fi |
1404 |
- # bug #574044 |
1405 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
1406 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
1407 |
- # Compile in subshell to prevent "Aborted" message |
1408 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
1409 |
- if ! eend $?; then |
1410 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
1411 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
1412 |
- eerror "or use gcc-config to select a different compiler version." |
1413 |
- eerror "See https://bugs.gentoo.org/574044" |
1414 |
- eerror |
1415 |
- return 1 |
1416 |
- fi |
1417 |
- fi |
1418 |
- fi |
1419 |
- |
1420 |
# Ensure compiler support |
1421 |
- if use abi_x86_64; then |
1422 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
1423 |
- # Compile in subshell to prevent "Aborted" message |
1424 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
1425 |
- if ! eend $?; then |
1426 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
1427 |
- eerror |
1428 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
1429 |
- eerror |
1430 |
- return 1 |
1431 |
- fi |
1432 |
- fi |
1433 |
+ # (No checks here as of 2022) |
1434 |
+ return 0 |
1435 |
} |
1436 |
|
1437 |
wine_build_environment_check() { |
1438 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1439 |
|
1440 |
- if use abi_x86_64; then |
1441 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
1442 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
1443 |
- die |
1444 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
1445 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
1446 |
- die |
1447 |
- fi |
1448 |
- fi |
1449 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
1450 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
1451 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
1452 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
1453 |
- fi |
1454 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
1455 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
1456 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
1457 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
1458 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
1459 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
1460 |
- fi |
1461 |
- fi |
1462 |
- |
1463 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
1464 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
1465 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
1466 |
|
1467 |
diff --git a/app-emulation/wine-any/wine-any-2.4-r1.ebuild b/app-emulation/wine-any/wine-any-2.4-r1.ebuild |
1468 |
index 4438954..33b51bf 100644 |
1469 |
--- a/app-emulation/wine-any/wine-any-2.4-r1.ebuild |
1470 |
+++ b/app-emulation/wine-any/wine-any-2.4-r1.ebuild |
1471 |
@@ -186,80 +186,14 @@ fi |
1472 |
wine_compiler_check() { |
1473 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1474 |
|
1475 |
- # GCC-specific bugs |
1476 |
- if tc-is-gcc; then |
1477 |
- # bug #549768 |
1478 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
1479 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
1480 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
1481 |
- # Run in subshell to prevent "Aborted" message |
1482 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
1483 |
- if ! eend $?; then |
1484 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
1485 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
1486 |
- eerror "or use gcc-config to select a different compiler version." |
1487 |
- eerror "See https://bugs.gentoo.org/549768" |
1488 |
- eerror |
1489 |
- return 1 |
1490 |
- fi |
1491 |
- fi |
1492 |
- # bug #574044 |
1493 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
1494 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
1495 |
- # Compile in subshell to prevent "Aborted" message |
1496 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
1497 |
- if ! eend $?; then |
1498 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
1499 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
1500 |
- eerror "or use gcc-config to select a different compiler version." |
1501 |
- eerror "See https://bugs.gentoo.org/574044" |
1502 |
- eerror |
1503 |
- return 1 |
1504 |
- fi |
1505 |
- fi |
1506 |
- fi |
1507 |
- |
1508 |
# Ensure compiler support |
1509 |
- if use abi_x86_64; then |
1510 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
1511 |
- # Compile in subshell to prevent "Aborted" message |
1512 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
1513 |
- if ! eend $?; then |
1514 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
1515 |
- eerror |
1516 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
1517 |
- eerror |
1518 |
- return 1 |
1519 |
- fi |
1520 |
- fi |
1521 |
+ # (No checks here as of 2022) |
1522 |
+ return 0 |
1523 |
} |
1524 |
|
1525 |
wine_build_environment_check() { |
1526 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1527 |
|
1528 |
- if use abi_x86_64; then |
1529 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
1530 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
1531 |
- die |
1532 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
1533 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
1534 |
- die |
1535 |
- fi |
1536 |
- fi |
1537 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
1538 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
1539 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
1540 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
1541 |
- fi |
1542 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
1543 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
1544 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
1545 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
1546 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
1547 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
1548 |
- fi |
1549 |
- fi |
1550 |
- |
1551 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
1552 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
1553 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
1554 |
|
1555 |
diff --git a/app-emulation/wine-any/wine-any-2.5-r1.ebuild b/app-emulation/wine-any/wine-any-2.5-r1.ebuild |
1556 |
index 4438954..33b51bf 100644 |
1557 |
--- a/app-emulation/wine-any/wine-any-2.5-r1.ebuild |
1558 |
+++ b/app-emulation/wine-any/wine-any-2.5-r1.ebuild |
1559 |
@@ -186,80 +186,14 @@ fi |
1560 |
wine_compiler_check() { |
1561 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1562 |
|
1563 |
- # GCC-specific bugs |
1564 |
- if tc-is-gcc; then |
1565 |
- # bug #549768 |
1566 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
1567 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
1568 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
1569 |
- # Run in subshell to prevent "Aborted" message |
1570 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
1571 |
- if ! eend $?; then |
1572 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
1573 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
1574 |
- eerror "or use gcc-config to select a different compiler version." |
1575 |
- eerror "See https://bugs.gentoo.org/549768" |
1576 |
- eerror |
1577 |
- return 1 |
1578 |
- fi |
1579 |
- fi |
1580 |
- # bug #574044 |
1581 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
1582 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
1583 |
- # Compile in subshell to prevent "Aborted" message |
1584 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
1585 |
- if ! eend $?; then |
1586 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
1587 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
1588 |
- eerror "or use gcc-config to select a different compiler version." |
1589 |
- eerror "See https://bugs.gentoo.org/574044" |
1590 |
- eerror |
1591 |
- return 1 |
1592 |
- fi |
1593 |
- fi |
1594 |
- fi |
1595 |
- |
1596 |
# Ensure compiler support |
1597 |
- if use abi_x86_64; then |
1598 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
1599 |
- # Compile in subshell to prevent "Aborted" message |
1600 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
1601 |
- if ! eend $?; then |
1602 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
1603 |
- eerror |
1604 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
1605 |
- eerror |
1606 |
- return 1 |
1607 |
- fi |
1608 |
- fi |
1609 |
+ # (No checks here as of 2022) |
1610 |
+ return 0 |
1611 |
} |
1612 |
|
1613 |
wine_build_environment_check() { |
1614 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1615 |
|
1616 |
- if use abi_x86_64; then |
1617 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
1618 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
1619 |
- die |
1620 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
1621 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
1622 |
- die |
1623 |
- fi |
1624 |
- fi |
1625 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
1626 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
1627 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
1628 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
1629 |
- fi |
1630 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
1631 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
1632 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
1633 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
1634 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
1635 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
1636 |
- fi |
1637 |
- fi |
1638 |
- |
1639 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
1640 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
1641 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
1642 |
|
1643 |
diff --git a/app-emulation/wine-any/wine-any-2.6-r1.ebuild b/app-emulation/wine-any/wine-any-2.6-r1.ebuild |
1644 |
index 4438954..33b51bf 100644 |
1645 |
--- a/app-emulation/wine-any/wine-any-2.6-r1.ebuild |
1646 |
+++ b/app-emulation/wine-any/wine-any-2.6-r1.ebuild |
1647 |
@@ -186,80 +186,14 @@ fi |
1648 |
wine_compiler_check() { |
1649 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1650 |
|
1651 |
- # GCC-specific bugs |
1652 |
- if tc-is-gcc; then |
1653 |
- # bug #549768 |
1654 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
1655 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
1656 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
1657 |
- # Run in subshell to prevent "Aborted" message |
1658 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
1659 |
- if ! eend $?; then |
1660 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
1661 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
1662 |
- eerror "or use gcc-config to select a different compiler version." |
1663 |
- eerror "See https://bugs.gentoo.org/549768" |
1664 |
- eerror |
1665 |
- return 1 |
1666 |
- fi |
1667 |
- fi |
1668 |
- # bug #574044 |
1669 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
1670 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
1671 |
- # Compile in subshell to prevent "Aborted" message |
1672 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
1673 |
- if ! eend $?; then |
1674 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
1675 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
1676 |
- eerror "or use gcc-config to select a different compiler version." |
1677 |
- eerror "See https://bugs.gentoo.org/574044" |
1678 |
- eerror |
1679 |
- return 1 |
1680 |
- fi |
1681 |
- fi |
1682 |
- fi |
1683 |
- |
1684 |
# Ensure compiler support |
1685 |
- if use abi_x86_64; then |
1686 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
1687 |
- # Compile in subshell to prevent "Aborted" message |
1688 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
1689 |
- if ! eend $?; then |
1690 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
1691 |
- eerror |
1692 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
1693 |
- eerror |
1694 |
- return 1 |
1695 |
- fi |
1696 |
- fi |
1697 |
+ # (No checks here as of 2022) |
1698 |
+ return 0 |
1699 |
} |
1700 |
|
1701 |
wine_build_environment_check() { |
1702 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1703 |
|
1704 |
- if use abi_x86_64; then |
1705 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
1706 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
1707 |
- die |
1708 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
1709 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
1710 |
- die |
1711 |
- fi |
1712 |
- fi |
1713 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
1714 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
1715 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
1716 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
1717 |
- fi |
1718 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
1719 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
1720 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
1721 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
1722 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
1723 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
1724 |
- fi |
1725 |
- fi |
1726 |
- |
1727 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
1728 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
1729 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
1730 |
|
1731 |
diff --git a/app-emulation/wine-any/wine-any-2.7-r1.ebuild b/app-emulation/wine-any/wine-any-2.7-r1.ebuild |
1732 |
index 4438954..33b51bf 100644 |
1733 |
--- a/app-emulation/wine-any/wine-any-2.7-r1.ebuild |
1734 |
+++ b/app-emulation/wine-any/wine-any-2.7-r1.ebuild |
1735 |
@@ -186,80 +186,14 @@ fi |
1736 |
wine_compiler_check() { |
1737 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1738 |
|
1739 |
- # GCC-specific bugs |
1740 |
- if tc-is-gcc; then |
1741 |
- # bug #549768 |
1742 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
1743 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
1744 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
1745 |
- # Run in subshell to prevent "Aborted" message |
1746 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
1747 |
- if ! eend $?; then |
1748 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
1749 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
1750 |
- eerror "or use gcc-config to select a different compiler version." |
1751 |
- eerror "See https://bugs.gentoo.org/549768" |
1752 |
- eerror |
1753 |
- return 1 |
1754 |
- fi |
1755 |
- fi |
1756 |
- # bug #574044 |
1757 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
1758 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
1759 |
- # Compile in subshell to prevent "Aborted" message |
1760 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
1761 |
- if ! eend $?; then |
1762 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
1763 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
1764 |
- eerror "or use gcc-config to select a different compiler version." |
1765 |
- eerror "See https://bugs.gentoo.org/574044" |
1766 |
- eerror |
1767 |
- return 1 |
1768 |
- fi |
1769 |
- fi |
1770 |
- fi |
1771 |
- |
1772 |
# Ensure compiler support |
1773 |
- if use abi_x86_64; then |
1774 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
1775 |
- # Compile in subshell to prevent "Aborted" message |
1776 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
1777 |
- if ! eend $?; then |
1778 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
1779 |
- eerror |
1780 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
1781 |
- eerror |
1782 |
- return 1 |
1783 |
- fi |
1784 |
- fi |
1785 |
+ # (No checks here as of 2022) |
1786 |
+ return 0 |
1787 |
} |
1788 |
|
1789 |
wine_build_environment_check() { |
1790 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1791 |
|
1792 |
- if use abi_x86_64; then |
1793 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
1794 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
1795 |
- die |
1796 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
1797 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
1798 |
- die |
1799 |
- fi |
1800 |
- fi |
1801 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
1802 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
1803 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
1804 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
1805 |
- fi |
1806 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
1807 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
1808 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
1809 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
1810 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
1811 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
1812 |
- fi |
1813 |
- fi |
1814 |
- |
1815 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
1816 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
1817 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
1818 |
|
1819 |
diff --git a/app-emulation/wine-any/wine-any-2.8-r1.ebuild b/app-emulation/wine-any/wine-any-2.8-r1.ebuild |
1820 |
index 4438954..33b51bf 100644 |
1821 |
--- a/app-emulation/wine-any/wine-any-2.8-r1.ebuild |
1822 |
+++ b/app-emulation/wine-any/wine-any-2.8-r1.ebuild |
1823 |
@@ -186,80 +186,14 @@ fi |
1824 |
wine_compiler_check() { |
1825 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1826 |
|
1827 |
- # GCC-specific bugs |
1828 |
- if tc-is-gcc; then |
1829 |
- # bug #549768 |
1830 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
1831 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
1832 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
1833 |
- # Run in subshell to prevent "Aborted" message |
1834 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
1835 |
- if ! eend $?; then |
1836 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
1837 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
1838 |
- eerror "or use gcc-config to select a different compiler version." |
1839 |
- eerror "See https://bugs.gentoo.org/549768" |
1840 |
- eerror |
1841 |
- return 1 |
1842 |
- fi |
1843 |
- fi |
1844 |
- # bug #574044 |
1845 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
1846 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
1847 |
- # Compile in subshell to prevent "Aborted" message |
1848 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
1849 |
- if ! eend $?; then |
1850 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
1851 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
1852 |
- eerror "or use gcc-config to select a different compiler version." |
1853 |
- eerror "See https://bugs.gentoo.org/574044" |
1854 |
- eerror |
1855 |
- return 1 |
1856 |
- fi |
1857 |
- fi |
1858 |
- fi |
1859 |
- |
1860 |
# Ensure compiler support |
1861 |
- if use abi_x86_64; then |
1862 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
1863 |
- # Compile in subshell to prevent "Aborted" message |
1864 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
1865 |
- if ! eend $?; then |
1866 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
1867 |
- eerror |
1868 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
1869 |
- eerror |
1870 |
- return 1 |
1871 |
- fi |
1872 |
- fi |
1873 |
+ # (No checks here as of 2022) |
1874 |
+ return 0 |
1875 |
} |
1876 |
|
1877 |
wine_build_environment_check() { |
1878 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1879 |
|
1880 |
- if use abi_x86_64; then |
1881 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
1882 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
1883 |
- die |
1884 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
1885 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
1886 |
- die |
1887 |
- fi |
1888 |
- fi |
1889 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
1890 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
1891 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
1892 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
1893 |
- fi |
1894 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
1895 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
1896 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
1897 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
1898 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
1899 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
1900 |
- fi |
1901 |
- fi |
1902 |
- |
1903 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
1904 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
1905 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
1906 |
|
1907 |
diff --git a/app-emulation/wine-any/wine-any-2.9-r1.ebuild b/app-emulation/wine-any/wine-any-2.9-r1.ebuild |
1908 |
index 8fbaa2a..fd63f35 100644 |
1909 |
--- a/app-emulation/wine-any/wine-any-2.9-r1.ebuild |
1910 |
+++ b/app-emulation/wine-any/wine-any-2.9-r1.ebuild |
1911 |
@@ -187,80 +187,14 @@ fi |
1912 |
wine_compiler_check() { |
1913 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1914 |
|
1915 |
- # GCC-specific bugs |
1916 |
- if tc-is-gcc; then |
1917 |
- # bug #549768 |
1918 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
1919 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
1920 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
1921 |
- # Run in subshell to prevent "Aborted" message |
1922 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
1923 |
- if ! eend $?; then |
1924 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
1925 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
1926 |
- eerror "or use gcc-config to select a different compiler version." |
1927 |
- eerror "See https://bugs.gentoo.org/549768" |
1928 |
- eerror |
1929 |
- return 1 |
1930 |
- fi |
1931 |
- fi |
1932 |
- # bug #574044 |
1933 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
1934 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
1935 |
- # Compile in subshell to prevent "Aborted" message |
1936 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
1937 |
- if ! eend $?; then |
1938 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
1939 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
1940 |
- eerror "or use gcc-config to select a different compiler version." |
1941 |
- eerror "See https://bugs.gentoo.org/574044" |
1942 |
- eerror |
1943 |
- return 1 |
1944 |
- fi |
1945 |
- fi |
1946 |
- fi |
1947 |
- |
1948 |
# Ensure compiler support |
1949 |
- if use abi_x86_64; then |
1950 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
1951 |
- # Compile in subshell to prevent "Aborted" message |
1952 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
1953 |
- if ! eend $?; then |
1954 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
1955 |
- eerror |
1956 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
1957 |
- eerror |
1958 |
- return 1 |
1959 |
- fi |
1960 |
- fi |
1961 |
+ # (No checks here as of 2022) |
1962 |
+ return 0 |
1963 |
} |
1964 |
|
1965 |
wine_build_environment_check() { |
1966 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1967 |
|
1968 |
- if use abi_x86_64; then |
1969 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
1970 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
1971 |
- die |
1972 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
1973 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
1974 |
- die |
1975 |
- fi |
1976 |
- fi |
1977 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
1978 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
1979 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
1980 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
1981 |
- fi |
1982 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
1983 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
1984 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
1985 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
1986 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
1987 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
1988 |
- fi |
1989 |
- fi |
1990 |
- |
1991 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
1992 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
1993 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
1994 |
|
1995 |
diff --git a/app-emulation/wine-any/wine-any-3.10.ebuild b/app-emulation/wine-any/wine-any-3.10.ebuild |
1996 |
index caa75e0..7ad9008 100644 |
1997 |
--- a/app-emulation/wine-any/wine-any-3.10.ebuild |
1998 |
+++ b/app-emulation/wine-any/wine-any-3.10.ebuild |
1999 |
@@ -188,80 +188,14 @@ fi |
2000 |
wine_compiler_check() { |
2001 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2002 |
|
2003 |
- # GCC-specific bugs |
2004 |
- if tc-is-gcc; then |
2005 |
- # bug #549768 |
2006 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
2007 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
2008 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
2009 |
- # Run in subshell to prevent "Aborted" message |
2010 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
2011 |
- if ! eend $?; then |
2012 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
2013 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
2014 |
- eerror "or use gcc-config to select a different compiler version." |
2015 |
- eerror "See https://bugs.gentoo.org/549768" |
2016 |
- eerror |
2017 |
- return 1 |
2018 |
- fi |
2019 |
- fi |
2020 |
- # bug #574044 |
2021 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
2022 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
2023 |
- # Compile in subshell to prevent "Aborted" message |
2024 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
2025 |
- if ! eend $?; then |
2026 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
2027 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
2028 |
- eerror "or use gcc-config to select a different compiler version." |
2029 |
- eerror "See https://bugs.gentoo.org/574044" |
2030 |
- eerror |
2031 |
- return 1 |
2032 |
- fi |
2033 |
- fi |
2034 |
- fi |
2035 |
- |
2036 |
# Ensure compiler support |
2037 |
- if use abi_x86_64; then |
2038 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
2039 |
- # Compile in subshell to prevent "Aborted" message |
2040 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
2041 |
- if ! eend $?; then |
2042 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
2043 |
- eerror |
2044 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
2045 |
- eerror |
2046 |
- return 1 |
2047 |
- fi |
2048 |
- fi |
2049 |
+ # (No checks here as of 2022) |
2050 |
+ return 0 |
2051 |
} |
2052 |
|
2053 |
wine_build_environment_check() { |
2054 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2055 |
|
2056 |
- if use abi_x86_64; then |
2057 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
2058 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
2059 |
- die |
2060 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
2061 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
2062 |
- die |
2063 |
- fi |
2064 |
- fi |
2065 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
2066 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
2067 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
2068 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
2069 |
- fi |
2070 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
2071 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
2072 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
2073 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
2074 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
2075 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
2076 |
- fi |
2077 |
- fi |
2078 |
- |
2079 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
2080 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
2081 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
2082 |
|
2083 |
diff --git a/app-emulation/wine-any/wine-any-3.11.ebuild b/app-emulation/wine-any/wine-any-3.11.ebuild |
2084 |
index a2f3490..7a10853 100644 |
2085 |
--- a/app-emulation/wine-any/wine-any-3.11.ebuild |
2086 |
+++ b/app-emulation/wine-any/wine-any-3.11.ebuild |
2087 |
@@ -186,80 +186,14 @@ fi |
2088 |
wine_compiler_check() { |
2089 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2090 |
|
2091 |
- # GCC-specific bugs |
2092 |
- if tc-is-gcc; then |
2093 |
- # bug #549768 |
2094 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
2095 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
2096 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
2097 |
- # Run in subshell to prevent "Aborted" message |
2098 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
2099 |
- if ! eend $?; then |
2100 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
2101 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
2102 |
- eerror "or use gcc-config to select a different compiler version." |
2103 |
- eerror "See https://bugs.gentoo.org/549768" |
2104 |
- eerror |
2105 |
- return 1 |
2106 |
- fi |
2107 |
- fi |
2108 |
- # bug #574044 |
2109 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
2110 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
2111 |
- # Compile in subshell to prevent "Aborted" message |
2112 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
2113 |
- if ! eend $?; then |
2114 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
2115 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
2116 |
- eerror "or use gcc-config to select a different compiler version." |
2117 |
- eerror "See https://bugs.gentoo.org/574044" |
2118 |
- eerror |
2119 |
- return 1 |
2120 |
- fi |
2121 |
- fi |
2122 |
- fi |
2123 |
- |
2124 |
# Ensure compiler support |
2125 |
- if use abi_x86_64; then |
2126 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
2127 |
- # Compile in subshell to prevent "Aborted" message |
2128 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
2129 |
- if ! eend $?; then |
2130 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
2131 |
- eerror |
2132 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
2133 |
- eerror |
2134 |
- return 1 |
2135 |
- fi |
2136 |
- fi |
2137 |
+ # (No checks here as of 2022) |
2138 |
+ return 0 |
2139 |
} |
2140 |
|
2141 |
wine_build_environment_check() { |
2142 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2143 |
|
2144 |
- if use abi_x86_64; then |
2145 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
2146 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
2147 |
- die |
2148 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
2149 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
2150 |
- die |
2151 |
- fi |
2152 |
- fi |
2153 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
2154 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
2155 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
2156 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
2157 |
- fi |
2158 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
2159 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
2160 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
2161 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
2162 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
2163 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
2164 |
- fi |
2165 |
- fi |
2166 |
- |
2167 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
2168 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
2169 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
2170 |
|
2171 |
diff --git a/app-emulation/wine-any/wine-any-3.12.ebuild b/app-emulation/wine-any/wine-any-3.12.ebuild |
2172 |
index 3e7ab08..573e25e 100644 |
2173 |
--- a/app-emulation/wine-any/wine-any-3.12.ebuild |
2174 |
+++ b/app-emulation/wine-any/wine-any-3.12.ebuild |
2175 |
@@ -188,80 +188,14 @@ fi |
2176 |
wine_compiler_check() { |
2177 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2178 |
|
2179 |
- # GCC-specific bugs |
2180 |
- if tc-is-gcc; then |
2181 |
- # bug #549768 |
2182 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
2183 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
2184 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
2185 |
- # Run in subshell to prevent "Aborted" message |
2186 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
2187 |
- if ! eend $?; then |
2188 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
2189 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
2190 |
- eerror "or use gcc-config to select a different compiler version." |
2191 |
- eerror "See https://bugs.gentoo.org/549768" |
2192 |
- eerror |
2193 |
- return 1 |
2194 |
- fi |
2195 |
- fi |
2196 |
- # bug #574044 |
2197 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
2198 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
2199 |
- # Compile in subshell to prevent "Aborted" message |
2200 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
2201 |
- if ! eend $?; then |
2202 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
2203 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
2204 |
- eerror "or use gcc-config to select a different compiler version." |
2205 |
- eerror "See https://bugs.gentoo.org/574044" |
2206 |
- eerror |
2207 |
- return 1 |
2208 |
- fi |
2209 |
- fi |
2210 |
- fi |
2211 |
- |
2212 |
# Ensure compiler support |
2213 |
- if use abi_x86_64; then |
2214 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
2215 |
- # Compile in subshell to prevent "Aborted" message |
2216 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
2217 |
- if ! eend $?; then |
2218 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
2219 |
- eerror |
2220 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
2221 |
- eerror |
2222 |
- return 1 |
2223 |
- fi |
2224 |
- fi |
2225 |
+ # (No checks here as of 2022) |
2226 |
+ return 0 |
2227 |
} |
2228 |
|
2229 |
wine_build_environment_check() { |
2230 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2231 |
|
2232 |
- if use abi_x86_64; then |
2233 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
2234 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
2235 |
- die |
2236 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
2237 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
2238 |
- die |
2239 |
- fi |
2240 |
- fi |
2241 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
2242 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
2243 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
2244 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
2245 |
- fi |
2246 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
2247 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
2248 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
2249 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
2250 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
2251 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
2252 |
- fi |
2253 |
- fi |
2254 |
- |
2255 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
2256 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
2257 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
2258 |
|
2259 |
diff --git a/app-emulation/wine-any/wine-any-3.13-r1.ebuild b/app-emulation/wine-any/wine-any-3.13-r1.ebuild |
2260 |
index 09f7079..af72f52 100644 |
2261 |
--- a/app-emulation/wine-any/wine-any-3.13-r1.ebuild |
2262 |
+++ b/app-emulation/wine-any/wine-any-3.13-r1.ebuild |
2263 |
@@ -188,80 +188,14 @@ fi |
2264 |
wine_compiler_check() { |
2265 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2266 |
|
2267 |
- # GCC-specific bugs |
2268 |
- if tc-is-gcc; then |
2269 |
- # bug #549768 |
2270 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
2271 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
2272 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
2273 |
- # Run in subshell to prevent "Aborted" message |
2274 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
2275 |
- if ! eend $?; then |
2276 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
2277 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
2278 |
- eerror "or use gcc-config to select a different compiler version." |
2279 |
- eerror "See https://bugs.gentoo.org/549768" |
2280 |
- eerror |
2281 |
- return 1 |
2282 |
- fi |
2283 |
- fi |
2284 |
- # bug #574044 |
2285 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
2286 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
2287 |
- # Compile in subshell to prevent "Aborted" message |
2288 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
2289 |
- if ! eend $?; then |
2290 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
2291 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
2292 |
- eerror "or use gcc-config to select a different compiler version." |
2293 |
- eerror "See https://bugs.gentoo.org/574044" |
2294 |
- eerror |
2295 |
- return 1 |
2296 |
- fi |
2297 |
- fi |
2298 |
- fi |
2299 |
- |
2300 |
# Ensure compiler support |
2301 |
- if use abi_x86_64; then |
2302 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
2303 |
- # Compile in subshell to prevent "Aborted" message |
2304 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
2305 |
- if ! eend $?; then |
2306 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
2307 |
- eerror |
2308 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
2309 |
- eerror |
2310 |
- return 1 |
2311 |
- fi |
2312 |
- fi |
2313 |
+ # (No checks here as of 2022) |
2314 |
+ return 0 |
2315 |
} |
2316 |
|
2317 |
wine_build_environment_check() { |
2318 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2319 |
|
2320 |
- if use abi_x86_64; then |
2321 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
2322 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
2323 |
- die |
2324 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
2325 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
2326 |
- die |
2327 |
- fi |
2328 |
- fi |
2329 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
2330 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
2331 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
2332 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
2333 |
- fi |
2334 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
2335 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
2336 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
2337 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
2338 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
2339 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
2340 |
- fi |
2341 |
- fi |
2342 |
- |
2343 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
2344 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
2345 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
2346 |
|
2347 |
diff --git a/app-emulation/wine-any/wine-any-3.13.ebuild b/app-emulation/wine-any/wine-any-3.13.ebuild |
2348 |
index 09f7079..af72f52 100644 |
2349 |
--- a/app-emulation/wine-any/wine-any-3.13.ebuild |
2350 |
+++ b/app-emulation/wine-any/wine-any-3.13.ebuild |
2351 |
@@ -188,80 +188,14 @@ fi |
2352 |
wine_compiler_check() { |
2353 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2354 |
|
2355 |
- # GCC-specific bugs |
2356 |
- if tc-is-gcc; then |
2357 |
- # bug #549768 |
2358 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
2359 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
2360 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
2361 |
- # Run in subshell to prevent "Aborted" message |
2362 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
2363 |
- if ! eend $?; then |
2364 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
2365 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
2366 |
- eerror "or use gcc-config to select a different compiler version." |
2367 |
- eerror "See https://bugs.gentoo.org/549768" |
2368 |
- eerror |
2369 |
- return 1 |
2370 |
- fi |
2371 |
- fi |
2372 |
- # bug #574044 |
2373 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
2374 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
2375 |
- # Compile in subshell to prevent "Aborted" message |
2376 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
2377 |
- if ! eend $?; then |
2378 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
2379 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
2380 |
- eerror "or use gcc-config to select a different compiler version." |
2381 |
- eerror "See https://bugs.gentoo.org/574044" |
2382 |
- eerror |
2383 |
- return 1 |
2384 |
- fi |
2385 |
- fi |
2386 |
- fi |
2387 |
- |
2388 |
# Ensure compiler support |
2389 |
- if use abi_x86_64; then |
2390 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
2391 |
- # Compile in subshell to prevent "Aborted" message |
2392 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
2393 |
- if ! eend $?; then |
2394 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
2395 |
- eerror |
2396 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
2397 |
- eerror |
2398 |
- return 1 |
2399 |
- fi |
2400 |
- fi |
2401 |
+ # (No checks here as of 2022) |
2402 |
+ return 0 |
2403 |
} |
2404 |
|
2405 |
wine_build_environment_check() { |
2406 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2407 |
|
2408 |
- if use abi_x86_64; then |
2409 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
2410 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
2411 |
- die |
2412 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
2413 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
2414 |
- die |
2415 |
- fi |
2416 |
- fi |
2417 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
2418 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
2419 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
2420 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
2421 |
- fi |
2422 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
2423 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
2424 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
2425 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
2426 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
2427 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
2428 |
- fi |
2429 |
- fi |
2430 |
- |
2431 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
2432 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
2433 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
2434 |
|
2435 |
diff --git a/app-emulation/wine-any/wine-any-3.14.ebuild b/app-emulation/wine-any/wine-any-3.14.ebuild |
2436 |
index 09f7079..af72f52 100644 |
2437 |
--- a/app-emulation/wine-any/wine-any-3.14.ebuild |
2438 |
+++ b/app-emulation/wine-any/wine-any-3.14.ebuild |
2439 |
@@ -188,80 +188,14 @@ fi |
2440 |
wine_compiler_check() { |
2441 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2442 |
|
2443 |
- # GCC-specific bugs |
2444 |
- if tc-is-gcc; then |
2445 |
- # bug #549768 |
2446 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
2447 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
2448 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
2449 |
- # Run in subshell to prevent "Aborted" message |
2450 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
2451 |
- if ! eend $?; then |
2452 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
2453 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
2454 |
- eerror "or use gcc-config to select a different compiler version." |
2455 |
- eerror "See https://bugs.gentoo.org/549768" |
2456 |
- eerror |
2457 |
- return 1 |
2458 |
- fi |
2459 |
- fi |
2460 |
- # bug #574044 |
2461 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
2462 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
2463 |
- # Compile in subshell to prevent "Aborted" message |
2464 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
2465 |
- if ! eend $?; then |
2466 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
2467 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
2468 |
- eerror "or use gcc-config to select a different compiler version." |
2469 |
- eerror "See https://bugs.gentoo.org/574044" |
2470 |
- eerror |
2471 |
- return 1 |
2472 |
- fi |
2473 |
- fi |
2474 |
- fi |
2475 |
- |
2476 |
# Ensure compiler support |
2477 |
- if use abi_x86_64; then |
2478 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
2479 |
- # Compile in subshell to prevent "Aborted" message |
2480 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
2481 |
- if ! eend $?; then |
2482 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
2483 |
- eerror |
2484 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
2485 |
- eerror |
2486 |
- return 1 |
2487 |
- fi |
2488 |
- fi |
2489 |
+ # (No checks here as of 2022) |
2490 |
+ return 0 |
2491 |
} |
2492 |
|
2493 |
wine_build_environment_check() { |
2494 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2495 |
|
2496 |
- if use abi_x86_64; then |
2497 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
2498 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
2499 |
- die |
2500 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
2501 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
2502 |
- die |
2503 |
- fi |
2504 |
- fi |
2505 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
2506 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
2507 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
2508 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
2509 |
- fi |
2510 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
2511 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
2512 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
2513 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
2514 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
2515 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
2516 |
- fi |
2517 |
- fi |
2518 |
- |
2519 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
2520 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
2521 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
2522 |
|
2523 |
diff --git a/app-emulation/wine-any/wine-any-3.15.ebuild b/app-emulation/wine-any/wine-any-3.15.ebuild |
2524 |
index 09f7079..af72f52 100644 |
2525 |
--- a/app-emulation/wine-any/wine-any-3.15.ebuild |
2526 |
+++ b/app-emulation/wine-any/wine-any-3.15.ebuild |
2527 |
@@ -188,80 +188,14 @@ fi |
2528 |
wine_compiler_check() { |
2529 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2530 |
|
2531 |
- # GCC-specific bugs |
2532 |
- if tc-is-gcc; then |
2533 |
- # bug #549768 |
2534 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
2535 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
2536 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
2537 |
- # Run in subshell to prevent "Aborted" message |
2538 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
2539 |
- if ! eend $?; then |
2540 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
2541 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
2542 |
- eerror "or use gcc-config to select a different compiler version." |
2543 |
- eerror "See https://bugs.gentoo.org/549768" |
2544 |
- eerror |
2545 |
- return 1 |
2546 |
- fi |
2547 |
- fi |
2548 |
- # bug #574044 |
2549 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
2550 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
2551 |
- # Compile in subshell to prevent "Aborted" message |
2552 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
2553 |
- if ! eend $?; then |
2554 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
2555 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
2556 |
- eerror "or use gcc-config to select a different compiler version." |
2557 |
- eerror "See https://bugs.gentoo.org/574044" |
2558 |
- eerror |
2559 |
- return 1 |
2560 |
- fi |
2561 |
- fi |
2562 |
- fi |
2563 |
- |
2564 |
# Ensure compiler support |
2565 |
- if use abi_x86_64; then |
2566 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
2567 |
- # Compile in subshell to prevent "Aborted" message |
2568 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
2569 |
- if ! eend $?; then |
2570 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
2571 |
- eerror |
2572 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
2573 |
- eerror |
2574 |
- return 1 |
2575 |
- fi |
2576 |
- fi |
2577 |
+ # (No checks here as of 2022) |
2578 |
+ return 0 |
2579 |
} |
2580 |
|
2581 |
wine_build_environment_check() { |
2582 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2583 |
|
2584 |
- if use abi_x86_64; then |
2585 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
2586 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
2587 |
- die |
2588 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
2589 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
2590 |
- die |
2591 |
- fi |
2592 |
- fi |
2593 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
2594 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
2595 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
2596 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
2597 |
- fi |
2598 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
2599 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
2600 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
2601 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
2602 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
2603 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
2604 |
- fi |
2605 |
- fi |
2606 |
- |
2607 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
2608 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
2609 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
2610 |
|
2611 |
diff --git a/app-emulation/wine-any/wine-any-3.16.ebuild b/app-emulation/wine-any/wine-any-3.16.ebuild |
2612 |
index 09f7079..af72f52 100644 |
2613 |
--- a/app-emulation/wine-any/wine-any-3.16.ebuild |
2614 |
+++ b/app-emulation/wine-any/wine-any-3.16.ebuild |
2615 |
@@ -188,80 +188,14 @@ fi |
2616 |
wine_compiler_check() { |
2617 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2618 |
|
2619 |
- # GCC-specific bugs |
2620 |
- if tc-is-gcc; then |
2621 |
- # bug #549768 |
2622 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
2623 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
2624 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
2625 |
- # Run in subshell to prevent "Aborted" message |
2626 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
2627 |
- if ! eend $?; then |
2628 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
2629 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
2630 |
- eerror "or use gcc-config to select a different compiler version." |
2631 |
- eerror "See https://bugs.gentoo.org/549768" |
2632 |
- eerror |
2633 |
- return 1 |
2634 |
- fi |
2635 |
- fi |
2636 |
- # bug #574044 |
2637 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
2638 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
2639 |
- # Compile in subshell to prevent "Aborted" message |
2640 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
2641 |
- if ! eend $?; then |
2642 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
2643 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
2644 |
- eerror "or use gcc-config to select a different compiler version." |
2645 |
- eerror "See https://bugs.gentoo.org/574044" |
2646 |
- eerror |
2647 |
- return 1 |
2648 |
- fi |
2649 |
- fi |
2650 |
- fi |
2651 |
- |
2652 |
# Ensure compiler support |
2653 |
- if use abi_x86_64; then |
2654 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
2655 |
- # Compile in subshell to prevent "Aborted" message |
2656 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
2657 |
- if ! eend $?; then |
2658 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
2659 |
- eerror |
2660 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
2661 |
- eerror |
2662 |
- return 1 |
2663 |
- fi |
2664 |
- fi |
2665 |
+ # (No checks here as of 2022) |
2666 |
+ return 0 |
2667 |
} |
2668 |
|
2669 |
wine_build_environment_check() { |
2670 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2671 |
|
2672 |
- if use abi_x86_64; then |
2673 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
2674 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
2675 |
- die |
2676 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
2677 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
2678 |
- die |
2679 |
- fi |
2680 |
- fi |
2681 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
2682 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
2683 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
2684 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
2685 |
- fi |
2686 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
2687 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
2688 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
2689 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
2690 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
2691 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
2692 |
- fi |
2693 |
- fi |
2694 |
- |
2695 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
2696 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
2697 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
2698 |
|
2699 |
diff --git a/app-emulation/wine-any/wine-any-3.17.ebuild b/app-emulation/wine-any/wine-any-3.17.ebuild |
2700 |
index 09f7079..af72f52 100644 |
2701 |
--- a/app-emulation/wine-any/wine-any-3.17.ebuild |
2702 |
+++ b/app-emulation/wine-any/wine-any-3.17.ebuild |
2703 |
@@ -188,80 +188,14 @@ fi |
2704 |
wine_compiler_check() { |
2705 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2706 |
|
2707 |
- # GCC-specific bugs |
2708 |
- if tc-is-gcc; then |
2709 |
- # bug #549768 |
2710 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
2711 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
2712 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
2713 |
- # Run in subshell to prevent "Aborted" message |
2714 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
2715 |
- if ! eend $?; then |
2716 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
2717 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
2718 |
- eerror "or use gcc-config to select a different compiler version." |
2719 |
- eerror "See https://bugs.gentoo.org/549768" |
2720 |
- eerror |
2721 |
- return 1 |
2722 |
- fi |
2723 |
- fi |
2724 |
- # bug #574044 |
2725 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
2726 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
2727 |
- # Compile in subshell to prevent "Aborted" message |
2728 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
2729 |
- if ! eend $?; then |
2730 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
2731 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
2732 |
- eerror "or use gcc-config to select a different compiler version." |
2733 |
- eerror "See https://bugs.gentoo.org/574044" |
2734 |
- eerror |
2735 |
- return 1 |
2736 |
- fi |
2737 |
- fi |
2738 |
- fi |
2739 |
- |
2740 |
# Ensure compiler support |
2741 |
- if use abi_x86_64; then |
2742 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
2743 |
- # Compile in subshell to prevent "Aborted" message |
2744 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
2745 |
- if ! eend $?; then |
2746 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
2747 |
- eerror |
2748 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
2749 |
- eerror |
2750 |
- return 1 |
2751 |
- fi |
2752 |
- fi |
2753 |
+ # (No checks here as of 2022) |
2754 |
+ return 0 |
2755 |
} |
2756 |
|
2757 |
wine_build_environment_check() { |
2758 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2759 |
|
2760 |
- if use abi_x86_64; then |
2761 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
2762 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
2763 |
- die |
2764 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
2765 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
2766 |
- die |
2767 |
- fi |
2768 |
- fi |
2769 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
2770 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
2771 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
2772 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
2773 |
- fi |
2774 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
2775 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
2776 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
2777 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
2778 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
2779 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
2780 |
- fi |
2781 |
- fi |
2782 |
- |
2783 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
2784 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
2785 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
2786 |
|
2787 |
diff --git a/app-emulation/wine-any/wine-any-3.18.ebuild b/app-emulation/wine-any/wine-any-3.18.ebuild |
2788 |
index 09f7079..af72f52 100644 |
2789 |
--- a/app-emulation/wine-any/wine-any-3.18.ebuild |
2790 |
+++ b/app-emulation/wine-any/wine-any-3.18.ebuild |
2791 |
@@ -188,80 +188,14 @@ fi |
2792 |
wine_compiler_check() { |
2793 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2794 |
|
2795 |
- # GCC-specific bugs |
2796 |
- if tc-is-gcc; then |
2797 |
- # bug #549768 |
2798 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
2799 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
2800 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
2801 |
- # Run in subshell to prevent "Aborted" message |
2802 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
2803 |
- if ! eend $?; then |
2804 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
2805 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
2806 |
- eerror "or use gcc-config to select a different compiler version." |
2807 |
- eerror "See https://bugs.gentoo.org/549768" |
2808 |
- eerror |
2809 |
- return 1 |
2810 |
- fi |
2811 |
- fi |
2812 |
- # bug #574044 |
2813 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
2814 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
2815 |
- # Compile in subshell to prevent "Aborted" message |
2816 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
2817 |
- if ! eend $?; then |
2818 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
2819 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
2820 |
- eerror "or use gcc-config to select a different compiler version." |
2821 |
- eerror "See https://bugs.gentoo.org/574044" |
2822 |
- eerror |
2823 |
- return 1 |
2824 |
- fi |
2825 |
- fi |
2826 |
- fi |
2827 |
- |
2828 |
# Ensure compiler support |
2829 |
- if use abi_x86_64; then |
2830 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
2831 |
- # Compile in subshell to prevent "Aborted" message |
2832 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
2833 |
- if ! eend $?; then |
2834 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
2835 |
- eerror |
2836 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
2837 |
- eerror |
2838 |
- return 1 |
2839 |
- fi |
2840 |
- fi |
2841 |
+ # (No checks here as of 2022) |
2842 |
+ return 0 |
2843 |
} |
2844 |
|
2845 |
wine_build_environment_check() { |
2846 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2847 |
|
2848 |
- if use abi_x86_64; then |
2849 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
2850 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
2851 |
- die |
2852 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
2853 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
2854 |
- die |
2855 |
- fi |
2856 |
- fi |
2857 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
2858 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
2859 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
2860 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
2861 |
- fi |
2862 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
2863 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
2864 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
2865 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
2866 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
2867 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
2868 |
- fi |
2869 |
- fi |
2870 |
- |
2871 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
2872 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
2873 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
2874 |
|
2875 |
diff --git a/app-emulation/wine-any/wine-any-3.19.ebuild b/app-emulation/wine-any/wine-any-3.19.ebuild |
2876 |
index 09f7079..af72f52 100644 |
2877 |
--- a/app-emulation/wine-any/wine-any-3.19.ebuild |
2878 |
+++ b/app-emulation/wine-any/wine-any-3.19.ebuild |
2879 |
@@ -188,80 +188,14 @@ fi |
2880 |
wine_compiler_check() { |
2881 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2882 |
|
2883 |
- # GCC-specific bugs |
2884 |
- if tc-is-gcc; then |
2885 |
- # bug #549768 |
2886 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
2887 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
2888 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
2889 |
- # Run in subshell to prevent "Aborted" message |
2890 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
2891 |
- if ! eend $?; then |
2892 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
2893 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
2894 |
- eerror "or use gcc-config to select a different compiler version." |
2895 |
- eerror "See https://bugs.gentoo.org/549768" |
2896 |
- eerror |
2897 |
- return 1 |
2898 |
- fi |
2899 |
- fi |
2900 |
- # bug #574044 |
2901 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
2902 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
2903 |
- # Compile in subshell to prevent "Aborted" message |
2904 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
2905 |
- if ! eend $?; then |
2906 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
2907 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
2908 |
- eerror "or use gcc-config to select a different compiler version." |
2909 |
- eerror "See https://bugs.gentoo.org/574044" |
2910 |
- eerror |
2911 |
- return 1 |
2912 |
- fi |
2913 |
- fi |
2914 |
- fi |
2915 |
- |
2916 |
# Ensure compiler support |
2917 |
- if use abi_x86_64; then |
2918 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
2919 |
- # Compile in subshell to prevent "Aborted" message |
2920 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
2921 |
- if ! eend $?; then |
2922 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
2923 |
- eerror |
2924 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
2925 |
- eerror |
2926 |
- return 1 |
2927 |
- fi |
2928 |
- fi |
2929 |
+ # (No checks here as of 2022) |
2930 |
+ return 0 |
2931 |
} |
2932 |
|
2933 |
wine_build_environment_check() { |
2934 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2935 |
|
2936 |
- if use abi_x86_64; then |
2937 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
2938 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
2939 |
- die |
2940 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
2941 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
2942 |
- die |
2943 |
- fi |
2944 |
- fi |
2945 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
2946 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
2947 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
2948 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
2949 |
- fi |
2950 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
2951 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
2952 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
2953 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
2954 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
2955 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
2956 |
- fi |
2957 |
- fi |
2958 |
- |
2959 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
2960 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
2961 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
2962 |
|
2963 |
diff --git a/app-emulation/wine-any/wine-any-3.20.ebuild b/app-emulation/wine-any/wine-any-3.20.ebuild |
2964 |
index 09f7079..af72f52 100644 |
2965 |
--- a/app-emulation/wine-any/wine-any-3.20.ebuild |
2966 |
+++ b/app-emulation/wine-any/wine-any-3.20.ebuild |
2967 |
@@ -188,80 +188,14 @@ fi |
2968 |
wine_compiler_check() { |
2969 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2970 |
|
2971 |
- # GCC-specific bugs |
2972 |
- if tc-is-gcc; then |
2973 |
- # bug #549768 |
2974 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
2975 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
2976 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
2977 |
- # Run in subshell to prevent "Aborted" message |
2978 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
2979 |
- if ! eend $?; then |
2980 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
2981 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
2982 |
- eerror "or use gcc-config to select a different compiler version." |
2983 |
- eerror "See https://bugs.gentoo.org/549768" |
2984 |
- eerror |
2985 |
- return 1 |
2986 |
- fi |
2987 |
- fi |
2988 |
- # bug #574044 |
2989 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
2990 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
2991 |
- # Compile in subshell to prevent "Aborted" message |
2992 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
2993 |
- if ! eend $?; then |
2994 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
2995 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
2996 |
- eerror "or use gcc-config to select a different compiler version." |
2997 |
- eerror "See https://bugs.gentoo.org/574044" |
2998 |
- eerror |
2999 |
- return 1 |
3000 |
- fi |
3001 |
- fi |
3002 |
- fi |
3003 |
- |
3004 |
# Ensure compiler support |
3005 |
- if use abi_x86_64; then |
3006 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
3007 |
- # Compile in subshell to prevent "Aborted" message |
3008 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
3009 |
- if ! eend $?; then |
3010 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
3011 |
- eerror |
3012 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
3013 |
- eerror |
3014 |
- return 1 |
3015 |
- fi |
3016 |
- fi |
3017 |
+ # (No checks here as of 2022) |
3018 |
+ return 0 |
3019 |
} |
3020 |
|
3021 |
wine_build_environment_check() { |
3022 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3023 |
|
3024 |
- if use abi_x86_64; then |
3025 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
3026 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
3027 |
- die |
3028 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
3029 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
3030 |
- die |
3031 |
- fi |
3032 |
- fi |
3033 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
3034 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
3035 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
3036 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
3037 |
- fi |
3038 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
3039 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
3040 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
3041 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
3042 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
3043 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
3044 |
- fi |
3045 |
- fi |
3046 |
- |
3047 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
3048 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
3049 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
3050 |
|
3051 |
diff --git a/app-emulation/wine-any/wine-any-3.21.ebuild b/app-emulation/wine-any/wine-any-3.21.ebuild |
3052 |
index 09f7079..af72f52 100644 |
3053 |
--- a/app-emulation/wine-any/wine-any-3.21.ebuild |
3054 |
+++ b/app-emulation/wine-any/wine-any-3.21.ebuild |
3055 |
@@ -188,80 +188,14 @@ fi |
3056 |
wine_compiler_check() { |
3057 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3058 |
|
3059 |
- # GCC-specific bugs |
3060 |
- if tc-is-gcc; then |
3061 |
- # bug #549768 |
3062 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
3063 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
3064 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
3065 |
- # Run in subshell to prevent "Aborted" message |
3066 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
3067 |
- if ! eend $?; then |
3068 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
3069 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
3070 |
- eerror "or use gcc-config to select a different compiler version." |
3071 |
- eerror "See https://bugs.gentoo.org/549768" |
3072 |
- eerror |
3073 |
- return 1 |
3074 |
- fi |
3075 |
- fi |
3076 |
- # bug #574044 |
3077 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
3078 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
3079 |
- # Compile in subshell to prevent "Aborted" message |
3080 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
3081 |
- if ! eend $?; then |
3082 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
3083 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
3084 |
- eerror "or use gcc-config to select a different compiler version." |
3085 |
- eerror "See https://bugs.gentoo.org/574044" |
3086 |
- eerror |
3087 |
- return 1 |
3088 |
- fi |
3089 |
- fi |
3090 |
- fi |
3091 |
- |
3092 |
# Ensure compiler support |
3093 |
- if use abi_x86_64; then |
3094 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
3095 |
- # Compile in subshell to prevent "Aborted" message |
3096 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
3097 |
- if ! eend $?; then |
3098 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
3099 |
- eerror |
3100 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
3101 |
- eerror |
3102 |
- return 1 |
3103 |
- fi |
3104 |
- fi |
3105 |
+ # (No checks here as of 2022) |
3106 |
+ return 0 |
3107 |
} |
3108 |
|
3109 |
wine_build_environment_check() { |
3110 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3111 |
|
3112 |
- if use abi_x86_64; then |
3113 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
3114 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
3115 |
- die |
3116 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
3117 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
3118 |
- die |
3119 |
- fi |
3120 |
- fi |
3121 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
3122 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
3123 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
3124 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
3125 |
- fi |
3126 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
3127 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
3128 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
3129 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
3130 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
3131 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
3132 |
- fi |
3133 |
- fi |
3134 |
- |
3135 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
3136 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
3137 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
3138 |
|
3139 |
diff --git a/app-emulation/wine-any/wine-any-3.3.ebuild b/app-emulation/wine-any/wine-any-3.3.ebuild |
3140 |
index 4ab5817..2ac7ef3 100644 |
3141 |
--- a/app-emulation/wine-any/wine-any-3.3.ebuild |
3142 |
+++ b/app-emulation/wine-any/wine-any-3.3.ebuild |
3143 |
@@ -186,80 +186,14 @@ fi |
3144 |
wine_compiler_check() { |
3145 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3146 |
|
3147 |
- # GCC-specific bugs |
3148 |
- if tc-is-gcc; then |
3149 |
- # bug #549768 |
3150 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
3151 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
3152 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
3153 |
- # Run in subshell to prevent "Aborted" message |
3154 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
3155 |
- if ! eend $?; then |
3156 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
3157 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
3158 |
- eerror "or use gcc-config to select a different compiler version." |
3159 |
- eerror "See https://bugs.gentoo.org/549768" |
3160 |
- eerror |
3161 |
- return 1 |
3162 |
- fi |
3163 |
- fi |
3164 |
- # bug #574044 |
3165 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
3166 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
3167 |
- # Compile in subshell to prevent "Aborted" message |
3168 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
3169 |
- if ! eend $?; then |
3170 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
3171 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
3172 |
- eerror "or use gcc-config to select a different compiler version." |
3173 |
- eerror "See https://bugs.gentoo.org/574044" |
3174 |
- eerror |
3175 |
- return 1 |
3176 |
- fi |
3177 |
- fi |
3178 |
- fi |
3179 |
- |
3180 |
# Ensure compiler support |
3181 |
- if use abi_x86_64; then |
3182 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
3183 |
- # Compile in subshell to prevent "Aborted" message |
3184 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
3185 |
- if ! eend $?; then |
3186 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
3187 |
- eerror |
3188 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
3189 |
- eerror |
3190 |
- return 1 |
3191 |
- fi |
3192 |
- fi |
3193 |
+ # (No checks here as of 2022) |
3194 |
+ return 0 |
3195 |
} |
3196 |
|
3197 |
wine_build_environment_check() { |
3198 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3199 |
|
3200 |
- if use abi_x86_64; then |
3201 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
3202 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
3203 |
- die |
3204 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
3205 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
3206 |
- die |
3207 |
- fi |
3208 |
- fi |
3209 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
3210 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
3211 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
3212 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
3213 |
- fi |
3214 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
3215 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
3216 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
3217 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
3218 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
3219 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
3220 |
- fi |
3221 |
- fi |
3222 |
- |
3223 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
3224 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
3225 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
3226 |
|
3227 |
diff --git a/app-emulation/wine-any/wine-any-3.4.ebuild b/app-emulation/wine-any/wine-any-3.4.ebuild |
3228 |
index 4ab5817..2ac7ef3 100644 |
3229 |
--- a/app-emulation/wine-any/wine-any-3.4.ebuild |
3230 |
+++ b/app-emulation/wine-any/wine-any-3.4.ebuild |
3231 |
@@ -186,80 +186,14 @@ fi |
3232 |
wine_compiler_check() { |
3233 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3234 |
|
3235 |
- # GCC-specific bugs |
3236 |
- if tc-is-gcc; then |
3237 |
- # bug #549768 |
3238 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
3239 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
3240 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
3241 |
- # Run in subshell to prevent "Aborted" message |
3242 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
3243 |
- if ! eend $?; then |
3244 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
3245 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
3246 |
- eerror "or use gcc-config to select a different compiler version." |
3247 |
- eerror "See https://bugs.gentoo.org/549768" |
3248 |
- eerror |
3249 |
- return 1 |
3250 |
- fi |
3251 |
- fi |
3252 |
- # bug #574044 |
3253 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
3254 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
3255 |
- # Compile in subshell to prevent "Aborted" message |
3256 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
3257 |
- if ! eend $?; then |
3258 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
3259 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
3260 |
- eerror "or use gcc-config to select a different compiler version." |
3261 |
- eerror "See https://bugs.gentoo.org/574044" |
3262 |
- eerror |
3263 |
- return 1 |
3264 |
- fi |
3265 |
- fi |
3266 |
- fi |
3267 |
- |
3268 |
# Ensure compiler support |
3269 |
- if use abi_x86_64; then |
3270 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
3271 |
- # Compile in subshell to prevent "Aborted" message |
3272 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
3273 |
- if ! eend $?; then |
3274 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
3275 |
- eerror |
3276 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
3277 |
- eerror |
3278 |
- return 1 |
3279 |
- fi |
3280 |
- fi |
3281 |
+ # (No checks here as of 2022) |
3282 |
+ return 0 |
3283 |
} |
3284 |
|
3285 |
wine_build_environment_check() { |
3286 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3287 |
|
3288 |
- if use abi_x86_64; then |
3289 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
3290 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
3291 |
- die |
3292 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
3293 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
3294 |
- die |
3295 |
- fi |
3296 |
- fi |
3297 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
3298 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
3299 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
3300 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
3301 |
- fi |
3302 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
3303 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
3304 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
3305 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
3306 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
3307 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
3308 |
- fi |
3309 |
- fi |
3310 |
- |
3311 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
3312 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
3313 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
3314 |
|
3315 |
diff --git a/app-emulation/wine-any/wine-any-3.5.ebuild b/app-emulation/wine-any/wine-any-3.5.ebuild |
3316 |
index 4ab5817..2ac7ef3 100644 |
3317 |
--- a/app-emulation/wine-any/wine-any-3.5.ebuild |
3318 |
+++ b/app-emulation/wine-any/wine-any-3.5.ebuild |
3319 |
@@ -186,80 +186,14 @@ fi |
3320 |
wine_compiler_check() { |
3321 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3322 |
|
3323 |
- # GCC-specific bugs |
3324 |
- if tc-is-gcc; then |
3325 |
- # bug #549768 |
3326 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
3327 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
3328 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
3329 |
- # Run in subshell to prevent "Aborted" message |
3330 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
3331 |
- if ! eend $?; then |
3332 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
3333 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
3334 |
- eerror "or use gcc-config to select a different compiler version." |
3335 |
- eerror "See https://bugs.gentoo.org/549768" |
3336 |
- eerror |
3337 |
- return 1 |
3338 |
- fi |
3339 |
- fi |
3340 |
- # bug #574044 |
3341 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
3342 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
3343 |
- # Compile in subshell to prevent "Aborted" message |
3344 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
3345 |
- if ! eend $?; then |
3346 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
3347 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
3348 |
- eerror "or use gcc-config to select a different compiler version." |
3349 |
- eerror "See https://bugs.gentoo.org/574044" |
3350 |
- eerror |
3351 |
- return 1 |
3352 |
- fi |
3353 |
- fi |
3354 |
- fi |
3355 |
- |
3356 |
# Ensure compiler support |
3357 |
- if use abi_x86_64; then |
3358 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
3359 |
- # Compile in subshell to prevent "Aborted" message |
3360 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
3361 |
- if ! eend $?; then |
3362 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
3363 |
- eerror |
3364 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
3365 |
- eerror |
3366 |
- return 1 |
3367 |
- fi |
3368 |
- fi |
3369 |
+ # (No checks here as of 2022) |
3370 |
+ return 0 |
3371 |
} |
3372 |
|
3373 |
wine_build_environment_check() { |
3374 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3375 |
|
3376 |
- if use abi_x86_64; then |
3377 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
3378 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
3379 |
- die |
3380 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
3381 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
3382 |
- die |
3383 |
- fi |
3384 |
- fi |
3385 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
3386 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
3387 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
3388 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
3389 |
- fi |
3390 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
3391 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
3392 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
3393 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
3394 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
3395 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
3396 |
- fi |
3397 |
- fi |
3398 |
- |
3399 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
3400 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
3401 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
3402 |
|
3403 |
diff --git a/app-emulation/wine-any/wine-any-3.6.ebuild b/app-emulation/wine-any/wine-any-3.6.ebuild |
3404 |
index 4ab5817..2ac7ef3 100644 |
3405 |
--- a/app-emulation/wine-any/wine-any-3.6.ebuild |
3406 |
+++ b/app-emulation/wine-any/wine-any-3.6.ebuild |
3407 |
@@ -186,80 +186,14 @@ fi |
3408 |
wine_compiler_check() { |
3409 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3410 |
|
3411 |
- # GCC-specific bugs |
3412 |
- if tc-is-gcc; then |
3413 |
- # bug #549768 |
3414 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
3415 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
3416 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
3417 |
- # Run in subshell to prevent "Aborted" message |
3418 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
3419 |
- if ! eend $?; then |
3420 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
3421 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
3422 |
- eerror "or use gcc-config to select a different compiler version." |
3423 |
- eerror "See https://bugs.gentoo.org/549768" |
3424 |
- eerror |
3425 |
- return 1 |
3426 |
- fi |
3427 |
- fi |
3428 |
- # bug #574044 |
3429 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
3430 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
3431 |
- # Compile in subshell to prevent "Aborted" message |
3432 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
3433 |
- if ! eend $?; then |
3434 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
3435 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
3436 |
- eerror "or use gcc-config to select a different compiler version." |
3437 |
- eerror "See https://bugs.gentoo.org/574044" |
3438 |
- eerror |
3439 |
- return 1 |
3440 |
- fi |
3441 |
- fi |
3442 |
- fi |
3443 |
- |
3444 |
# Ensure compiler support |
3445 |
- if use abi_x86_64; then |
3446 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
3447 |
- # Compile in subshell to prevent "Aborted" message |
3448 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
3449 |
- if ! eend $?; then |
3450 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
3451 |
- eerror |
3452 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
3453 |
- eerror |
3454 |
- return 1 |
3455 |
- fi |
3456 |
- fi |
3457 |
+ # (No checks here as of 2022) |
3458 |
+ return 0 |
3459 |
} |
3460 |
|
3461 |
wine_build_environment_check() { |
3462 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3463 |
|
3464 |
- if use abi_x86_64; then |
3465 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
3466 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
3467 |
- die |
3468 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
3469 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
3470 |
- die |
3471 |
- fi |
3472 |
- fi |
3473 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
3474 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
3475 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
3476 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
3477 |
- fi |
3478 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
3479 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
3480 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
3481 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
3482 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
3483 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
3484 |
- fi |
3485 |
- fi |
3486 |
- |
3487 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
3488 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
3489 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
3490 |
|
3491 |
diff --git a/app-emulation/wine-any/wine-any-3.7.ebuild b/app-emulation/wine-any/wine-any-3.7.ebuild |
3492 |
index 4ab5817..2ac7ef3 100644 |
3493 |
--- a/app-emulation/wine-any/wine-any-3.7.ebuild |
3494 |
+++ b/app-emulation/wine-any/wine-any-3.7.ebuild |
3495 |
@@ -186,80 +186,14 @@ fi |
3496 |
wine_compiler_check() { |
3497 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3498 |
|
3499 |
- # GCC-specific bugs |
3500 |
- if tc-is-gcc; then |
3501 |
- # bug #549768 |
3502 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
3503 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
3504 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
3505 |
- # Run in subshell to prevent "Aborted" message |
3506 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
3507 |
- if ! eend $?; then |
3508 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
3509 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
3510 |
- eerror "or use gcc-config to select a different compiler version." |
3511 |
- eerror "See https://bugs.gentoo.org/549768" |
3512 |
- eerror |
3513 |
- return 1 |
3514 |
- fi |
3515 |
- fi |
3516 |
- # bug #574044 |
3517 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
3518 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
3519 |
- # Compile in subshell to prevent "Aborted" message |
3520 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
3521 |
- if ! eend $?; then |
3522 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
3523 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
3524 |
- eerror "or use gcc-config to select a different compiler version." |
3525 |
- eerror "See https://bugs.gentoo.org/574044" |
3526 |
- eerror |
3527 |
- return 1 |
3528 |
- fi |
3529 |
- fi |
3530 |
- fi |
3531 |
- |
3532 |
# Ensure compiler support |
3533 |
- if use abi_x86_64; then |
3534 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
3535 |
- # Compile in subshell to prevent "Aborted" message |
3536 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
3537 |
- if ! eend $?; then |
3538 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
3539 |
- eerror |
3540 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
3541 |
- eerror |
3542 |
- return 1 |
3543 |
- fi |
3544 |
- fi |
3545 |
+ # (No checks here as of 2022) |
3546 |
+ return 0 |
3547 |
} |
3548 |
|
3549 |
wine_build_environment_check() { |
3550 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3551 |
|
3552 |
- if use abi_x86_64; then |
3553 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
3554 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
3555 |
- die |
3556 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
3557 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
3558 |
- die |
3559 |
- fi |
3560 |
- fi |
3561 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
3562 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
3563 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
3564 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
3565 |
- fi |
3566 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
3567 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
3568 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
3569 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
3570 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
3571 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
3572 |
- fi |
3573 |
- fi |
3574 |
- |
3575 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
3576 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
3577 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
3578 |
|
3579 |
diff --git a/app-emulation/wine-any/wine-any-3.8.ebuild b/app-emulation/wine-any/wine-any-3.8.ebuild |
3580 |
index 4ab5817..2ac7ef3 100644 |
3581 |
--- a/app-emulation/wine-any/wine-any-3.8.ebuild |
3582 |
+++ b/app-emulation/wine-any/wine-any-3.8.ebuild |
3583 |
@@ -186,80 +186,14 @@ fi |
3584 |
wine_compiler_check() { |
3585 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3586 |
|
3587 |
- # GCC-specific bugs |
3588 |
- if tc-is-gcc; then |
3589 |
- # bug #549768 |
3590 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
3591 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
3592 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
3593 |
- # Run in subshell to prevent "Aborted" message |
3594 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
3595 |
- if ! eend $?; then |
3596 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
3597 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
3598 |
- eerror "or use gcc-config to select a different compiler version." |
3599 |
- eerror "See https://bugs.gentoo.org/549768" |
3600 |
- eerror |
3601 |
- return 1 |
3602 |
- fi |
3603 |
- fi |
3604 |
- # bug #574044 |
3605 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
3606 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
3607 |
- # Compile in subshell to prevent "Aborted" message |
3608 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
3609 |
- if ! eend $?; then |
3610 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
3611 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
3612 |
- eerror "or use gcc-config to select a different compiler version." |
3613 |
- eerror "See https://bugs.gentoo.org/574044" |
3614 |
- eerror |
3615 |
- return 1 |
3616 |
- fi |
3617 |
- fi |
3618 |
- fi |
3619 |
- |
3620 |
# Ensure compiler support |
3621 |
- if use abi_x86_64; then |
3622 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
3623 |
- # Compile in subshell to prevent "Aborted" message |
3624 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
3625 |
- if ! eend $?; then |
3626 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
3627 |
- eerror |
3628 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
3629 |
- eerror |
3630 |
- return 1 |
3631 |
- fi |
3632 |
- fi |
3633 |
+ # (No checks here as of 2022) |
3634 |
+ return 0 |
3635 |
} |
3636 |
|
3637 |
wine_build_environment_check() { |
3638 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3639 |
|
3640 |
- if use abi_x86_64; then |
3641 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
3642 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
3643 |
- die |
3644 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
3645 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
3646 |
- die |
3647 |
- fi |
3648 |
- fi |
3649 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
3650 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
3651 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
3652 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
3653 |
- fi |
3654 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
3655 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
3656 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
3657 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
3658 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
3659 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
3660 |
- fi |
3661 |
- fi |
3662 |
- |
3663 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
3664 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
3665 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
3666 |
|
3667 |
diff --git a/app-emulation/wine-any/wine-any-3.9.ebuild b/app-emulation/wine-any/wine-any-3.9.ebuild |
3668 |
index caa75e0..7ad9008 100644 |
3669 |
--- a/app-emulation/wine-any/wine-any-3.9.ebuild |
3670 |
+++ b/app-emulation/wine-any/wine-any-3.9.ebuild |
3671 |
@@ -188,80 +188,14 @@ fi |
3672 |
wine_compiler_check() { |
3673 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3674 |
|
3675 |
- # GCC-specific bugs |
3676 |
- if tc-is-gcc; then |
3677 |
- # bug #549768 |
3678 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
3679 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
3680 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
3681 |
- # Run in subshell to prevent "Aborted" message |
3682 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
3683 |
- if ! eend $?; then |
3684 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
3685 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
3686 |
- eerror "or use gcc-config to select a different compiler version." |
3687 |
- eerror "See https://bugs.gentoo.org/549768" |
3688 |
- eerror |
3689 |
- return 1 |
3690 |
- fi |
3691 |
- fi |
3692 |
- # bug #574044 |
3693 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
3694 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
3695 |
- # Compile in subshell to prevent "Aborted" message |
3696 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
3697 |
- if ! eend $?; then |
3698 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
3699 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
3700 |
- eerror "or use gcc-config to select a different compiler version." |
3701 |
- eerror "See https://bugs.gentoo.org/574044" |
3702 |
- eerror |
3703 |
- return 1 |
3704 |
- fi |
3705 |
- fi |
3706 |
- fi |
3707 |
- |
3708 |
# Ensure compiler support |
3709 |
- if use abi_x86_64; then |
3710 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
3711 |
- # Compile in subshell to prevent "Aborted" message |
3712 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
3713 |
- if ! eend $?; then |
3714 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
3715 |
- eerror |
3716 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
3717 |
- eerror |
3718 |
- return 1 |
3719 |
- fi |
3720 |
- fi |
3721 |
+ # (No checks here as of 2022) |
3722 |
+ return 0 |
3723 |
} |
3724 |
|
3725 |
wine_build_environment_check() { |
3726 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3727 |
|
3728 |
- if use abi_x86_64; then |
3729 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
3730 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
3731 |
- die |
3732 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
3733 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
3734 |
- die |
3735 |
- fi |
3736 |
- fi |
3737 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
3738 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
3739 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
3740 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
3741 |
- fi |
3742 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
3743 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
3744 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
3745 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
3746 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
3747 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
3748 |
- fi |
3749 |
- fi |
3750 |
- |
3751 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
3752 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
3753 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
3754 |
|
3755 |
diff --git a/app-emulation/wine-any/wine-any-4.0.ebuild b/app-emulation/wine-any/wine-any-4.0.ebuild |
3756 |
index d031eeb..969cf5e 100644 |
3757 |
--- a/app-emulation/wine-any/wine-any-4.0.ebuild |
3758 |
+++ b/app-emulation/wine-any/wine-any-4.0.ebuild |
3759 |
@@ -189,80 +189,14 @@ fi |
3760 |
wine_compiler_check() { |
3761 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3762 |
|
3763 |
- # GCC-specific bugs |
3764 |
- if tc-is-gcc; then |
3765 |
- # bug #549768 |
3766 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
3767 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
3768 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
3769 |
- # Run in subshell to prevent "Aborted" message |
3770 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
3771 |
- if ! eend $?; then |
3772 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
3773 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
3774 |
- eerror "or use gcc-config to select a different compiler version." |
3775 |
- eerror "See https://bugs.gentoo.org/549768" |
3776 |
- eerror |
3777 |
- return 1 |
3778 |
- fi |
3779 |
- fi |
3780 |
- # bug #574044 |
3781 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
3782 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
3783 |
- # Compile in subshell to prevent "Aborted" message |
3784 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
3785 |
- if ! eend $?; then |
3786 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
3787 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
3788 |
- eerror "or use gcc-config to select a different compiler version." |
3789 |
- eerror "See https://bugs.gentoo.org/574044" |
3790 |
- eerror |
3791 |
- return 1 |
3792 |
- fi |
3793 |
- fi |
3794 |
- fi |
3795 |
- |
3796 |
# Ensure compiler support |
3797 |
- if use abi_x86_64; then |
3798 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
3799 |
- # Compile in subshell to prevent "Aborted" message |
3800 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
3801 |
- if ! eend $?; then |
3802 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
3803 |
- eerror |
3804 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
3805 |
- eerror |
3806 |
- return 1 |
3807 |
- fi |
3808 |
- fi |
3809 |
+ # (No checks here as of 2022) |
3810 |
+ return 0 |
3811 |
} |
3812 |
|
3813 |
wine_build_environment_check() { |
3814 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3815 |
|
3816 |
- if use abi_x86_64; then |
3817 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
3818 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
3819 |
- die |
3820 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
3821 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
3822 |
- die |
3823 |
- fi |
3824 |
- fi |
3825 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
3826 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
3827 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
3828 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
3829 |
- fi |
3830 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
3831 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
3832 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
3833 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
3834 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
3835 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
3836 |
- fi |
3837 |
- fi |
3838 |
- |
3839 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
3840 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
3841 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
3842 |
|
3843 |
diff --git a/app-emulation/wine-any/wine-any-4.1.ebuild b/app-emulation/wine-any/wine-any-4.1.ebuild |
3844 |
index 2df2d37..f5b7738 100644 |
3845 |
--- a/app-emulation/wine-any/wine-any-4.1.ebuild |
3846 |
+++ b/app-emulation/wine-any/wine-any-4.1.ebuild |
3847 |
@@ -188,80 +188,14 @@ fi |
3848 |
wine_compiler_check() { |
3849 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3850 |
|
3851 |
- # GCC-specific bugs |
3852 |
- if tc-is-gcc; then |
3853 |
- # bug #549768 |
3854 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
3855 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
3856 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
3857 |
- # Run in subshell to prevent "Aborted" message |
3858 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
3859 |
- if ! eend $?; then |
3860 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
3861 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
3862 |
- eerror "or use gcc-config to select a different compiler version." |
3863 |
- eerror "See https://bugs.gentoo.org/549768" |
3864 |
- eerror |
3865 |
- return 1 |
3866 |
- fi |
3867 |
- fi |
3868 |
- # bug #574044 |
3869 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
3870 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
3871 |
- # Compile in subshell to prevent "Aborted" message |
3872 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
3873 |
- if ! eend $?; then |
3874 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
3875 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
3876 |
- eerror "or use gcc-config to select a different compiler version." |
3877 |
- eerror "See https://bugs.gentoo.org/574044" |
3878 |
- eerror |
3879 |
- return 1 |
3880 |
- fi |
3881 |
- fi |
3882 |
- fi |
3883 |
- |
3884 |
# Ensure compiler support |
3885 |
- if use abi_x86_64; then |
3886 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
3887 |
- # Compile in subshell to prevent "Aborted" message |
3888 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
3889 |
- if ! eend $?; then |
3890 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
3891 |
- eerror |
3892 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
3893 |
- eerror |
3894 |
- return 1 |
3895 |
- fi |
3896 |
- fi |
3897 |
+ # (No checks here as of 2022) |
3898 |
+ return 0 |
3899 |
} |
3900 |
|
3901 |
wine_build_environment_check() { |
3902 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3903 |
|
3904 |
- if use abi_x86_64; then |
3905 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
3906 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
3907 |
- die |
3908 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
3909 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
3910 |
- die |
3911 |
- fi |
3912 |
- fi |
3913 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
3914 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
3915 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
3916 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
3917 |
- fi |
3918 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
3919 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
3920 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
3921 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
3922 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
3923 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
3924 |
- fi |
3925 |
- fi |
3926 |
- |
3927 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
3928 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
3929 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
3930 |
|
3931 |
diff --git a/app-emulation/wine-any/wine-any-9999.ebuild b/app-emulation/wine-any/wine-any-9999.ebuild |
3932 |
index 7bb14a0..f17a74b 100644 |
3933 |
--- a/app-emulation/wine-any/wine-any-9999.ebuild |
3934 |
+++ b/app-emulation/wine-any/wine-any-9999.ebuild |
3935 |
@@ -188,80 +188,14 @@ fi |
3936 |
wine_compiler_check() { |
3937 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3938 |
|
3939 |
- # GCC-specific bugs |
3940 |
- if tc-is-gcc; then |
3941 |
- # bug #549768 |
3942 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
3943 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
3944 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
3945 |
- # Run in subshell to prevent "Aborted" message |
3946 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
3947 |
- if ! eend $?; then |
3948 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
3949 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
3950 |
- eerror "or use gcc-config to select a different compiler version." |
3951 |
- eerror "See https://bugs.gentoo.org/549768" |
3952 |
- eerror |
3953 |
- return 1 |
3954 |
- fi |
3955 |
- fi |
3956 |
- # bug #574044 |
3957 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
3958 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
3959 |
- # Compile in subshell to prevent "Aborted" message |
3960 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
3961 |
- if ! eend $?; then |
3962 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
3963 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
3964 |
- eerror "or use gcc-config to select a different compiler version." |
3965 |
- eerror "See https://bugs.gentoo.org/574044" |
3966 |
- eerror |
3967 |
- return 1 |
3968 |
- fi |
3969 |
- fi |
3970 |
- fi |
3971 |
- |
3972 |
# Ensure compiler support |
3973 |
- if use abi_x86_64; then |
3974 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
3975 |
- # Compile in subshell to prevent "Aborted" message |
3976 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
3977 |
- if ! eend $?; then |
3978 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
3979 |
- eerror |
3980 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
3981 |
- eerror |
3982 |
- return 1 |
3983 |
- fi |
3984 |
- fi |
3985 |
+ # (No checks here as of 2022) |
3986 |
+ return 0 |
3987 |
} |
3988 |
|
3989 |
wine_build_environment_check() { |
3990 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3991 |
|
3992 |
- if use abi_x86_64; then |
3993 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
3994 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
3995 |
- die |
3996 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
3997 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
3998 |
- die |
3999 |
- fi |
4000 |
- fi |
4001 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
4002 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
4003 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
4004 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
4005 |
- fi |
4006 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
4007 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
4008 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
4009 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
4010 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
4011 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
4012 |
- fi |
4013 |
- fi |
4014 |
- |
4015 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
4016 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
4017 |
eerror "See https://bugs.gentoo.org/487864 for more details." |