1 |
commit: 2d27b3324cb0d965823d0333c08180d5e7fd2f60 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 17 03:44:17 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 17 03:44:17 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/wine.git/commit/?id=2d27b332 |
7 |
|
8 |
app-emulation/wine-staging: [QA] drop (very) stale GCC version checks |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
app-emulation/wine-staging/wine-staging-4.0.ebuild | 70 +--------------------- |
13 |
app-emulation/wine-staging/wine-staging-4.1.ebuild | 70 +--------------------- |
14 |
.../wine-staging/wine-staging-4.10.ebuild | 70 +--------------------- |
15 |
.../wine-staging/wine-staging-4.11.ebuild | 70 +--------------------- |
16 |
.../wine-staging/wine-staging-4.12.1.ebuild | 70 +--------------------- |
17 |
.../wine-staging/wine-staging-4.13.ebuild | 70 +--------------------- |
18 |
.../wine-staging/wine-staging-4.14.ebuild | 70 +--------------------- |
19 |
.../wine-staging/wine-staging-4.15.ebuild | 70 +--------------------- |
20 |
.../wine-staging/wine-staging-4.16.ebuild | 70 +--------------------- |
21 |
.../wine-staging/wine-staging-4.17.ebuild | 70 +--------------------- |
22 |
.../wine-staging/wine-staging-4.18.ebuild | 70 +--------------------- |
23 |
.../wine-staging/wine-staging-4.19.ebuild | 70 +--------------------- |
24 |
app-emulation/wine-staging/wine-staging-4.2.ebuild | 70 +--------------------- |
25 |
.../wine-staging/wine-staging-4.20.ebuild | 70 +--------------------- |
26 |
.../wine-staging/wine-staging-4.21.ebuild | 70 +--------------------- |
27 |
app-emulation/wine-staging/wine-staging-4.3.ebuild | 70 +--------------------- |
28 |
.../wine-staging/wine-staging-4.4-r1.ebuild | 70 +--------------------- |
29 |
app-emulation/wine-staging/wine-staging-4.4.ebuild | 70 +--------------------- |
30 |
app-emulation/wine-staging/wine-staging-4.5.ebuild | 70 +--------------------- |
31 |
.../wine-staging/wine-staging-4.6-r1.ebuild | 70 +--------------------- |
32 |
app-emulation/wine-staging/wine-staging-4.6.ebuild | 70 +--------------------- |
33 |
.../wine-staging/wine-staging-4.7-r1.ebuild | 70 +--------------------- |
34 |
app-emulation/wine-staging/wine-staging-4.7.ebuild | 70 +--------------------- |
35 |
app-emulation/wine-staging/wine-staging-4.8.ebuild | 70 +--------------------- |
36 |
app-emulation/wine-staging/wine-staging-4.9.ebuild | 70 +--------------------- |
37 |
app-emulation/wine-staging/wine-staging-5.0.ebuild | 70 +--------------------- |
38 |
app-emulation/wine-staging/wine-staging-5.1.ebuild | 70 +--------------------- |
39 |
.../wine-staging/wine-staging-5.10-r1.ebuild | 70 +--------------------- |
40 |
.../wine-staging/wine-staging-5.11.ebuild | 70 +--------------------- |
41 |
.../wine-staging/wine-staging-5.12.ebuild | 70 +--------------------- |
42 |
.../wine-staging/wine-staging-5.13.ebuild | 70 +--------------------- |
43 |
.../wine-staging/wine-staging-5.14.ebuild | 70 +--------------------- |
44 |
.../wine-staging/wine-staging-5.15.ebuild | 70 +--------------------- |
45 |
.../wine-staging/wine-staging-5.16.ebuild | 70 +--------------------- |
46 |
.../wine-staging/wine-staging-5.17.ebuild | 70 +--------------------- |
47 |
.../wine-staging/wine-staging-5.18.ebuild | 70 +--------------------- |
48 |
.../wine-staging/wine-staging-5.19.ebuild | 70 +--------------------- |
49 |
app-emulation/wine-staging/wine-staging-5.2.ebuild | 70 +--------------------- |
50 |
.../wine-staging/wine-staging-5.20.ebuild | 70 +--------------------- |
51 |
.../wine-staging/wine-staging-5.21.ebuild | 70 +--------------------- |
52 |
.../wine-staging/wine-staging-5.22-r1.ebuild | 70 +--------------------- |
53 |
.../wine-staging/wine-staging-5.22-r2.ebuild | 70 +--------------------- |
54 |
.../wine-staging/wine-staging-5.22.ebuild | 70 +--------------------- |
55 |
.../wine-staging/wine-staging-5.3-r1.ebuild | 70 +--------------------- |
56 |
app-emulation/wine-staging/wine-staging-5.3.ebuild | 70 +--------------------- |
57 |
app-emulation/wine-staging/wine-staging-5.4.ebuild | 70 +--------------------- |
58 |
.../wine-staging/wine-staging-5.5-r1.ebuild | 70 +--------------------- |
59 |
app-emulation/wine-staging/wine-staging-5.5.ebuild | 70 +--------------------- |
60 |
app-emulation/wine-staging/wine-staging-5.6.ebuild | 70 +--------------------- |
61 |
app-emulation/wine-staging/wine-staging-5.7.ebuild | 70 +--------------------- |
62 |
app-emulation/wine-staging/wine-staging-5.8.ebuild | 70 +--------------------- |
63 |
app-emulation/wine-staging/wine-staging-5.9.ebuild | 70 +--------------------- |
64 |
app-emulation/wine-staging/wine-staging-6.0.ebuild | 70 +--------------------- |
65 |
app-emulation/wine-staging/wine-staging-6.1.ebuild | 70 +--------------------- |
66 |
app-emulation/wine-staging/wine-staging-6.2.ebuild | 70 +--------------------- |
67 |
.../wine-staging/wine-staging-6.3-r1.ebuild | 70 +--------------------- |
68 |
app-emulation/wine-staging/wine-staging-6.3.ebuild | 70 +--------------------- |
69 |
57 files changed, 114 insertions(+), 3876 deletions(-) |
70 |
|
71 |
diff --git a/app-emulation/wine-staging/wine-staging-4.0.ebuild b/app-emulation/wine-staging/wine-staging-4.0.ebuild |
72 |
index 363d7de..c71e677 100644 |
73 |
--- a/app-emulation/wine-staging/wine-staging-4.0.ebuild |
74 |
+++ b/app-emulation/wine-staging/wine-staging-4.0.ebuild |
75 |
@@ -179,80 +179,14 @@ fi |
76 |
wine_compiler_check() { |
77 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
78 |
|
79 |
- # GCC-specific bugs |
80 |
- if tc-is-gcc; then |
81 |
- # bug #549768 |
82 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
83 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
84 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
85 |
- # Run in subshell to prevent "Aborted" message |
86 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
87 |
- if ! eend $?; then |
88 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
89 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
90 |
- eerror "or use gcc-config to select a different compiler version." |
91 |
- eerror "See https://bugs.gentoo.org/549768" |
92 |
- eerror |
93 |
- return 1 |
94 |
- fi |
95 |
- fi |
96 |
- # bug #574044 |
97 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
98 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
99 |
- # Compile in subshell to prevent "Aborted" message |
100 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
101 |
- if ! eend $?; then |
102 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
103 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
104 |
- eerror "or use gcc-config to select a different compiler version." |
105 |
- eerror "See https://bugs.gentoo.org/574044" |
106 |
- eerror |
107 |
- return 1 |
108 |
- fi |
109 |
- fi |
110 |
- fi |
111 |
- |
112 |
# Ensure compiler support |
113 |
- if use abi_x86_64; then |
114 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
115 |
- # Compile in subshell to prevent "Aborted" message |
116 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
117 |
- if ! eend $?; then |
118 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
119 |
- eerror |
120 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
121 |
- eerror |
122 |
- return 1 |
123 |
- fi |
124 |
- fi |
125 |
+ # (No checks here as of 2022) |
126 |
+ return 0 |
127 |
} |
128 |
|
129 |
wine_build_environment_check() { |
130 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
131 |
|
132 |
- if use abi_x86_64; then |
133 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
134 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
135 |
- die |
136 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
137 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
138 |
- die |
139 |
- fi |
140 |
- fi |
141 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
142 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
143 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
144 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
145 |
- fi |
146 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
147 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
148 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
149 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
150 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
151 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
152 |
- fi |
153 |
- fi |
154 |
- |
155 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
156 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
157 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
158 |
|
159 |
diff --git a/app-emulation/wine-staging/wine-staging-4.1.ebuild b/app-emulation/wine-staging/wine-staging-4.1.ebuild |
160 |
index 8c189bb..ef97654 100644 |
161 |
--- a/app-emulation/wine-staging/wine-staging-4.1.ebuild |
162 |
+++ b/app-emulation/wine-staging/wine-staging-4.1.ebuild |
163 |
@@ -178,80 +178,14 @@ fi |
164 |
wine_compiler_check() { |
165 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
166 |
|
167 |
- # GCC-specific bugs |
168 |
- if tc-is-gcc; then |
169 |
- # bug #549768 |
170 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
171 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
172 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
173 |
- # Run in subshell to prevent "Aborted" message |
174 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
175 |
- if ! eend $?; then |
176 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
177 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
178 |
- eerror "or use gcc-config to select a different compiler version." |
179 |
- eerror "See https://bugs.gentoo.org/549768" |
180 |
- eerror |
181 |
- return 1 |
182 |
- fi |
183 |
- fi |
184 |
- # bug #574044 |
185 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
186 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
187 |
- # Compile in subshell to prevent "Aborted" message |
188 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
189 |
- if ! eend $?; then |
190 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
191 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
192 |
- eerror "or use gcc-config to select a different compiler version." |
193 |
- eerror "See https://bugs.gentoo.org/574044" |
194 |
- eerror |
195 |
- return 1 |
196 |
- fi |
197 |
- fi |
198 |
- fi |
199 |
- |
200 |
# Ensure compiler support |
201 |
- if use abi_x86_64; then |
202 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
203 |
- # Compile in subshell to prevent "Aborted" message |
204 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
205 |
- if ! eend $?; then |
206 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
207 |
- eerror |
208 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
209 |
- eerror |
210 |
- return 1 |
211 |
- fi |
212 |
- fi |
213 |
+ # (No checks here as of 2022) |
214 |
+ return 0 |
215 |
} |
216 |
|
217 |
wine_build_environment_check() { |
218 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
219 |
|
220 |
- if use abi_x86_64; then |
221 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
222 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
223 |
- die |
224 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
225 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
226 |
- die |
227 |
- fi |
228 |
- fi |
229 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
230 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
231 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
232 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
233 |
- fi |
234 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
235 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
236 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
237 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
238 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
239 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
240 |
- fi |
241 |
- fi |
242 |
- |
243 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
244 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
245 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
246 |
|
247 |
diff --git a/app-emulation/wine-staging/wine-staging-4.10.ebuild b/app-emulation/wine-staging/wine-staging-4.10.ebuild |
248 |
index 2137171..07fcab9 100644 |
249 |
--- a/app-emulation/wine-staging/wine-staging-4.10.ebuild |
250 |
+++ b/app-emulation/wine-staging/wine-staging-4.10.ebuild |
251 |
@@ -179,80 +179,14 @@ fi |
252 |
wine_compiler_check() { |
253 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
254 |
|
255 |
- # GCC-specific bugs |
256 |
- if tc-is-gcc; then |
257 |
- # bug #549768 |
258 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
259 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
260 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
261 |
- # Run in subshell to prevent "Aborted" message |
262 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
263 |
- if ! eend $?; then |
264 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
265 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
266 |
- eerror "or use gcc-config to select a different compiler version." |
267 |
- eerror "See https://bugs.gentoo.org/549768" |
268 |
- eerror |
269 |
- return 1 |
270 |
- fi |
271 |
- fi |
272 |
- # bug #574044 |
273 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
274 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
275 |
- # Compile in subshell to prevent "Aborted" message |
276 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
277 |
- if ! eend $?; then |
278 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
279 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
280 |
- eerror "or use gcc-config to select a different compiler version." |
281 |
- eerror "See https://bugs.gentoo.org/574044" |
282 |
- eerror |
283 |
- return 1 |
284 |
- fi |
285 |
- fi |
286 |
- fi |
287 |
- |
288 |
# Ensure compiler support |
289 |
- if use abi_x86_64; then |
290 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
291 |
- # Compile in subshell to prevent "Aborted" message |
292 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
293 |
- if ! eend $?; then |
294 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
295 |
- eerror |
296 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
297 |
- eerror |
298 |
- return 1 |
299 |
- fi |
300 |
- fi |
301 |
+ # (No checks here as of 2022) |
302 |
+ return 0 |
303 |
} |
304 |
|
305 |
wine_build_environment_check() { |
306 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
307 |
|
308 |
- if use abi_x86_64; then |
309 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
310 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
311 |
- die |
312 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
313 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
314 |
- die |
315 |
- fi |
316 |
- fi |
317 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
318 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
319 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
320 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
321 |
- fi |
322 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
323 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
324 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
325 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
326 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
327 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
328 |
- fi |
329 |
- fi |
330 |
- |
331 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
332 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
333 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
334 |
|
335 |
diff --git a/app-emulation/wine-staging/wine-staging-4.11.ebuild b/app-emulation/wine-staging/wine-staging-4.11.ebuild |
336 |
index 3cb1332..90df9e8 100644 |
337 |
--- a/app-emulation/wine-staging/wine-staging-4.11.ebuild |
338 |
+++ b/app-emulation/wine-staging/wine-staging-4.11.ebuild |
339 |
@@ -179,80 +179,14 @@ fi |
340 |
wine_compiler_check() { |
341 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
342 |
|
343 |
- # GCC-specific bugs |
344 |
- if tc-is-gcc; then |
345 |
- # bug #549768 |
346 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
347 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
348 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
349 |
- # Run in subshell to prevent "Aborted" message |
350 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
351 |
- if ! eend $?; then |
352 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
353 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
354 |
- eerror "or use gcc-config to select a different compiler version." |
355 |
- eerror "See https://bugs.gentoo.org/549768" |
356 |
- eerror |
357 |
- return 1 |
358 |
- fi |
359 |
- fi |
360 |
- # bug #574044 |
361 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
362 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
363 |
- # Compile in subshell to prevent "Aborted" message |
364 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
365 |
- if ! eend $?; then |
366 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
367 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
368 |
- eerror "or use gcc-config to select a different compiler version." |
369 |
- eerror "See https://bugs.gentoo.org/574044" |
370 |
- eerror |
371 |
- return 1 |
372 |
- fi |
373 |
- fi |
374 |
- fi |
375 |
- |
376 |
# Ensure compiler support |
377 |
- if use abi_x86_64; then |
378 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
379 |
- # Compile in subshell to prevent "Aborted" message |
380 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
381 |
- if ! eend $?; then |
382 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
383 |
- eerror |
384 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
385 |
- eerror |
386 |
- return 1 |
387 |
- fi |
388 |
- fi |
389 |
+ # (No checks here as of 2022) |
390 |
+ return 0 |
391 |
} |
392 |
|
393 |
wine_build_environment_check() { |
394 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
395 |
|
396 |
- if use abi_x86_64; then |
397 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
398 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
399 |
- die |
400 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
401 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
402 |
- die |
403 |
- fi |
404 |
- fi |
405 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
406 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
407 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
408 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
409 |
- fi |
410 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
411 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
412 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
413 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
414 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
415 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
416 |
- fi |
417 |
- fi |
418 |
- |
419 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
420 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
421 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
422 |
|
423 |
diff --git a/app-emulation/wine-staging/wine-staging-4.12.1.ebuild b/app-emulation/wine-staging/wine-staging-4.12.1.ebuild |
424 |
index 3cb1332..90df9e8 100644 |
425 |
--- a/app-emulation/wine-staging/wine-staging-4.12.1.ebuild |
426 |
+++ b/app-emulation/wine-staging/wine-staging-4.12.1.ebuild |
427 |
@@ -179,80 +179,14 @@ fi |
428 |
wine_compiler_check() { |
429 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
430 |
|
431 |
- # GCC-specific bugs |
432 |
- if tc-is-gcc; then |
433 |
- # bug #549768 |
434 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
435 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
436 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
437 |
- # Run in subshell to prevent "Aborted" message |
438 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
439 |
- if ! eend $?; then |
440 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
441 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
442 |
- eerror "or use gcc-config to select a different compiler version." |
443 |
- eerror "See https://bugs.gentoo.org/549768" |
444 |
- eerror |
445 |
- return 1 |
446 |
- fi |
447 |
- fi |
448 |
- # bug #574044 |
449 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
450 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
451 |
- # Compile in subshell to prevent "Aborted" message |
452 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
453 |
- if ! eend $?; then |
454 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
455 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
456 |
- eerror "or use gcc-config to select a different compiler version." |
457 |
- eerror "See https://bugs.gentoo.org/574044" |
458 |
- eerror |
459 |
- return 1 |
460 |
- fi |
461 |
- fi |
462 |
- fi |
463 |
- |
464 |
# Ensure compiler support |
465 |
- if use abi_x86_64; then |
466 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
467 |
- # Compile in subshell to prevent "Aborted" message |
468 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
469 |
- if ! eend $?; then |
470 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
471 |
- eerror |
472 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
473 |
- eerror |
474 |
- return 1 |
475 |
- fi |
476 |
- fi |
477 |
+ # (No checks here as of 2022) |
478 |
+ return 0 |
479 |
} |
480 |
|
481 |
wine_build_environment_check() { |
482 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
483 |
|
484 |
- if use abi_x86_64; then |
485 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
486 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
487 |
- die |
488 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
489 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
490 |
- die |
491 |
- fi |
492 |
- fi |
493 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
494 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
495 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
496 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
497 |
- fi |
498 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
499 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
500 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
501 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
502 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
503 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
504 |
- fi |
505 |
- fi |
506 |
- |
507 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
508 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
509 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
510 |
|
511 |
diff --git a/app-emulation/wine-staging/wine-staging-4.13.ebuild b/app-emulation/wine-staging/wine-staging-4.13.ebuild |
512 |
index e673ef6..9441549 100644 |
513 |
--- a/app-emulation/wine-staging/wine-staging-4.13.ebuild |
514 |
+++ b/app-emulation/wine-staging/wine-staging-4.13.ebuild |
515 |
@@ -177,80 +177,14 @@ fi |
516 |
wine_compiler_check() { |
517 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
518 |
|
519 |
- # GCC-specific bugs |
520 |
- if tc-is-gcc; then |
521 |
- # bug #549768 |
522 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
523 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
524 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
525 |
- # Run in subshell to prevent "Aborted" message |
526 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
527 |
- if ! eend $?; then |
528 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
529 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
530 |
- eerror "or use gcc-config to select a different compiler version." |
531 |
- eerror "See https://bugs.gentoo.org/549768" |
532 |
- eerror |
533 |
- return 1 |
534 |
- fi |
535 |
- fi |
536 |
- # bug #574044 |
537 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
538 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
539 |
- # Compile in subshell to prevent "Aborted" message |
540 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
541 |
- if ! eend $?; then |
542 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
543 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
544 |
- eerror "or use gcc-config to select a different compiler version." |
545 |
- eerror "See https://bugs.gentoo.org/574044" |
546 |
- eerror |
547 |
- return 1 |
548 |
- fi |
549 |
- fi |
550 |
- fi |
551 |
- |
552 |
# Ensure compiler support |
553 |
- if use abi_x86_64; then |
554 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
555 |
- # Compile in subshell to prevent "Aborted" message |
556 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
557 |
- if ! eend $?; then |
558 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
559 |
- eerror |
560 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
561 |
- eerror |
562 |
- return 1 |
563 |
- fi |
564 |
- fi |
565 |
+ # (No checks here as of 2022) |
566 |
+ return 0 |
567 |
} |
568 |
|
569 |
wine_build_environment_check() { |
570 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
571 |
|
572 |
- if use abi_x86_64; then |
573 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
574 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
575 |
- die |
576 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
577 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
578 |
- die |
579 |
- fi |
580 |
- fi |
581 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
582 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
583 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
584 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
585 |
- fi |
586 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
587 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
588 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
589 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
590 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
591 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
592 |
- fi |
593 |
- fi |
594 |
- |
595 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
596 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
597 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
598 |
|
599 |
diff --git a/app-emulation/wine-staging/wine-staging-4.14.ebuild b/app-emulation/wine-staging/wine-staging-4.14.ebuild |
600 |
index a48e7a5..749f767 100644 |
601 |
--- a/app-emulation/wine-staging/wine-staging-4.14.ebuild |
602 |
+++ b/app-emulation/wine-staging/wine-staging-4.14.ebuild |
603 |
@@ -177,80 +177,14 @@ fi |
604 |
wine_compiler_check() { |
605 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
606 |
|
607 |
- # GCC-specific bugs |
608 |
- if tc-is-gcc; then |
609 |
- # bug #549768 |
610 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
611 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
612 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
613 |
- # Run in subshell to prevent "Aborted" message |
614 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
615 |
- if ! eend $?; then |
616 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
617 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
618 |
- eerror "or use gcc-config to select a different compiler version." |
619 |
- eerror "See https://bugs.gentoo.org/549768" |
620 |
- eerror |
621 |
- return 1 |
622 |
- fi |
623 |
- fi |
624 |
- # bug #574044 |
625 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
626 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
627 |
- # Compile in subshell to prevent "Aborted" message |
628 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
629 |
- if ! eend $?; then |
630 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
631 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
632 |
- eerror "or use gcc-config to select a different compiler version." |
633 |
- eerror "See https://bugs.gentoo.org/574044" |
634 |
- eerror |
635 |
- return 1 |
636 |
- fi |
637 |
- fi |
638 |
- fi |
639 |
- |
640 |
# Ensure compiler support |
641 |
- if use abi_x86_64; then |
642 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
643 |
- # Compile in subshell to prevent "Aborted" message |
644 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
645 |
- if ! eend $?; then |
646 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
647 |
- eerror |
648 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
649 |
- eerror |
650 |
- return 1 |
651 |
- fi |
652 |
- fi |
653 |
+ # (No checks here as of 2022) |
654 |
+ return 0 |
655 |
} |
656 |
|
657 |
wine_build_environment_check() { |
658 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
659 |
|
660 |
- if use abi_x86_64; then |
661 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
662 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
663 |
- die |
664 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
665 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
666 |
- die |
667 |
- fi |
668 |
- fi |
669 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
670 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
671 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
672 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
673 |
- fi |
674 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
675 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
676 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
677 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
678 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
679 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
680 |
- fi |
681 |
- fi |
682 |
- |
683 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
684 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
685 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
686 |
|
687 |
diff --git a/app-emulation/wine-staging/wine-staging-4.15.ebuild b/app-emulation/wine-staging/wine-staging-4.15.ebuild |
688 |
index a48e7a5..749f767 100644 |
689 |
--- a/app-emulation/wine-staging/wine-staging-4.15.ebuild |
690 |
+++ b/app-emulation/wine-staging/wine-staging-4.15.ebuild |
691 |
@@ -177,80 +177,14 @@ fi |
692 |
wine_compiler_check() { |
693 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
694 |
|
695 |
- # GCC-specific bugs |
696 |
- if tc-is-gcc; then |
697 |
- # bug #549768 |
698 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
699 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
700 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
701 |
- # Run in subshell to prevent "Aborted" message |
702 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
703 |
- if ! eend $?; then |
704 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
705 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
706 |
- eerror "or use gcc-config to select a different compiler version." |
707 |
- eerror "See https://bugs.gentoo.org/549768" |
708 |
- eerror |
709 |
- return 1 |
710 |
- fi |
711 |
- fi |
712 |
- # bug #574044 |
713 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
714 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
715 |
- # Compile in subshell to prevent "Aborted" message |
716 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
717 |
- if ! eend $?; then |
718 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
719 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
720 |
- eerror "or use gcc-config to select a different compiler version." |
721 |
- eerror "See https://bugs.gentoo.org/574044" |
722 |
- eerror |
723 |
- return 1 |
724 |
- fi |
725 |
- fi |
726 |
- fi |
727 |
- |
728 |
# Ensure compiler support |
729 |
- if use abi_x86_64; then |
730 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
731 |
- # Compile in subshell to prevent "Aborted" message |
732 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
733 |
- if ! eend $?; then |
734 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
735 |
- eerror |
736 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
737 |
- eerror |
738 |
- return 1 |
739 |
- fi |
740 |
- fi |
741 |
+ # (No checks here as of 2022) |
742 |
+ return 0 |
743 |
} |
744 |
|
745 |
wine_build_environment_check() { |
746 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
747 |
|
748 |
- if use abi_x86_64; then |
749 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
750 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
751 |
- die |
752 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
753 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
754 |
- die |
755 |
- fi |
756 |
- fi |
757 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
758 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
759 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
760 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
761 |
- fi |
762 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
763 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
764 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
765 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
766 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
767 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
768 |
- fi |
769 |
- fi |
770 |
- |
771 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
772 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
773 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
774 |
|
775 |
diff --git a/app-emulation/wine-staging/wine-staging-4.16.ebuild b/app-emulation/wine-staging/wine-staging-4.16.ebuild |
776 |
index a48e7a5..749f767 100644 |
777 |
--- a/app-emulation/wine-staging/wine-staging-4.16.ebuild |
778 |
+++ b/app-emulation/wine-staging/wine-staging-4.16.ebuild |
779 |
@@ -177,80 +177,14 @@ fi |
780 |
wine_compiler_check() { |
781 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
782 |
|
783 |
- # GCC-specific bugs |
784 |
- if tc-is-gcc; then |
785 |
- # bug #549768 |
786 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
787 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
788 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
789 |
- # Run in subshell to prevent "Aborted" message |
790 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
791 |
- if ! eend $?; then |
792 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
793 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
794 |
- eerror "or use gcc-config to select a different compiler version." |
795 |
- eerror "See https://bugs.gentoo.org/549768" |
796 |
- eerror |
797 |
- return 1 |
798 |
- fi |
799 |
- fi |
800 |
- # bug #574044 |
801 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
802 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
803 |
- # Compile in subshell to prevent "Aborted" message |
804 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
805 |
- if ! eend $?; then |
806 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
807 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
808 |
- eerror "or use gcc-config to select a different compiler version." |
809 |
- eerror "See https://bugs.gentoo.org/574044" |
810 |
- eerror |
811 |
- return 1 |
812 |
- fi |
813 |
- fi |
814 |
- fi |
815 |
- |
816 |
# Ensure compiler support |
817 |
- if use abi_x86_64; then |
818 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
819 |
- # Compile in subshell to prevent "Aborted" message |
820 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
821 |
- if ! eend $?; then |
822 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
823 |
- eerror |
824 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
825 |
- eerror |
826 |
- return 1 |
827 |
- fi |
828 |
- fi |
829 |
+ # (No checks here as of 2022) |
830 |
+ return 0 |
831 |
} |
832 |
|
833 |
wine_build_environment_check() { |
834 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
835 |
|
836 |
- if use abi_x86_64; then |
837 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
838 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
839 |
- die |
840 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
841 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
842 |
- die |
843 |
- fi |
844 |
- fi |
845 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
846 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
847 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
848 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
849 |
- fi |
850 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
851 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
852 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
853 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
854 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
855 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
856 |
- fi |
857 |
- fi |
858 |
- |
859 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
860 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
861 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
862 |
|
863 |
diff --git a/app-emulation/wine-staging/wine-staging-4.17.ebuild b/app-emulation/wine-staging/wine-staging-4.17.ebuild |
864 |
index 345240c..4da294b 100644 |
865 |
--- a/app-emulation/wine-staging/wine-staging-4.17.ebuild |
866 |
+++ b/app-emulation/wine-staging/wine-staging-4.17.ebuild |
867 |
@@ -177,80 +177,14 @@ fi |
868 |
wine_compiler_check() { |
869 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
870 |
|
871 |
- # GCC-specific bugs |
872 |
- if tc-is-gcc; then |
873 |
- # bug #549768 |
874 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
875 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
876 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
877 |
- # Run in subshell to prevent "Aborted" message |
878 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
879 |
- if ! eend $?; then |
880 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
881 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
882 |
- eerror "or use gcc-config to select a different compiler version." |
883 |
- eerror "See https://bugs.gentoo.org/549768" |
884 |
- eerror |
885 |
- return 1 |
886 |
- fi |
887 |
- fi |
888 |
- # bug #574044 |
889 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
890 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
891 |
- # Compile in subshell to prevent "Aborted" message |
892 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
893 |
- if ! eend $?; then |
894 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
895 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
896 |
- eerror "or use gcc-config to select a different compiler version." |
897 |
- eerror "See https://bugs.gentoo.org/574044" |
898 |
- eerror |
899 |
- return 1 |
900 |
- fi |
901 |
- fi |
902 |
- fi |
903 |
- |
904 |
# Ensure compiler support |
905 |
- if use abi_x86_64; then |
906 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
907 |
- # Compile in subshell to prevent "Aborted" message |
908 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
909 |
- if ! eend $?; then |
910 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
911 |
- eerror |
912 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
913 |
- eerror |
914 |
- return 1 |
915 |
- fi |
916 |
- fi |
917 |
+ # (No checks here as of 2022) |
918 |
+ return 0 |
919 |
} |
920 |
|
921 |
wine_build_environment_check() { |
922 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
923 |
|
924 |
- if use abi_x86_64; then |
925 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
926 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
927 |
- die |
928 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
929 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
930 |
- die |
931 |
- fi |
932 |
- fi |
933 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
934 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
935 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
936 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
937 |
- fi |
938 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
939 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
940 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
941 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
942 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
943 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
944 |
- fi |
945 |
- fi |
946 |
- |
947 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
948 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
949 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
950 |
|
951 |
diff --git a/app-emulation/wine-staging/wine-staging-4.18.ebuild b/app-emulation/wine-staging/wine-staging-4.18.ebuild |
952 |
index 345240c..4da294b 100644 |
953 |
--- a/app-emulation/wine-staging/wine-staging-4.18.ebuild |
954 |
+++ b/app-emulation/wine-staging/wine-staging-4.18.ebuild |
955 |
@@ -177,80 +177,14 @@ fi |
956 |
wine_compiler_check() { |
957 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
958 |
|
959 |
- # GCC-specific bugs |
960 |
- if tc-is-gcc; then |
961 |
- # bug #549768 |
962 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
963 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
964 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
965 |
- # Run in subshell to prevent "Aborted" message |
966 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
967 |
- if ! eend $?; then |
968 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
969 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
970 |
- eerror "or use gcc-config to select a different compiler version." |
971 |
- eerror "See https://bugs.gentoo.org/549768" |
972 |
- eerror |
973 |
- return 1 |
974 |
- fi |
975 |
- fi |
976 |
- # bug #574044 |
977 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
978 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
979 |
- # Compile in subshell to prevent "Aborted" message |
980 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
981 |
- if ! eend $?; then |
982 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
983 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
984 |
- eerror "or use gcc-config to select a different compiler version." |
985 |
- eerror "See https://bugs.gentoo.org/574044" |
986 |
- eerror |
987 |
- return 1 |
988 |
- fi |
989 |
- fi |
990 |
- fi |
991 |
- |
992 |
# Ensure compiler support |
993 |
- if use abi_x86_64; then |
994 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
995 |
- # Compile in subshell to prevent "Aborted" message |
996 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
997 |
- if ! eend $?; then |
998 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
999 |
- eerror |
1000 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
1001 |
- eerror |
1002 |
- return 1 |
1003 |
- fi |
1004 |
- fi |
1005 |
+ # (No checks here as of 2022) |
1006 |
+ return 0 |
1007 |
} |
1008 |
|
1009 |
wine_build_environment_check() { |
1010 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1011 |
|
1012 |
- if use abi_x86_64; then |
1013 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
1014 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
1015 |
- die |
1016 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
1017 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
1018 |
- die |
1019 |
- fi |
1020 |
- fi |
1021 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
1022 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
1023 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
1024 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
1025 |
- fi |
1026 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
1027 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
1028 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
1029 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
1030 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
1031 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
1032 |
- fi |
1033 |
- fi |
1034 |
- |
1035 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
1036 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
1037 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
1038 |
|
1039 |
diff --git a/app-emulation/wine-staging/wine-staging-4.19.ebuild b/app-emulation/wine-staging/wine-staging-4.19.ebuild |
1040 |
index 345240c..4da294b 100644 |
1041 |
--- a/app-emulation/wine-staging/wine-staging-4.19.ebuild |
1042 |
+++ b/app-emulation/wine-staging/wine-staging-4.19.ebuild |
1043 |
@@ -177,80 +177,14 @@ fi |
1044 |
wine_compiler_check() { |
1045 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1046 |
|
1047 |
- # GCC-specific bugs |
1048 |
- if tc-is-gcc; then |
1049 |
- # bug #549768 |
1050 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
1051 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
1052 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
1053 |
- # Run in subshell to prevent "Aborted" message |
1054 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
1055 |
- if ! eend $?; then |
1056 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
1057 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
1058 |
- eerror "or use gcc-config to select a different compiler version." |
1059 |
- eerror "See https://bugs.gentoo.org/549768" |
1060 |
- eerror |
1061 |
- return 1 |
1062 |
- fi |
1063 |
- fi |
1064 |
- # bug #574044 |
1065 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
1066 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
1067 |
- # Compile in subshell to prevent "Aborted" message |
1068 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
1069 |
- if ! eend $?; then |
1070 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
1071 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
1072 |
- eerror "or use gcc-config to select a different compiler version." |
1073 |
- eerror "See https://bugs.gentoo.org/574044" |
1074 |
- eerror |
1075 |
- return 1 |
1076 |
- fi |
1077 |
- fi |
1078 |
- fi |
1079 |
- |
1080 |
# Ensure compiler support |
1081 |
- if use abi_x86_64; then |
1082 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
1083 |
- # Compile in subshell to prevent "Aborted" message |
1084 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
1085 |
- if ! eend $?; then |
1086 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
1087 |
- eerror |
1088 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
1089 |
- eerror |
1090 |
- return 1 |
1091 |
- fi |
1092 |
- fi |
1093 |
+ # (No checks here as of 2022) |
1094 |
+ return 0 |
1095 |
} |
1096 |
|
1097 |
wine_build_environment_check() { |
1098 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1099 |
|
1100 |
- if use abi_x86_64; then |
1101 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
1102 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
1103 |
- die |
1104 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
1105 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
1106 |
- die |
1107 |
- fi |
1108 |
- fi |
1109 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
1110 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
1111 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
1112 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
1113 |
- fi |
1114 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
1115 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
1116 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
1117 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
1118 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
1119 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
1120 |
- fi |
1121 |
- fi |
1122 |
- |
1123 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
1124 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
1125 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
1126 |
|
1127 |
diff --git a/app-emulation/wine-staging/wine-staging-4.2.ebuild b/app-emulation/wine-staging/wine-staging-4.2.ebuild |
1128 |
index 88eda21..1ba959b 100644 |
1129 |
--- a/app-emulation/wine-staging/wine-staging-4.2.ebuild |
1130 |
+++ b/app-emulation/wine-staging/wine-staging-4.2.ebuild |
1131 |
@@ -178,80 +178,14 @@ fi |
1132 |
wine_compiler_check() { |
1133 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1134 |
|
1135 |
- # GCC-specific bugs |
1136 |
- if tc-is-gcc; then |
1137 |
- # bug #549768 |
1138 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
1139 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
1140 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
1141 |
- # Run in subshell to prevent "Aborted" message |
1142 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
1143 |
- if ! eend $?; then |
1144 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
1145 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
1146 |
- eerror "or use gcc-config to select a different compiler version." |
1147 |
- eerror "See https://bugs.gentoo.org/549768" |
1148 |
- eerror |
1149 |
- return 1 |
1150 |
- fi |
1151 |
- fi |
1152 |
- # bug #574044 |
1153 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
1154 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
1155 |
- # Compile in subshell to prevent "Aborted" message |
1156 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
1157 |
- if ! eend $?; then |
1158 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
1159 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
1160 |
- eerror "or use gcc-config to select a different compiler version." |
1161 |
- eerror "See https://bugs.gentoo.org/574044" |
1162 |
- eerror |
1163 |
- return 1 |
1164 |
- fi |
1165 |
- fi |
1166 |
- fi |
1167 |
- |
1168 |
# Ensure compiler support |
1169 |
- if use abi_x86_64; then |
1170 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
1171 |
- # Compile in subshell to prevent "Aborted" message |
1172 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
1173 |
- if ! eend $?; then |
1174 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
1175 |
- eerror |
1176 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
1177 |
- eerror |
1178 |
- return 1 |
1179 |
- fi |
1180 |
- fi |
1181 |
+ # (No checks here as of 2022) |
1182 |
+ return 0 |
1183 |
} |
1184 |
|
1185 |
wine_build_environment_check() { |
1186 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1187 |
|
1188 |
- if use abi_x86_64; then |
1189 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
1190 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
1191 |
- die |
1192 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
1193 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
1194 |
- die |
1195 |
- fi |
1196 |
- fi |
1197 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
1198 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
1199 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
1200 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
1201 |
- fi |
1202 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
1203 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
1204 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
1205 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
1206 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
1207 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
1208 |
- fi |
1209 |
- fi |
1210 |
- |
1211 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
1212 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
1213 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
1214 |
|
1215 |
diff --git a/app-emulation/wine-staging/wine-staging-4.20.ebuild b/app-emulation/wine-staging/wine-staging-4.20.ebuild |
1216 |
index 2574271..9db632d 100644 |
1217 |
--- a/app-emulation/wine-staging/wine-staging-4.20.ebuild |
1218 |
+++ b/app-emulation/wine-staging/wine-staging-4.20.ebuild |
1219 |
@@ -177,80 +177,14 @@ fi |
1220 |
wine_compiler_check() { |
1221 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1222 |
|
1223 |
- # GCC-specific bugs |
1224 |
- if tc-is-gcc; then |
1225 |
- # bug #549768 |
1226 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
1227 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
1228 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
1229 |
- # Run in subshell to prevent "Aborted" message |
1230 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
1231 |
- if ! eend $?; then |
1232 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
1233 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
1234 |
- eerror "or use gcc-config to select a different compiler version." |
1235 |
- eerror "See https://bugs.gentoo.org/549768" |
1236 |
- eerror |
1237 |
- return 1 |
1238 |
- fi |
1239 |
- fi |
1240 |
- # bug #574044 |
1241 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
1242 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
1243 |
- # Compile in subshell to prevent "Aborted" message |
1244 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
1245 |
- if ! eend $?; then |
1246 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
1247 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
1248 |
- eerror "or use gcc-config to select a different compiler version." |
1249 |
- eerror "See https://bugs.gentoo.org/574044" |
1250 |
- eerror |
1251 |
- return 1 |
1252 |
- fi |
1253 |
- fi |
1254 |
- fi |
1255 |
- |
1256 |
# Ensure compiler support |
1257 |
- if use abi_x86_64; then |
1258 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
1259 |
- # Compile in subshell to prevent "Aborted" message |
1260 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
1261 |
- if ! eend $?; then |
1262 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
1263 |
- eerror |
1264 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
1265 |
- eerror |
1266 |
- return 1 |
1267 |
- fi |
1268 |
- fi |
1269 |
+ # (No checks here as of 2022) |
1270 |
+ return 0 |
1271 |
} |
1272 |
|
1273 |
wine_build_environment_check() { |
1274 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1275 |
|
1276 |
- if use abi_x86_64; then |
1277 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
1278 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
1279 |
- die |
1280 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
1281 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
1282 |
- die |
1283 |
- fi |
1284 |
- fi |
1285 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
1286 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
1287 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
1288 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
1289 |
- fi |
1290 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
1291 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
1292 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
1293 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
1294 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
1295 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
1296 |
- fi |
1297 |
- fi |
1298 |
- |
1299 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
1300 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
1301 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
1302 |
|
1303 |
diff --git a/app-emulation/wine-staging/wine-staging-4.21.ebuild b/app-emulation/wine-staging/wine-staging-4.21.ebuild |
1304 |
index 2574271..9db632d 100644 |
1305 |
--- a/app-emulation/wine-staging/wine-staging-4.21.ebuild |
1306 |
+++ b/app-emulation/wine-staging/wine-staging-4.21.ebuild |
1307 |
@@ -177,80 +177,14 @@ fi |
1308 |
wine_compiler_check() { |
1309 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1310 |
|
1311 |
- # GCC-specific bugs |
1312 |
- if tc-is-gcc; then |
1313 |
- # bug #549768 |
1314 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
1315 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
1316 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
1317 |
- # Run in subshell to prevent "Aborted" message |
1318 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
1319 |
- if ! eend $?; then |
1320 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
1321 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
1322 |
- eerror "or use gcc-config to select a different compiler version." |
1323 |
- eerror "See https://bugs.gentoo.org/549768" |
1324 |
- eerror |
1325 |
- return 1 |
1326 |
- fi |
1327 |
- fi |
1328 |
- # bug #574044 |
1329 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
1330 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
1331 |
- # Compile in subshell to prevent "Aborted" message |
1332 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
1333 |
- if ! eend $?; then |
1334 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
1335 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
1336 |
- eerror "or use gcc-config to select a different compiler version." |
1337 |
- eerror "See https://bugs.gentoo.org/574044" |
1338 |
- eerror |
1339 |
- return 1 |
1340 |
- fi |
1341 |
- fi |
1342 |
- fi |
1343 |
- |
1344 |
# Ensure compiler support |
1345 |
- if use abi_x86_64; then |
1346 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
1347 |
- # Compile in subshell to prevent "Aborted" message |
1348 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
1349 |
- if ! eend $?; then |
1350 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
1351 |
- eerror |
1352 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
1353 |
- eerror |
1354 |
- return 1 |
1355 |
- fi |
1356 |
- fi |
1357 |
+ # (No checks here as of 2022) |
1358 |
+ return 0 |
1359 |
} |
1360 |
|
1361 |
wine_build_environment_check() { |
1362 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1363 |
|
1364 |
- if use abi_x86_64; then |
1365 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
1366 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
1367 |
- die |
1368 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
1369 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
1370 |
- die |
1371 |
- fi |
1372 |
- fi |
1373 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
1374 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
1375 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
1376 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
1377 |
- fi |
1378 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
1379 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
1380 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
1381 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
1382 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
1383 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
1384 |
- fi |
1385 |
- fi |
1386 |
- |
1387 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
1388 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
1389 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
1390 |
|
1391 |
diff --git a/app-emulation/wine-staging/wine-staging-4.3.ebuild b/app-emulation/wine-staging/wine-staging-4.3.ebuild |
1392 |
index cd47c44..f30e560 100644 |
1393 |
--- a/app-emulation/wine-staging/wine-staging-4.3.ebuild |
1394 |
+++ b/app-emulation/wine-staging/wine-staging-4.3.ebuild |
1395 |
@@ -179,80 +179,14 @@ fi |
1396 |
wine_compiler_check() { |
1397 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1398 |
|
1399 |
- # GCC-specific bugs |
1400 |
- if tc-is-gcc; then |
1401 |
- # bug #549768 |
1402 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
1403 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
1404 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
1405 |
- # Run in subshell to prevent "Aborted" message |
1406 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
1407 |
- if ! eend $?; then |
1408 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
1409 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
1410 |
- eerror "or use gcc-config to select a different compiler version." |
1411 |
- eerror "See https://bugs.gentoo.org/549768" |
1412 |
- eerror |
1413 |
- return 1 |
1414 |
- fi |
1415 |
- fi |
1416 |
- # bug #574044 |
1417 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
1418 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
1419 |
- # Compile in subshell to prevent "Aborted" message |
1420 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
1421 |
- if ! eend $?; then |
1422 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
1423 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
1424 |
- eerror "or use gcc-config to select a different compiler version." |
1425 |
- eerror "See https://bugs.gentoo.org/574044" |
1426 |
- eerror |
1427 |
- return 1 |
1428 |
- fi |
1429 |
- fi |
1430 |
- fi |
1431 |
- |
1432 |
# Ensure compiler support |
1433 |
- if use abi_x86_64; then |
1434 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
1435 |
- # Compile in subshell to prevent "Aborted" message |
1436 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
1437 |
- if ! eend $?; then |
1438 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
1439 |
- eerror |
1440 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
1441 |
- eerror |
1442 |
- return 1 |
1443 |
- fi |
1444 |
- fi |
1445 |
+ # (No checks here as of 2022) |
1446 |
+ return 0 |
1447 |
} |
1448 |
|
1449 |
wine_build_environment_check() { |
1450 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1451 |
|
1452 |
- if use abi_x86_64; then |
1453 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
1454 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
1455 |
- die |
1456 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
1457 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
1458 |
- die |
1459 |
- fi |
1460 |
- fi |
1461 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
1462 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
1463 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
1464 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
1465 |
- fi |
1466 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
1467 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
1468 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
1469 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
1470 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
1471 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
1472 |
- fi |
1473 |
- fi |
1474 |
- |
1475 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
1476 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
1477 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
1478 |
|
1479 |
diff --git a/app-emulation/wine-staging/wine-staging-4.4-r1.ebuild b/app-emulation/wine-staging/wine-staging-4.4-r1.ebuild |
1480 |
index ba17c00..075a8b7 100644 |
1481 |
--- a/app-emulation/wine-staging/wine-staging-4.4-r1.ebuild |
1482 |
+++ b/app-emulation/wine-staging/wine-staging-4.4-r1.ebuild |
1483 |
@@ -179,80 +179,14 @@ fi |
1484 |
wine_compiler_check() { |
1485 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1486 |
|
1487 |
- # GCC-specific bugs |
1488 |
- if tc-is-gcc; then |
1489 |
- # bug #549768 |
1490 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
1491 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
1492 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
1493 |
- # Run in subshell to prevent "Aborted" message |
1494 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
1495 |
- if ! eend $?; then |
1496 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
1497 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
1498 |
- eerror "or use gcc-config to select a different compiler version." |
1499 |
- eerror "See https://bugs.gentoo.org/549768" |
1500 |
- eerror |
1501 |
- return 1 |
1502 |
- fi |
1503 |
- fi |
1504 |
- # bug #574044 |
1505 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
1506 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
1507 |
- # Compile in subshell to prevent "Aborted" message |
1508 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
1509 |
- if ! eend $?; then |
1510 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
1511 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
1512 |
- eerror "or use gcc-config to select a different compiler version." |
1513 |
- eerror "See https://bugs.gentoo.org/574044" |
1514 |
- eerror |
1515 |
- return 1 |
1516 |
- fi |
1517 |
- fi |
1518 |
- fi |
1519 |
- |
1520 |
# Ensure compiler support |
1521 |
- if use abi_x86_64; then |
1522 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
1523 |
- # Compile in subshell to prevent "Aborted" message |
1524 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
1525 |
- if ! eend $?; then |
1526 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
1527 |
- eerror |
1528 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
1529 |
- eerror |
1530 |
- return 1 |
1531 |
- fi |
1532 |
- fi |
1533 |
+ # (No checks here as of 2022) |
1534 |
+ return 0 |
1535 |
} |
1536 |
|
1537 |
wine_build_environment_check() { |
1538 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1539 |
|
1540 |
- if use abi_x86_64; then |
1541 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
1542 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
1543 |
- die |
1544 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
1545 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
1546 |
- die |
1547 |
- fi |
1548 |
- fi |
1549 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
1550 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
1551 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
1552 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
1553 |
- fi |
1554 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
1555 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
1556 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
1557 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
1558 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
1559 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
1560 |
- fi |
1561 |
- fi |
1562 |
- |
1563 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
1564 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
1565 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
1566 |
|
1567 |
diff --git a/app-emulation/wine-staging/wine-staging-4.4.ebuild b/app-emulation/wine-staging/wine-staging-4.4.ebuild |
1568 |
index f86ea88..f050c96 100644 |
1569 |
--- a/app-emulation/wine-staging/wine-staging-4.4.ebuild |
1570 |
+++ b/app-emulation/wine-staging/wine-staging-4.4.ebuild |
1571 |
@@ -179,80 +179,14 @@ fi |
1572 |
wine_compiler_check() { |
1573 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1574 |
|
1575 |
- # GCC-specific bugs |
1576 |
- if tc-is-gcc; then |
1577 |
- # bug #549768 |
1578 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
1579 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
1580 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
1581 |
- # Run in subshell to prevent "Aborted" message |
1582 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
1583 |
- if ! eend $?; then |
1584 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
1585 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
1586 |
- eerror "or use gcc-config to select a different compiler version." |
1587 |
- eerror "See https://bugs.gentoo.org/549768" |
1588 |
- eerror |
1589 |
- return 1 |
1590 |
- fi |
1591 |
- fi |
1592 |
- # bug #574044 |
1593 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
1594 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
1595 |
- # Compile in subshell to prevent "Aborted" message |
1596 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
1597 |
- if ! eend $?; then |
1598 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
1599 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
1600 |
- eerror "or use gcc-config to select a different compiler version." |
1601 |
- eerror "See https://bugs.gentoo.org/574044" |
1602 |
- eerror |
1603 |
- return 1 |
1604 |
- fi |
1605 |
- fi |
1606 |
- fi |
1607 |
- |
1608 |
# Ensure compiler support |
1609 |
- if use abi_x86_64; then |
1610 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
1611 |
- # Compile in subshell to prevent "Aborted" message |
1612 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
1613 |
- if ! eend $?; then |
1614 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
1615 |
- eerror |
1616 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
1617 |
- eerror |
1618 |
- return 1 |
1619 |
- fi |
1620 |
- fi |
1621 |
+ # (No checks here as of 2022) |
1622 |
+ return 0 |
1623 |
} |
1624 |
|
1625 |
wine_build_environment_check() { |
1626 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1627 |
|
1628 |
- if use abi_x86_64; then |
1629 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
1630 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
1631 |
- die |
1632 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
1633 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
1634 |
- die |
1635 |
- fi |
1636 |
- fi |
1637 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
1638 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
1639 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
1640 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
1641 |
- fi |
1642 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
1643 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
1644 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
1645 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
1646 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
1647 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
1648 |
- fi |
1649 |
- fi |
1650 |
- |
1651 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
1652 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
1653 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
1654 |
|
1655 |
diff --git a/app-emulation/wine-staging/wine-staging-4.5.ebuild b/app-emulation/wine-staging/wine-staging-4.5.ebuild |
1656 |
index ba17c00..075a8b7 100644 |
1657 |
--- a/app-emulation/wine-staging/wine-staging-4.5.ebuild |
1658 |
+++ b/app-emulation/wine-staging/wine-staging-4.5.ebuild |
1659 |
@@ -179,80 +179,14 @@ fi |
1660 |
wine_compiler_check() { |
1661 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1662 |
|
1663 |
- # GCC-specific bugs |
1664 |
- if tc-is-gcc; then |
1665 |
- # bug #549768 |
1666 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
1667 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
1668 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
1669 |
- # Run in subshell to prevent "Aborted" message |
1670 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
1671 |
- if ! eend $?; then |
1672 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
1673 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
1674 |
- eerror "or use gcc-config to select a different compiler version." |
1675 |
- eerror "See https://bugs.gentoo.org/549768" |
1676 |
- eerror |
1677 |
- return 1 |
1678 |
- fi |
1679 |
- fi |
1680 |
- # bug #574044 |
1681 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
1682 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
1683 |
- # Compile in subshell to prevent "Aborted" message |
1684 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
1685 |
- if ! eend $?; then |
1686 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
1687 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
1688 |
- eerror "or use gcc-config to select a different compiler version." |
1689 |
- eerror "See https://bugs.gentoo.org/574044" |
1690 |
- eerror |
1691 |
- return 1 |
1692 |
- fi |
1693 |
- fi |
1694 |
- fi |
1695 |
- |
1696 |
# Ensure compiler support |
1697 |
- if use abi_x86_64; then |
1698 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
1699 |
- # Compile in subshell to prevent "Aborted" message |
1700 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
1701 |
- if ! eend $?; then |
1702 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
1703 |
- eerror |
1704 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
1705 |
- eerror |
1706 |
- return 1 |
1707 |
- fi |
1708 |
- fi |
1709 |
+ # (No checks here as of 2022) |
1710 |
+ return 0 |
1711 |
} |
1712 |
|
1713 |
wine_build_environment_check() { |
1714 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1715 |
|
1716 |
- if use abi_x86_64; then |
1717 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
1718 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
1719 |
- die |
1720 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
1721 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
1722 |
- die |
1723 |
- fi |
1724 |
- fi |
1725 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
1726 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
1727 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
1728 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
1729 |
- fi |
1730 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
1731 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
1732 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
1733 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
1734 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
1735 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
1736 |
- fi |
1737 |
- fi |
1738 |
- |
1739 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
1740 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
1741 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
1742 |
|
1743 |
diff --git a/app-emulation/wine-staging/wine-staging-4.6-r1.ebuild b/app-emulation/wine-staging/wine-staging-4.6-r1.ebuild |
1744 |
index 23eb53c..1ad5ab3 100644 |
1745 |
--- a/app-emulation/wine-staging/wine-staging-4.6-r1.ebuild |
1746 |
+++ b/app-emulation/wine-staging/wine-staging-4.6-r1.ebuild |
1747 |
@@ -179,80 +179,14 @@ fi |
1748 |
wine_compiler_check() { |
1749 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1750 |
|
1751 |
- # GCC-specific bugs |
1752 |
- if tc-is-gcc; then |
1753 |
- # bug #549768 |
1754 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
1755 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
1756 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
1757 |
- # Run in subshell to prevent "Aborted" message |
1758 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
1759 |
- if ! eend $?; then |
1760 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
1761 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
1762 |
- eerror "or use gcc-config to select a different compiler version." |
1763 |
- eerror "See https://bugs.gentoo.org/549768" |
1764 |
- eerror |
1765 |
- return 1 |
1766 |
- fi |
1767 |
- fi |
1768 |
- # bug #574044 |
1769 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
1770 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
1771 |
- # Compile in subshell to prevent "Aborted" message |
1772 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
1773 |
- if ! eend $?; then |
1774 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
1775 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
1776 |
- eerror "or use gcc-config to select a different compiler version." |
1777 |
- eerror "See https://bugs.gentoo.org/574044" |
1778 |
- eerror |
1779 |
- return 1 |
1780 |
- fi |
1781 |
- fi |
1782 |
- fi |
1783 |
- |
1784 |
# Ensure compiler support |
1785 |
- if use abi_x86_64; then |
1786 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
1787 |
- # Compile in subshell to prevent "Aborted" message |
1788 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
1789 |
- if ! eend $?; then |
1790 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
1791 |
- eerror |
1792 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
1793 |
- eerror |
1794 |
- return 1 |
1795 |
- fi |
1796 |
- fi |
1797 |
+ # (No checks here as of 2022) |
1798 |
+ return 0 |
1799 |
} |
1800 |
|
1801 |
wine_build_environment_check() { |
1802 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1803 |
|
1804 |
- if use abi_x86_64; then |
1805 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
1806 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
1807 |
- die |
1808 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
1809 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
1810 |
- die |
1811 |
- fi |
1812 |
- fi |
1813 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
1814 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
1815 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
1816 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
1817 |
- fi |
1818 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
1819 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
1820 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
1821 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
1822 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
1823 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
1824 |
- fi |
1825 |
- fi |
1826 |
- |
1827 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
1828 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
1829 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
1830 |
|
1831 |
diff --git a/app-emulation/wine-staging/wine-staging-4.6.ebuild b/app-emulation/wine-staging/wine-staging-4.6.ebuild |
1832 |
index ba17c00..075a8b7 100644 |
1833 |
--- a/app-emulation/wine-staging/wine-staging-4.6.ebuild |
1834 |
+++ b/app-emulation/wine-staging/wine-staging-4.6.ebuild |
1835 |
@@ -179,80 +179,14 @@ fi |
1836 |
wine_compiler_check() { |
1837 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1838 |
|
1839 |
- # GCC-specific bugs |
1840 |
- if tc-is-gcc; then |
1841 |
- # bug #549768 |
1842 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
1843 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
1844 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
1845 |
- # Run in subshell to prevent "Aborted" message |
1846 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
1847 |
- if ! eend $?; then |
1848 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
1849 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
1850 |
- eerror "or use gcc-config to select a different compiler version." |
1851 |
- eerror "See https://bugs.gentoo.org/549768" |
1852 |
- eerror |
1853 |
- return 1 |
1854 |
- fi |
1855 |
- fi |
1856 |
- # bug #574044 |
1857 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
1858 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
1859 |
- # Compile in subshell to prevent "Aborted" message |
1860 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
1861 |
- if ! eend $?; then |
1862 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
1863 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
1864 |
- eerror "or use gcc-config to select a different compiler version." |
1865 |
- eerror "See https://bugs.gentoo.org/574044" |
1866 |
- eerror |
1867 |
- return 1 |
1868 |
- fi |
1869 |
- fi |
1870 |
- fi |
1871 |
- |
1872 |
# Ensure compiler support |
1873 |
- if use abi_x86_64; then |
1874 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
1875 |
- # Compile in subshell to prevent "Aborted" message |
1876 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
1877 |
- if ! eend $?; then |
1878 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
1879 |
- eerror |
1880 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
1881 |
- eerror |
1882 |
- return 1 |
1883 |
- fi |
1884 |
- fi |
1885 |
+ # (No checks here as of 2022) |
1886 |
+ return 0 |
1887 |
} |
1888 |
|
1889 |
wine_build_environment_check() { |
1890 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1891 |
|
1892 |
- if use abi_x86_64; then |
1893 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
1894 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
1895 |
- die |
1896 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
1897 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
1898 |
- die |
1899 |
- fi |
1900 |
- fi |
1901 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
1902 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
1903 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
1904 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
1905 |
- fi |
1906 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
1907 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
1908 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
1909 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
1910 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
1911 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
1912 |
- fi |
1913 |
- fi |
1914 |
- |
1915 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
1916 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
1917 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
1918 |
|
1919 |
diff --git a/app-emulation/wine-staging/wine-staging-4.7-r1.ebuild b/app-emulation/wine-staging/wine-staging-4.7-r1.ebuild |
1920 |
index 1fe86ee..0759f7d 100644 |
1921 |
--- a/app-emulation/wine-staging/wine-staging-4.7-r1.ebuild |
1922 |
+++ b/app-emulation/wine-staging/wine-staging-4.7-r1.ebuild |
1923 |
@@ -179,80 +179,14 @@ fi |
1924 |
wine_compiler_check() { |
1925 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1926 |
|
1927 |
- # GCC-specific bugs |
1928 |
- if tc-is-gcc; then |
1929 |
- # bug #549768 |
1930 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
1931 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
1932 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
1933 |
- # Run in subshell to prevent "Aborted" message |
1934 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
1935 |
- if ! eend $?; then |
1936 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
1937 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
1938 |
- eerror "or use gcc-config to select a different compiler version." |
1939 |
- eerror "See https://bugs.gentoo.org/549768" |
1940 |
- eerror |
1941 |
- return 1 |
1942 |
- fi |
1943 |
- fi |
1944 |
- # bug #574044 |
1945 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
1946 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
1947 |
- # Compile in subshell to prevent "Aborted" message |
1948 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
1949 |
- if ! eend $?; then |
1950 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
1951 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
1952 |
- eerror "or use gcc-config to select a different compiler version." |
1953 |
- eerror "See https://bugs.gentoo.org/574044" |
1954 |
- eerror |
1955 |
- return 1 |
1956 |
- fi |
1957 |
- fi |
1958 |
- fi |
1959 |
- |
1960 |
# Ensure compiler support |
1961 |
- if use abi_x86_64; then |
1962 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
1963 |
- # Compile in subshell to prevent "Aborted" message |
1964 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
1965 |
- if ! eend $?; then |
1966 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
1967 |
- eerror |
1968 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
1969 |
- eerror |
1970 |
- return 1 |
1971 |
- fi |
1972 |
- fi |
1973 |
+ # (No checks here as of 2022) |
1974 |
+ return 0 |
1975 |
} |
1976 |
|
1977 |
wine_build_environment_check() { |
1978 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
1979 |
|
1980 |
- if use abi_x86_64; then |
1981 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
1982 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
1983 |
- die |
1984 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
1985 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
1986 |
- die |
1987 |
- fi |
1988 |
- fi |
1989 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
1990 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
1991 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
1992 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
1993 |
- fi |
1994 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
1995 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
1996 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
1997 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
1998 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
1999 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
2000 |
- fi |
2001 |
- fi |
2002 |
- |
2003 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
2004 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
2005 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
2006 |
|
2007 |
diff --git a/app-emulation/wine-staging/wine-staging-4.7.ebuild b/app-emulation/wine-staging/wine-staging-4.7.ebuild |
2008 |
index 5b64069..72a1892 100644 |
2009 |
--- a/app-emulation/wine-staging/wine-staging-4.7.ebuild |
2010 |
+++ b/app-emulation/wine-staging/wine-staging-4.7.ebuild |
2011 |
@@ -179,80 +179,14 @@ fi |
2012 |
wine_compiler_check() { |
2013 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2014 |
|
2015 |
- # GCC-specific bugs |
2016 |
- if tc-is-gcc; then |
2017 |
- # bug #549768 |
2018 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
2019 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
2020 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
2021 |
- # Run in subshell to prevent "Aborted" message |
2022 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
2023 |
- if ! eend $?; then |
2024 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
2025 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
2026 |
- eerror "or use gcc-config to select a different compiler version." |
2027 |
- eerror "See https://bugs.gentoo.org/549768" |
2028 |
- eerror |
2029 |
- return 1 |
2030 |
- fi |
2031 |
- fi |
2032 |
- # bug #574044 |
2033 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
2034 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
2035 |
- # Compile in subshell to prevent "Aborted" message |
2036 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
2037 |
- if ! eend $?; then |
2038 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
2039 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
2040 |
- eerror "or use gcc-config to select a different compiler version." |
2041 |
- eerror "See https://bugs.gentoo.org/574044" |
2042 |
- eerror |
2043 |
- return 1 |
2044 |
- fi |
2045 |
- fi |
2046 |
- fi |
2047 |
- |
2048 |
# Ensure compiler support |
2049 |
- if use abi_x86_64; then |
2050 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
2051 |
- # Compile in subshell to prevent "Aborted" message |
2052 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
2053 |
- if ! eend $?; then |
2054 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
2055 |
- eerror |
2056 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
2057 |
- eerror |
2058 |
- return 1 |
2059 |
- fi |
2060 |
- fi |
2061 |
+ # (No checks here as of 2022) |
2062 |
+ return 0 |
2063 |
} |
2064 |
|
2065 |
wine_build_environment_check() { |
2066 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2067 |
|
2068 |
- if use abi_x86_64; then |
2069 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
2070 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
2071 |
- die |
2072 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
2073 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
2074 |
- die |
2075 |
- fi |
2076 |
- fi |
2077 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
2078 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
2079 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
2080 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
2081 |
- fi |
2082 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
2083 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
2084 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
2085 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
2086 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
2087 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
2088 |
- fi |
2089 |
- fi |
2090 |
- |
2091 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
2092 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
2093 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
2094 |
|
2095 |
diff --git a/app-emulation/wine-staging/wine-staging-4.8.ebuild b/app-emulation/wine-staging/wine-staging-4.8.ebuild |
2096 |
index 0a82276..ec62f9c 100644 |
2097 |
--- a/app-emulation/wine-staging/wine-staging-4.8.ebuild |
2098 |
+++ b/app-emulation/wine-staging/wine-staging-4.8.ebuild |
2099 |
@@ -179,80 +179,14 @@ fi |
2100 |
wine_compiler_check() { |
2101 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2102 |
|
2103 |
- # GCC-specific bugs |
2104 |
- if tc-is-gcc; then |
2105 |
- # bug #549768 |
2106 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
2107 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
2108 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
2109 |
- # Run in subshell to prevent "Aborted" message |
2110 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
2111 |
- if ! eend $?; then |
2112 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
2113 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
2114 |
- eerror "or use gcc-config to select a different compiler version." |
2115 |
- eerror "See https://bugs.gentoo.org/549768" |
2116 |
- eerror |
2117 |
- return 1 |
2118 |
- fi |
2119 |
- fi |
2120 |
- # bug #574044 |
2121 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
2122 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
2123 |
- # Compile in subshell to prevent "Aborted" message |
2124 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
2125 |
- if ! eend $?; then |
2126 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
2127 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
2128 |
- eerror "or use gcc-config to select a different compiler version." |
2129 |
- eerror "See https://bugs.gentoo.org/574044" |
2130 |
- eerror |
2131 |
- return 1 |
2132 |
- fi |
2133 |
- fi |
2134 |
- fi |
2135 |
- |
2136 |
# Ensure compiler support |
2137 |
- if use abi_x86_64; then |
2138 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
2139 |
- # Compile in subshell to prevent "Aborted" message |
2140 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
2141 |
- if ! eend $?; then |
2142 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
2143 |
- eerror |
2144 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
2145 |
- eerror |
2146 |
- return 1 |
2147 |
- fi |
2148 |
- fi |
2149 |
+ # (No checks here as of 2022) |
2150 |
+ return 0 |
2151 |
} |
2152 |
|
2153 |
wine_build_environment_check() { |
2154 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2155 |
|
2156 |
- if use abi_x86_64; then |
2157 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
2158 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
2159 |
- die |
2160 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
2161 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
2162 |
- die |
2163 |
- fi |
2164 |
- fi |
2165 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
2166 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
2167 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
2168 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
2169 |
- fi |
2170 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
2171 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
2172 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
2173 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
2174 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
2175 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
2176 |
- fi |
2177 |
- fi |
2178 |
- |
2179 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
2180 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
2181 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
2182 |
|
2183 |
diff --git a/app-emulation/wine-staging/wine-staging-4.9.ebuild b/app-emulation/wine-staging/wine-staging-4.9.ebuild |
2184 |
index 0a82276..ec62f9c 100644 |
2185 |
--- a/app-emulation/wine-staging/wine-staging-4.9.ebuild |
2186 |
+++ b/app-emulation/wine-staging/wine-staging-4.9.ebuild |
2187 |
@@ -179,80 +179,14 @@ fi |
2188 |
wine_compiler_check() { |
2189 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2190 |
|
2191 |
- # GCC-specific bugs |
2192 |
- if tc-is-gcc; then |
2193 |
- # bug #549768 |
2194 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
2195 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
2196 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
2197 |
- # Run in subshell to prevent "Aborted" message |
2198 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
2199 |
- if ! eend $?; then |
2200 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
2201 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
2202 |
- eerror "or use gcc-config to select a different compiler version." |
2203 |
- eerror "See https://bugs.gentoo.org/549768" |
2204 |
- eerror |
2205 |
- return 1 |
2206 |
- fi |
2207 |
- fi |
2208 |
- # bug #574044 |
2209 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
2210 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
2211 |
- # Compile in subshell to prevent "Aborted" message |
2212 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
2213 |
- if ! eend $?; then |
2214 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
2215 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
2216 |
- eerror "or use gcc-config to select a different compiler version." |
2217 |
- eerror "See https://bugs.gentoo.org/574044" |
2218 |
- eerror |
2219 |
- return 1 |
2220 |
- fi |
2221 |
- fi |
2222 |
- fi |
2223 |
- |
2224 |
# Ensure compiler support |
2225 |
- if use abi_x86_64; then |
2226 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
2227 |
- # Compile in subshell to prevent "Aborted" message |
2228 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
2229 |
- if ! eend $?; then |
2230 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
2231 |
- eerror |
2232 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
2233 |
- eerror |
2234 |
- return 1 |
2235 |
- fi |
2236 |
- fi |
2237 |
+ # (No checks here as of 2022) |
2238 |
+ return 0 |
2239 |
} |
2240 |
|
2241 |
wine_build_environment_check() { |
2242 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2243 |
|
2244 |
- if use abi_x86_64; then |
2245 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
2246 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
2247 |
- die |
2248 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
2249 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
2250 |
- die |
2251 |
- fi |
2252 |
- fi |
2253 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
2254 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
2255 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
2256 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
2257 |
- fi |
2258 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
2259 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
2260 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
2261 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
2262 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
2263 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
2264 |
- fi |
2265 |
- fi |
2266 |
- |
2267 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
2268 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
2269 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
2270 |
|
2271 |
diff --git a/app-emulation/wine-staging/wine-staging-5.0.ebuild b/app-emulation/wine-staging/wine-staging-5.0.ebuild |
2272 |
index 0dc1f77..d5e0da5 100644 |
2273 |
--- a/app-emulation/wine-staging/wine-staging-5.0.ebuild |
2274 |
+++ b/app-emulation/wine-staging/wine-staging-5.0.ebuild |
2275 |
@@ -177,80 +177,14 @@ fi |
2276 |
wine_compiler_check() { |
2277 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2278 |
|
2279 |
- # GCC-specific bugs |
2280 |
- if tc-is-gcc; then |
2281 |
- # bug #549768 |
2282 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
2283 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
2284 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
2285 |
- # Run in subshell to prevent "Aborted" message |
2286 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
2287 |
- if ! eend $?; then |
2288 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
2289 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
2290 |
- eerror "or use gcc-config to select a different compiler version." |
2291 |
- eerror "See https://bugs.gentoo.org/549768" |
2292 |
- eerror |
2293 |
- return 1 |
2294 |
- fi |
2295 |
- fi |
2296 |
- # bug #574044 |
2297 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
2298 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
2299 |
- # Compile in subshell to prevent "Aborted" message |
2300 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
2301 |
- if ! eend $?; then |
2302 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
2303 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
2304 |
- eerror "or use gcc-config to select a different compiler version." |
2305 |
- eerror "See https://bugs.gentoo.org/574044" |
2306 |
- eerror |
2307 |
- return 1 |
2308 |
- fi |
2309 |
- fi |
2310 |
- fi |
2311 |
- |
2312 |
# Ensure compiler support |
2313 |
- if use abi_x86_64; then |
2314 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
2315 |
- # Compile in subshell to prevent "Aborted" message |
2316 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
2317 |
- if ! eend $?; then |
2318 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
2319 |
- eerror |
2320 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
2321 |
- eerror |
2322 |
- return 1 |
2323 |
- fi |
2324 |
- fi |
2325 |
+ # (No checks here as of 2022) |
2326 |
+ return 0 |
2327 |
} |
2328 |
|
2329 |
wine_build_environment_check() { |
2330 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2331 |
|
2332 |
- if use abi_x86_64; then |
2333 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
2334 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
2335 |
- die |
2336 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
2337 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
2338 |
- die |
2339 |
- fi |
2340 |
- fi |
2341 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
2342 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
2343 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
2344 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
2345 |
- fi |
2346 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
2347 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
2348 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
2349 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
2350 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
2351 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
2352 |
- fi |
2353 |
- fi |
2354 |
- |
2355 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
2356 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
2357 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
2358 |
|
2359 |
diff --git a/app-emulation/wine-staging/wine-staging-5.1.ebuild b/app-emulation/wine-staging/wine-staging-5.1.ebuild |
2360 |
index 42cf5a0..1f31212 100644 |
2361 |
--- a/app-emulation/wine-staging/wine-staging-5.1.ebuild |
2362 |
+++ b/app-emulation/wine-staging/wine-staging-5.1.ebuild |
2363 |
@@ -177,80 +177,14 @@ fi |
2364 |
wine_compiler_check() { |
2365 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2366 |
|
2367 |
- # GCC-specific bugs |
2368 |
- if tc-is-gcc; then |
2369 |
- # bug #549768 |
2370 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
2371 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
2372 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
2373 |
- # Run in subshell to prevent "Aborted" message |
2374 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
2375 |
- if ! eend $?; then |
2376 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
2377 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
2378 |
- eerror "or use gcc-config to select a different compiler version." |
2379 |
- eerror "See https://bugs.gentoo.org/549768" |
2380 |
- eerror |
2381 |
- return 1 |
2382 |
- fi |
2383 |
- fi |
2384 |
- # bug #574044 |
2385 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
2386 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
2387 |
- # Compile in subshell to prevent "Aborted" message |
2388 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
2389 |
- if ! eend $?; then |
2390 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
2391 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
2392 |
- eerror "or use gcc-config to select a different compiler version." |
2393 |
- eerror "See https://bugs.gentoo.org/574044" |
2394 |
- eerror |
2395 |
- return 1 |
2396 |
- fi |
2397 |
- fi |
2398 |
- fi |
2399 |
- |
2400 |
# Ensure compiler support |
2401 |
- if use abi_x86_64; then |
2402 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
2403 |
- # Compile in subshell to prevent "Aborted" message |
2404 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
2405 |
- if ! eend $?; then |
2406 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
2407 |
- eerror |
2408 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
2409 |
- eerror |
2410 |
- return 1 |
2411 |
- fi |
2412 |
- fi |
2413 |
+ # (No checks here as of 2022) |
2414 |
+ return 0 |
2415 |
} |
2416 |
|
2417 |
wine_build_environment_check() { |
2418 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2419 |
|
2420 |
- if use abi_x86_64; then |
2421 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
2422 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
2423 |
- die |
2424 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
2425 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
2426 |
- die |
2427 |
- fi |
2428 |
- fi |
2429 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
2430 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
2431 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
2432 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
2433 |
- fi |
2434 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
2435 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
2436 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
2437 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
2438 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
2439 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
2440 |
- fi |
2441 |
- fi |
2442 |
- |
2443 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
2444 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
2445 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
2446 |
|
2447 |
diff --git a/app-emulation/wine-staging/wine-staging-5.10-r1.ebuild b/app-emulation/wine-staging/wine-staging-5.10-r1.ebuild |
2448 |
index 85e6987..be54e1e 100644 |
2449 |
--- a/app-emulation/wine-staging/wine-staging-5.10-r1.ebuild |
2450 |
+++ b/app-emulation/wine-staging/wine-staging-5.10-r1.ebuild |
2451 |
@@ -179,80 +179,14 @@ fi |
2452 |
wine_compiler_check() { |
2453 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2454 |
|
2455 |
- # GCC-specific bugs |
2456 |
- if tc-is-gcc; then |
2457 |
- # bug #549768 |
2458 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
2459 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
2460 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
2461 |
- # Run in subshell to prevent "Aborted" message |
2462 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
2463 |
- if ! eend $?; then |
2464 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
2465 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
2466 |
- eerror "or use gcc-config to select a different compiler version." |
2467 |
- eerror "See https://bugs.gentoo.org/549768" |
2468 |
- eerror |
2469 |
- return 1 |
2470 |
- fi |
2471 |
- fi |
2472 |
- # bug #574044 |
2473 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
2474 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
2475 |
- # Compile in subshell to prevent "Aborted" message |
2476 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
2477 |
- if ! eend $?; then |
2478 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
2479 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
2480 |
- eerror "or use gcc-config to select a different compiler version." |
2481 |
- eerror "See https://bugs.gentoo.org/574044" |
2482 |
- eerror |
2483 |
- return 1 |
2484 |
- fi |
2485 |
- fi |
2486 |
- fi |
2487 |
- |
2488 |
# Ensure compiler support |
2489 |
- if use abi_x86_64; then |
2490 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
2491 |
- # Compile in subshell to prevent "Aborted" message |
2492 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
2493 |
- if ! eend $?; then |
2494 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
2495 |
- eerror |
2496 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
2497 |
- eerror |
2498 |
- return 1 |
2499 |
- fi |
2500 |
- fi |
2501 |
+ # (No checks here as of 2022) |
2502 |
+ return 0 |
2503 |
} |
2504 |
|
2505 |
wine_build_environment_check() { |
2506 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2507 |
|
2508 |
- if use abi_x86_64; then |
2509 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
2510 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
2511 |
- die |
2512 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
2513 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
2514 |
- die |
2515 |
- fi |
2516 |
- fi |
2517 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
2518 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
2519 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
2520 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
2521 |
- fi |
2522 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
2523 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
2524 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
2525 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
2526 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
2527 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
2528 |
- fi |
2529 |
- fi |
2530 |
- |
2531 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
2532 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
2533 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
2534 |
|
2535 |
diff --git a/app-emulation/wine-staging/wine-staging-5.11.ebuild b/app-emulation/wine-staging/wine-staging-5.11.ebuild |
2536 |
index 07d95eb..cac5a70 100644 |
2537 |
--- a/app-emulation/wine-staging/wine-staging-5.11.ebuild |
2538 |
+++ b/app-emulation/wine-staging/wine-staging-5.11.ebuild |
2539 |
@@ -179,80 +179,14 @@ fi |
2540 |
wine_compiler_check() { |
2541 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2542 |
|
2543 |
- # GCC-specific bugs |
2544 |
- if tc-is-gcc; then |
2545 |
- # bug #549768 |
2546 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
2547 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
2548 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
2549 |
- # Run in subshell to prevent "Aborted" message |
2550 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
2551 |
- if ! eend $?; then |
2552 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
2553 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
2554 |
- eerror "or use gcc-config to select a different compiler version." |
2555 |
- eerror "See https://bugs.gentoo.org/549768" |
2556 |
- eerror |
2557 |
- return 1 |
2558 |
- fi |
2559 |
- fi |
2560 |
- # bug #574044 |
2561 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
2562 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
2563 |
- # Compile in subshell to prevent "Aborted" message |
2564 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
2565 |
- if ! eend $?; then |
2566 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
2567 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
2568 |
- eerror "or use gcc-config to select a different compiler version." |
2569 |
- eerror "See https://bugs.gentoo.org/574044" |
2570 |
- eerror |
2571 |
- return 1 |
2572 |
- fi |
2573 |
- fi |
2574 |
- fi |
2575 |
- |
2576 |
# Ensure compiler support |
2577 |
- if use abi_x86_64; then |
2578 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
2579 |
- # Compile in subshell to prevent "Aborted" message |
2580 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
2581 |
- if ! eend $?; then |
2582 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
2583 |
- eerror |
2584 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
2585 |
- eerror |
2586 |
- return 1 |
2587 |
- fi |
2588 |
- fi |
2589 |
+ # (No checks here as of 2022) |
2590 |
+ return 0 |
2591 |
} |
2592 |
|
2593 |
wine_build_environment_check() { |
2594 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2595 |
|
2596 |
- if use abi_x86_64; then |
2597 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
2598 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
2599 |
- die |
2600 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
2601 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
2602 |
- die |
2603 |
- fi |
2604 |
- fi |
2605 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
2606 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
2607 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
2608 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
2609 |
- fi |
2610 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
2611 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
2612 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
2613 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
2614 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
2615 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
2616 |
- fi |
2617 |
- fi |
2618 |
- |
2619 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
2620 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
2621 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
2622 |
|
2623 |
diff --git a/app-emulation/wine-staging/wine-staging-5.12.ebuild b/app-emulation/wine-staging/wine-staging-5.12.ebuild |
2624 |
index 93a29d4..e9db8ac 100644 |
2625 |
--- a/app-emulation/wine-staging/wine-staging-5.12.ebuild |
2626 |
+++ b/app-emulation/wine-staging/wine-staging-5.12.ebuild |
2627 |
@@ -179,80 +179,14 @@ fi |
2628 |
wine_compiler_check() { |
2629 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2630 |
|
2631 |
- # GCC-specific bugs |
2632 |
- if tc-is-gcc; then |
2633 |
- # bug #549768 |
2634 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
2635 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
2636 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
2637 |
- # Run in subshell to prevent "Aborted" message |
2638 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
2639 |
- if ! eend $?; then |
2640 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
2641 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
2642 |
- eerror "or use gcc-config to select a different compiler version." |
2643 |
- eerror "See https://bugs.gentoo.org/549768" |
2644 |
- eerror |
2645 |
- return 1 |
2646 |
- fi |
2647 |
- fi |
2648 |
- # bug #574044 |
2649 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
2650 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
2651 |
- # Compile in subshell to prevent "Aborted" message |
2652 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
2653 |
- if ! eend $?; then |
2654 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
2655 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
2656 |
- eerror "or use gcc-config to select a different compiler version." |
2657 |
- eerror "See https://bugs.gentoo.org/574044" |
2658 |
- eerror |
2659 |
- return 1 |
2660 |
- fi |
2661 |
- fi |
2662 |
- fi |
2663 |
- |
2664 |
# Ensure compiler support |
2665 |
- if use abi_x86_64; then |
2666 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
2667 |
- # Compile in subshell to prevent "Aborted" message |
2668 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
2669 |
- if ! eend $?; then |
2670 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
2671 |
- eerror |
2672 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
2673 |
- eerror |
2674 |
- return 1 |
2675 |
- fi |
2676 |
- fi |
2677 |
+ # (No checks here as of 2022) |
2678 |
+ return 0 |
2679 |
} |
2680 |
|
2681 |
wine_build_environment_check() { |
2682 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2683 |
|
2684 |
- if use abi_x86_64; then |
2685 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
2686 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
2687 |
- die |
2688 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
2689 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
2690 |
- die |
2691 |
- fi |
2692 |
- fi |
2693 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
2694 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
2695 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
2696 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
2697 |
- fi |
2698 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
2699 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
2700 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
2701 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
2702 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
2703 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
2704 |
- fi |
2705 |
- fi |
2706 |
- |
2707 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
2708 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
2709 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
2710 |
|
2711 |
diff --git a/app-emulation/wine-staging/wine-staging-5.13.ebuild b/app-emulation/wine-staging/wine-staging-5.13.ebuild |
2712 |
index 07d95eb..cac5a70 100644 |
2713 |
--- a/app-emulation/wine-staging/wine-staging-5.13.ebuild |
2714 |
+++ b/app-emulation/wine-staging/wine-staging-5.13.ebuild |
2715 |
@@ -179,80 +179,14 @@ fi |
2716 |
wine_compiler_check() { |
2717 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2718 |
|
2719 |
- # GCC-specific bugs |
2720 |
- if tc-is-gcc; then |
2721 |
- # bug #549768 |
2722 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
2723 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
2724 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
2725 |
- # Run in subshell to prevent "Aborted" message |
2726 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
2727 |
- if ! eend $?; then |
2728 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
2729 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
2730 |
- eerror "or use gcc-config to select a different compiler version." |
2731 |
- eerror "See https://bugs.gentoo.org/549768" |
2732 |
- eerror |
2733 |
- return 1 |
2734 |
- fi |
2735 |
- fi |
2736 |
- # bug #574044 |
2737 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
2738 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
2739 |
- # Compile in subshell to prevent "Aborted" message |
2740 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
2741 |
- if ! eend $?; then |
2742 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
2743 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
2744 |
- eerror "or use gcc-config to select a different compiler version." |
2745 |
- eerror "See https://bugs.gentoo.org/574044" |
2746 |
- eerror |
2747 |
- return 1 |
2748 |
- fi |
2749 |
- fi |
2750 |
- fi |
2751 |
- |
2752 |
# Ensure compiler support |
2753 |
- if use abi_x86_64; then |
2754 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
2755 |
- # Compile in subshell to prevent "Aborted" message |
2756 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
2757 |
- if ! eend $?; then |
2758 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
2759 |
- eerror |
2760 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
2761 |
- eerror |
2762 |
- return 1 |
2763 |
- fi |
2764 |
- fi |
2765 |
+ # (No checks here as of 2022) |
2766 |
+ return 0 |
2767 |
} |
2768 |
|
2769 |
wine_build_environment_check() { |
2770 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2771 |
|
2772 |
- if use abi_x86_64; then |
2773 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
2774 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
2775 |
- die |
2776 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
2777 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
2778 |
- die |
2779 |
- fi |
2780 |
- fi |
2781 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
2782 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
2783 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
2784 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
2785 |
- fi |
2786 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
2787 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
2788 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
2789 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
2790 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
2791 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
2792 |
- fi |
2793 |
- fi |
2794 |
- |
2795 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
2796 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
2797 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
2798 |
|
2799 |
diff --git a/app-emulation/wine-staging/wine-staging-5.14.ebuild b/app-emulation/wine-staging/wine-staging-5.14.ebuild |
2800 |
index 07d95eb..cac5a70 100644 |
2801 |
--- a/app-emulation/wine-staging/wine-staging-5.14.ebuild |
2802 |
+++ b/app-emulation/wine-staging/wine-staging-5.14.ebuild |
2803 |
@@ -179,80 +179,14 @@ fi |
2804 |
wine_compiler_check() { |
2805 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2806 |
|
2807 |
- # GCC-specific bugs |
2808 |
- if tc-is-gcc; then |
2809 |
- # bug #549768 |
2810 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
2811 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
2812 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
2813 |
- # Run in subshell to prevent "Aborted" message |
2814 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
2815 |
- if ! eend $?; then |
2816 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
2817 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
2818 |
- eerror "or use gcc-config to select a different compiler version." |
2819 |
- eerror "See https://bugs.gentoo.org/549768" |
2820 |
- eerror |
2821 |
- return 1 |
2822 |
- fi |
2823 |
- fi |
2824 |
- # bug #574044 |
2825 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
2826 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
2827 |
- # Compile in subshell to prevent "Aborted" message |
2828 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
2829 |
- if ! eend $?; then |
2830 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
2831 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
2832 |
- eerror "or use gcc-config to select a different compiler version." |
2833 |
- eerror "See https://bugs.gentoo.org/574044" |
2834 |
- eerror |
2835 |
- return 1 |
2836 |
- fi |
2837 |
- fi |
2838 |
- fi |
2839 |
- |
2840 |
# Ensure compiler support |
2841 |
- if use abi_x86_64; then |
2842 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
2843 |
- # Compile in subshell to prevent "Aborted" message |
2844 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
2845 |
- if ! eend $?; then |
2846 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
2847 |
- eerror |
2848 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
2849 |
- eerror |
2850 |
- return 1 |
2851 |
- fi |
2852 |
- fi |
2853 |
+ # (No checks here as of 2022) |
2854 |
+ return 0 |
2855 |
} |
2856 |
|
2857 |
wine_build_environment_check() { |
2858 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2859 |
|
2860 |
- if use abi_x86_64; then |
2861 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
2862 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
2863 |
- die |
2864 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
2865 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
2866 |
- die |
2867 |
- fi |
2868 |
- fi |
2869 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
2870 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
2871 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
2872 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
2873 |
- fi |
2874 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
2875 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
2876 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
2877 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
2878 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
2879 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
2880 |
- fi |
2881 |
- fi |
2882 |
- |
2883 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
2884 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
2885 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
2886 |
|
2887 |
diff --git a/app-emulation/wine-staging/wine-staging-5.15.ebuild b/app-emulation/wine-staging/wine-staging-5.15.ebuild |
2888 |
index 1b3ff43..bf5e5c1 100644 |
2889 |
--- a/app-emulation/wine-staging/wine-staging-5.15.ebuild |
2890 |
+++ b/app-emulation/wine-staging/wine-staging-5.15.ebuild |
2891 |
@@ -179,80 +179,14 @@ fi |
2892 |
wine_compiler_check() { |
2893 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2894 |
|
2895 |
- # GCC-specific bugs |
2896 |
- if tc-is-gcc; then |
2897 |
- # bug #549768 |
2898 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
2899 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
2900 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
2901 |
- # Run in subshell to prevent "Aborted" message |
2902 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
2903 |
- if ! eend $?; then |
2904 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
2905 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
2906 |
- eerror "or use gcc-config to select a different compiler version." |
2907 |
- eerror "See https://bugs.gentoo.org/549768" |
2908 |
- eerror |
2909 |
- return 1 |
2910 |
- fi |
2911 |
- fi |
2912 |
- # bug #574044 |
2913 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
2914 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
2915 |
- # Compile in subshell to prevent "Aborted" message |
2916 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
2917 |
- if ! eend $?; then |
2918 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
2919 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
2920 |
- eerror "or use gcc-config to select a different compiler version." |
2921 |
- eerror "See https://bugs.gentoo.org/574044" |
2922 |
- eerror |
2923 |
- return 1 |
2924 |
- fi |
2925 |
- fi |
2926 |
- fi |
2927 |
- |
2928 |
# Ensure compiler support |
2929 |
- if use abi_x86_64; then |
2930 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
2931 |
- # Compile in subshell to prevent "Aborted" message |
2932 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
2933 |
- if ! eend $?; then |
2934 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
2935 |
- eerror |
2936 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
2937 |
- eerror |
2938 |
- return 1 |
2939 |
- fi |
2940 |
- fi |
2941 |
+ # (No checks here as of 2022) |
2942 |
+ return 0 |
2943 |
} |
2944 |
|
2945 |
wine_build_environment_check() { |
2946 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2947 |
|
2948 |
- if use abi_x86_64; then |
2949 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
2950 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
2951 |
- die |
2952 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
2953 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
2954 |
- die |
2955 |
- fi |
2956 |
- fi |
2957 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
2958 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
2959 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
2960 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
2961 |
- fi |
2962 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
2963 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
2964 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
2965 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
2966 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
2967 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
2968 |
- fi |
2969 |
- fi |
2970 |
- |
2971 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
2972 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
2973 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
2974 |
|
2975 |
diff --git a/app-emulation/wine-staging/wine-staging-5.16.ebuild b/app-emulation/wine-staging/wine-staging-5.16.ebuild |
2976 |
index 07d95eb..cac5a70 100644 |
2977 |
--- a/app-emulation/wine-staging/wine-staging-5.16.ebuild |
2978 |
+++ b/app-emulation/wine-staging/wine-staging-5.16.ebuild |
2979 |
@@ -179,80 +179,14 @@ fi |
2980 |
wine_compiler_check() { |
2981 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
2982 |
|
2983 |
- # GCC-specific bugs |
2984 |
- if tc-is-gcc; then |
2985 |
- # bug #549768 |
2986 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
2987 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
2988 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
2989 |
- # Run in subshell to prevent "Aborted" message |
2990 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
2991 |
- if ! eend $?; then |
2992 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
2993 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
2994 |
- eerror "or use gcc-config to select a different compiler version." |
2995 |
- eerror "See https://bugs.gentoo.org/549768" |
2996 |
- eerror |
2997 |
- return 1 |
2998 |
- fi |
2999 |
- fi |
3000 |
- # bug #574044 |
3001 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
3002 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
3003 |
- # Compile in subshell to prevent "Aborted" message |
3004 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
3005 |
- if ! eend $?; then |
3006 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
3007 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
3008 |
- eerror "or use gcc-config to select a different compiler version." |
3009 |
- eerror "See https://bugs.gentoo.org/574044" |
3010 |
- eerror |
3011 |
- return 1 |
3012 |
- fi |
3013 |
- fi |
3014 |
- fi |
3015 |
- |
3016 |
# Ensure compiler support |
3017 |
- if use abi_x86_64; then |
3018 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
3019 |
- # Compile in subshell to prevent "Aborted" message |
3020 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
3021 |
- if ! eend $?; then |
3022 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
3023 |
- eerror |
3024 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
3025 |
- eerror |
3026 |
- return 1 |
3027 |
- fi |
3028 |
- fi |
3029 |
+ # (No checks here as of 2022) |
3030 |
+ return 0 |
3031 |
} |
3032 |
|
3033 |
wine_build_environment_check() { |
3034 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3035 |
|
3036 |
- if use abi_x86_64; then |
3037 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
3038 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
3039 |
- die |
3040 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
3041 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
3042 |
- die |
3043 |
- fi |
3044 |
- fi |
3045 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
3046 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
3047 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
3048 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
3049 |
- fi |
3050 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
3051 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
3052 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
3053 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
3054 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
3055 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
3056 |
- fi |
3057 |
- fi |
3058 |
- |
3059 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
3060 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
3061 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
3062 |
|
3063 |
diff --git a/app-emulation/wine-staging/wine-staging-5.17.ebuild b/app-emulation/wine-staging/wine-staging-5.17.ebuild |
3064 |
index 07d95eb..cac5a70 100644 |
3065 |
--- a/app-emulation/wine-staging/wine-staging-5.17.ebuild |
3066 |
+++ b/app-emulation/wine-staging/wine-staging-5.17.ebuild |
3067 |
@@ -179,80 +179,14 @@ fi |
3068 |
wine_compiler_check() { |
3069 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3070 |
|
3071 |
- # GCC-specific bugs |
3072 |
- if tc-is-gcc; then |
3073 |
- # bug #549768 |
3074 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
3075 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
3076 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
3077 |
- # Run in subshell to prevent "Aborted" message |
3078 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
3079 |
- if ! eend $?; then |
3080 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
3081 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
3082 |
- eerror "or use gcc-config to select a different compiler version." |
3083 |
- eerror "See https://bugs.gentoo.org/549768" |
3084 |
- eerror |
3085 |
- return 1 |
3086 |
- fi |
3087 |
- fi |
3088 |
- # bug #574044 |
3089 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
3090 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
3091 |
- # Compile in subshell to prevent "Aborted" message |
3092 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
3093 |
- if ! eend $?; then |
3094 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
3095 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
3096 |
- eerror "or use gcc-config to select a different compiler version." |
3097 |
- eerror "See https://bugs.gentoo.org/574044" |
3098 |
- eerror |
3099 |
- return 1 |
3100 |
- fi |
3101 |
- fi |
3102 |
- fi |
3103 |
- |
3104 |
# Ensure compiler support |
3105 |
- if use abi_x86_64; then |
3106 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
3107 |
- # Compile in subshell to prevent "Aborted" message |
3108 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
3109 |
- if ! eend $?; then |
3110 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
3111 |
- eerror |
3112 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
3113 |
- eerror |
3114 |
- return 1 |
3115 |
- fi |
3116 |
- fi |
3117 |
+ # (No checks here as of 2022) |
3118 |
+ return 0 |
3119 |
} |
3120 |
|
3121 |
wine_build_environment_check() { |
3122 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3123 |
|
3124 |
- if use abi_x86_64; then |
3125 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
3126 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
3127 |
- die |
3128 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
3129 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
3130 |
- die |
3131 |
- fi |
3132 |
- fi |
3133 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
3134 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
3135 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
3136 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
3137 |
- fi |
3138 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
3139 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
3140 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
3141 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
3142 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
3143 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
3144 |
- fi |
3145 |
- fi |
3146 |
- |
3147 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
3148 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
3149 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
3150 |
|
3151 |
diff --git a/app-emulation/wine-staging/wine-staging-5.18.ebuild b/app-emulation/wine-staging/wine-staging-5.18.ebuild |
3152 |
index 673c73e..e940300 100644 |
3153 |
--- a/app-emulation/wine-staging/wine-staging-5.18.ebuild |
3154 |
+++ b/app-emulation/wine-staging/wine-staging-5.18.ebuild |
3155 |
@@ -179,80 +179,14 @@ fi |
3156 |
wine_compiler_check() { |
3157 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3158 |
|
3159 |
- # GCC-specific bugs |
3160 |
- if tc-is-gcc; then |
3161 |
- # bug #549768 |
3162 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
3163 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
3164 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
3165 |
- # Run in subshell to prevent "Aborted" message |
3166 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
3167 |
- if ! eend $?; then |
3168 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
3169 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
3170 |
- eerror "or use gcc-config to select a different compiler version." |
3171 |
- eerror "See https://bugs.gentoo.org/549768" |
3172 |
- eerror |
3173 |
- return 1 |
3174 |
- fi |
3175 |
- fi |
3176 |
- # bug #574044 |
3177 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
3178 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
3179 |
- # Compile in subshell to prevent "Aborted" message |
3180 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
3181 |
- if ! eend $?; then |
3182 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
3183 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
3184 |
- eerror "or use gcc-config to select a different compiler version." |
3185 |
- eerror "See https://bugs.gentoo.org/574044" |
3186 |
- eerror |
3187 |
- return 1 |
3188 |
- fi |
3189 |
- fi |
3190 |
- fi |
3191 |
- |
3192 |
# Ensure compiler support |
3193 |
- if use abi_x86_64; then |
3194 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
3195 |
- # Compile in subshell to prevent "Aborted" message |
3196 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
3197 |
- if ! eend $?; then |
3198 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
3199 |
- eerror |
3200 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
3201 |
- eerror |
3202 |
- return 1 |
3203 |
- fi |
3204 |
- fi |
3205 |
+ # (No checks here as of 2022) |
3206 |
+ return 0 |
3207 |
} |
3208 |
|
3209 |
wine_build_environment_check() { |
3210 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3211 |
|
3212 |
- if use abi_x86_64; then |
3213 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
3214 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
3215 |
- die |
3216 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
3217 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
3218 |
- die |
3219 |
- fi |
3220 |
- fi |
3221 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
3222 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
3223 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
3224 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
3225 |
- fi |
3226 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
3227 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
3228 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
3229 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
3230 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
3231 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
3232 |
- fi |
3233 |
- fi |
3234 |
- |
3235 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
3236 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
3237 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
3238 |
|
3239 |
diff --git a/app-emulation/wine-staging/wine-staging-5.19.ebuild b/app-emulation/wine-staging/wine-staging-5.19.ebuild |
3240 |
index 82e33c8..37f25c2 100644 |
3241 |
--- a/app-emulation/wine-staging/wine-staging-5.19.ebuild |
3242 |
+++ b/app-emulation/wine-staging/wine-staging-5.19.ebuild |
3243 |
@@ -179,80 +179,14 @@ fi |
3244 |
wine_compiler_check() { |
3245 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3246 |
|
3247 |
- # GCC-specific bugs |
3248 |
- if tc-is-gcc; then |
3249 |
- # bug #549768 |
3250 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
3251 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
3252 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
3253 |
- # Run in subshell to prevent "Aborted" message |
3254 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
3255 |
- if ! eend $?; then |
3256 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
3257 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
3258 |
- eerror "or use gcc-config to select a different compiler version." |
3259 |
- eerror "See https://bugs.gentoo.org/549768" |
3260 |
- eerror |
3261 |
- return 1 |
3262 |
- fi |
3263 |
- fi |
3264 |
- # bug #574044 |
3265 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
3266 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
3267 |
- # Compile in subshell to prevent "Aborted" message |
3268 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
3269 |
- if ! eend $?; then |
3270 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
3271 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
3272 |
- eerror "or use gcc-config to select a different compiler version." |
3273 |
- eerror "See https://bugs.gentoo.org/574044" |
3274 |
- eerror |
3275 |
- return 1 |
3276 |
- fi |
3277 |
- fi |
3278 |
- fi |
3279 |
- |
3280 |
# Ensure compiler support |
3281 |
- if use abi_x86_64; then |
3282 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
3283 |
- # Compile in subshell to prevent "Aborted" message |
3284 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
3285 |
- if ! eend $?; then |
3286 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
3287 |
- eerror |
3288 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
3289 |
- eerror |
3290 |
- return 1 |
3291 |
- fi |
3292 |
- fi |
3293 |
+ # (No checks here as of 2022) |
3294 |
+ return 0 |
3295 |
} |
3296 |
|
3297 |
wine_build_environment_check() { |
3298 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3299 |
|
3300 |
- if use abi_x86_64; then |
3301 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
3302 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
3303 |
- die |
3304 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
3305 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
3306 |
- die |
3307 |
- fi |
3308 |
- fi |
3309 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
3310 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
3311 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
3312 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
3313 |
- fi |
3314 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
3315 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
3316 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
3317 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
3318 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
3319 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
3320 |
- fi |
3321 |
- fi |
3322 |
- |
3323 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
3324 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
3325 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
3326 |
|
3327 |
diff --git a/app-emulation/wine-staging/wine-staging-5.2.ebuild b/app-emulation/wine-staging/wine-staging-5.2.ebuild |
3328 |
index 42cf5a0..1f31212 100644 |
3329 |
--- a/app-emulation/wine-staging/wine-staging-5.2.ebuild |
3330 |
+++ b/app-emulation/wine-staging/wine-staging-5.2.ebuild |
3331 |
@@ -177,80 +177,14 @@ fi |
3332 |
wine_compiler_check() { |
3333 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3334 |
|
3335 |
- # GCC-specific bugs |
3336 |
- if tc-is-gcc; then |
3337 |
- # bug #549768 |
3338 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
3339 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
3340 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
3341 |
- # Run in subshell to prevent "Aborted" message |
3342 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
3343 |
- if ! eend $?; then |
3344 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
3345 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
3346 |
- eerror "or use gcc-config to select a different compiler version." |
3347 |
- eerror "See https://bugs.gentoo.org/549768" |
3348 |
- eerror |
3349 |
- return 1 |
3350 |
- fi |
3351 |
- fi |
3352 |
- # bug #574044 |
3353 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
3354 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
3355 |
- # Compile in subshell to prevent "Aborted" message |
3356 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
3357 |
- if ! eend $?; then |
3358 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
3359 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
3360 |
- eerror "or use gcc-config to select a different compiler version." |
3361 |
- eerror "See https://bugs.gentoo.org/574044" |
3362 |
- eerror |
3363 |
- return 1 |
3364 |
- fi |
3365 |
- fi |
3366 |
- fi |
3367 |
- |
3368 |
# Ensure compiler support |
3369 |
- if use abi_x86_64; then |
3370 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
3371 |
- # Compile in subshell to prevent "Aborted" message |
3372 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
3373 |
- if ! eend $?; then |
3374 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
3375 |
- eerror |
3376 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
3377 |
- eerror |
3378 |
- return 1 |
3379 |
- fi |
3380 |
- fi |
3381 |
+ # (No checks here as of 2022) |
3382 |
+ return 0 |
3383 |
} |
3384 |
|
3385 |
wine_build_environment_check() { |
3386 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3387 |
|
3388 |
- if use abi_x86_64; then |
3389 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
3390 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
3391 |
- die |
3392 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
3393 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
3394 |
- die |
3395 |
- fi |
3396 |
- fi |
3397 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
3398 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
3399 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
3400 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
3401 |
- fi |
3402 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
3403 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
3404 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
3405 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
3406 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
3407 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
3408 |
- fi |
3409 |
- fi |
3410 |
- |
3411 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
3412 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
3413 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
3414 |
|
3415 |
diff --git a/app-emulation/wine-staging/wine-staging-5.20.ebuild b/app-emulation/wine-staging/wine-staging-5.20.ebuild |
3416 |
index 82e33c8..37f25c2 100644 |
3417 |
--- a/app-emulation/wine-staging/wine-staging-5.20.ebuild |
3418 |
+++ b/app-emulation/wine-staging/wine-staging-5.20.ebuild |
3419 |
@@ -179,80 +179,14 @@ fi |
3420 |
wine_compiler_check() { |
3421 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3422 |
|
3423 |
- # GCC-specific bugs |
3424 |
- if tc-is-gcc; then |
3425 |
- # bug #549768 |
3426 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
3427 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
3428 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
3429 |
- # Run in subshell to prevent "Aborted" message |
3430 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
3431 |
- if ! eend $?; then |
3432 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
3433 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
3434 |
- eerror "or use gcc-config to select a different compiler version." |
3435 |
- eerror "See https://bugs.gentoo.org/549768" |
3436 |
- eerror |
3437 |
- return 1 |
3438 |
- fi |
3439 |
- fi |
3440 |
- # bug #574044 |
3441 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
3442 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
3443 |
- # Compile in subshell to prevent "Aborted" message |
3444 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
3445 |
- if ! eend $?; then |
3446 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
3447 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
3448 |
- eerror "or use gcc-config to select a different compiler version." |
3449 |
- eerror "See https://bugs.gentoo.org/574044" |
3450 |
- eerror |
3451 |
- return 1 |
3452 |
- fi |
3453 |
- fi |
3454 |
- fi |
3455 |
- |
3456 |
# Ensure compiler support |
3457 |
- if use abi_x86_64; then |
3458 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
3459 |
- # Compile in subshell to prevent "Aborted" message |
3460 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
3461 |
- if ! eend $?; then |
3462 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
3463 |
- eerror |
3464 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
3465 |
- eerror |
3466 |
- return 1 |
3467 |
- fi |
3468 |
- fi |
3469 |
+ # (No checks here as of 2022) |
3470 |
+ return 0 |
3471 |
} |
3472 |
|
3473 |
wine_build_environment_check() { |
3474 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3475 |
|
3476 |
- if use abi_x86_64; then |
3477 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
3478 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
3479 |
- die |
3480 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
3481 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
3482 |
- die |
3483 |
- fi |
3484 |
- fi |
3485 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
3486 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
3487 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
3488 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
3489 |
- fi |
3490 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
3491 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
3492 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
3493 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
3494 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
3495 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
3496 |
- fi |
3497 |
- fi |
3498 |
- |
3499 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
3500 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
3501 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
3502 |
|
3503 |
diff --git a/app-emulation/wine-staging/wine-staging-5.21.ebuild b/app-emulation/wine-staging/wine-staging-5.21.ebuild |
3504 |
index 59e656f..0a5ddba 100644 |
3505 |
--- a/app-emulation/wine-staging/wine-staging-5.21.ebuild |
3506 |
+++ b/app-emulation/wine-staging/wine-staging-5.21.ebuild |
3507 |
@@ -178,80 +178,14 @@ fi |
3508 |
wine_compiler_check() { |
3509 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3510 |
|
3511 |
- # GCC-specific bugs |
3512 |
- if tc-is-gcc; then |
3513 |
- # bug #549768 |
3514 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
3515 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
3516 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
3517 |
- # Run in subshell to prevent "Aborted" message |
3518 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
3519 |
- if ! eend $?; then |
3520 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
3521 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
3522 |
- eerror "or use gcc-config to select a different compiler version." |
3523 |
- eerror "See https://bugs.gentoo.org/549768" |
3524 |
- eerror |
3525 |
- return 1 |
3526 |
- fi |
3527 |
- fi |
3528 |
- # bug #574044 |
3529 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
3530 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
3531 |
- # Compile in subshell to prevent "Aborted" message |
3532 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
3533 |
- if ! eend $?; then |
3534 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
3535 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
3536 |
- eerror "or use gcc-config to select a different compiler version." |
3537 |
- eerror "See https://bugs.gentoo.org/574044" |
3538 |
- eerror |
3539 |
- return 1 |
3540 |
- fi |
3541 |
- fi |
3542 |
- fi |
3543 |
- |
3544 |
# Ensure compiler support |
3545 |
- if use abi_x86_64; then |
3546 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
3547 |
- # Compile in subshell to prevent "Aborted" message |
3548 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
3549 |
- if ! eend $?; then |
3550 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
3551 |
- eerror |
3552 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
3553 |
- eerror |
3554 |
- return 1 |
3555 |
- fi |
3556 |
- fi |
3557 |
+ # (No checks here as of 2022) |
3558 |
+ return 0 |
3559 |
} |
3560 |
|
3561 |
wine_build_environment_check() { |
3562 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3563 |
|
3564 |
- if use abi_x86_64; then |
3565 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
3566 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
3567 |
- die |
3568 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
3569 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
3570 |
- die |
3571 |
- fi |
3572 |
- fi |
3573 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
3574 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
3575 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
3576 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
3577 |
- fi |
3578 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
3579 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
3580 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
3581 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
3582 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
3583 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
3584 |
- fi |
3585 |
- fi |
3586 |
- |
3587 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
3588 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
3589 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
3590 |
|
3591 |
diff --git a/app-emulation/wine-staging/wine-staging-5.22-r1.ebuild b/app-emulation/wine-staging/wine-staging-5.22-r1.ebuild |
3592 |
index f81e9bd..78099b8 100644 |
3593 |
--- a/app-emulation/wine-staging/wine-staging-5.22-r1.ebuild |
3594 |
+++ b/app-emulation/wine-staging/wine-staging-5.22-r1.ebuild |
3595 |
@@ -178,80 +178,14 @@ fi |
3596 |
wine_compiler_check() { |
3597 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3598 |
|
3599 |
- # GCC-specific bugs |
3600 |
- if tc-is-gcc; then |
3601 |
- # bug #549768 |
3602 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
3603 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
3604 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
3605 |
- # Run in subshell to prevent "Aborted" message |
3606 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
3607 |
- if ! eend $?; then |
3608 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
3609 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
3610 |
- eerror "or use gcc-config to select a different compiler version." |
3611 |
- eerror "See https://bugs.gentoo.org/549768" |
3612 |
- eerror |
3613 |
- return 1 |
3614 |
- fi |
3615 |
- fi |
3616 |
- # bug #574044 |
3617 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
3618 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
3619 |
- # Compile in subshell to prevent "Aborted" message |
3620 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
3621 |
- if ! eend $?; then |
3622 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
3623 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
3624 |
- eerror "or use gcc-config to select a different compiler version." |
3625 |
- eerror "See https://bugs.gentoo.org/574044" |
3626 |
- eerror |
3627 |
- return 1 |
3628 |
- fi |
3629 |
- fi |
3630 |
- fi |
3631 |
- |
3632 |
# Ensure compiler support |
3633 |
- if use abi_x86_64; then |
3634 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
3635 |
- # Compile in subshell to prevent "Aborted" message |
3636 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
3637 |
- if ! eend $?; then |
3638 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
3639 |
- eerror |
3640 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
3641 |
- eerror |
3642 |
- return 1 |
3643 |
- fi |
3644 |
- fi |
3645 |
+ # (No checks here as of 2022) |
3646 |
+ return 0 |
3647 |
} |
3648 |
|
3649 |
wine_build_environment_check() { |
3650 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3651 |
|
3652 |
- if use abi_x86_64; then |
3653 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
3654 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
3655 |
- die |
3656 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
3657 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
3658 |
- die |
3659 |
- fi |
3660 |
- fi |
3661 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
3662 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
3663 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
3664 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
3665 |
- fi |
3666 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
3667 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
3668 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
3669 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
3670 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
3671 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
3672 |
- fi |
3673 |
- fi |
3674 |
- |
3675 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
3676 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
3677 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
3678 |
|
3679 |
diff --git a/app-emulation/wine-staging/wine-staging-5.22-r2.ebuild b/app-emulation/wine-staging/wine-staging-5.22-r2.ebuild |
3680 |
index 9864644..6f3fe18 100644 |
3681 |
--- a/app-emulation/wine-staging/wine-staging-5.22-r2.ebuild |
3682 |
+++ b/app-emulation/wine-staging/wine-staging-5.22-r2.ebuild |
3683 |
@@ -177,80 +177,14 @@ fi |
3684 |
wine_compiler_check() { |
3685 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3686 |
|
3687 |
- # GCC-specific bugs |
3688 |
- if tc-is-gcc; then |
3689 |
- # bug #549768 |
3690 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
3691 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
3692 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
3693 |
- # Run in subshell to prevent "Aborted" message |
3694 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
3695 |
- if ! eend $?; then |
3696 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
3697 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
3698 |
- eerror "or use gcc-config to select a different compiler version." |
3699 |
- eerror "See https://bugs.gentoo.org/549768" |
3700 |
- eerror |
3701 |
- return 1 |
3702 |
- fi |
3703 |
- fi |
3704 |
- # bug #574044 |
3705 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
3706 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
3707 |
- # Compile in subshell to prevent "Aborted" message |
3708 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
3709 |
- if ! eend $?; then |
3710 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
3711 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
3712 |
- eerror "or use gcc-config to select a different compiler version." |
3713 |
- eerror "See https://bugs.gentoo.org/574044" |
3714 |
- eerror |
3715 |
- return 1 |
3716 |
- fi |
3717 |
- fi |
3718 |
- fi |
3719 |
- |
3720 |
# Ensure compiler support |
3721 |
- if use abi_x86_64; then |
3722 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
3723 |
- # Compile in subshell to prevent "Aborted" message |
3724 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
3725 |
- if ! eend $?; then |
3726 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
3727 |
- eerror |
3728 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
3729 |
- eerror |
3730 |
- return 1 |
3731 |
- fi |
3732 |
- fi |
3733 |
+ # (No checks here as of 2022) |
3734 |
+ return 0 |
3735 |
} |
3736 |
|
3737 |
wine_build_environment_check() { |
3738 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3739 |
|
3740 |
- if use abi_x86_64; then |
3741 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
3742 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
3743 |
- die |
3744 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
3745 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
3746 |
- die |
3747 |
- fi |
3748 |
- fi |
3749 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
3750 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
3751 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
3752 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
3753 |
- fi |
3754 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
3755 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
3756 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
3757 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
3758 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
3759 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
3760 |
- fi |
3761 |
- fi |
3762 |
- |
3763 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
3764 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
3765 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
3766 |
|
3767 |
diff --git a/app-emulation/wine-staging/wine-staging-5.22.ebuild b/app-emulation/wine-staging/wine-staging-5.22.ebuild |
3768 |
index 59e656f..0a5ddba 100644 |
3769 |
--- a/app-emulation/wine-staging/wine-staging-5.22.ebuild |
3770 |
+++ b/app-emulation/wine-staging/wine-staging-5.22.ebuild |
3771 |
@@ -178,80 +178,14 @@ fi |
3772 |
wine_compiler_check() { |
3773 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3774 |
|
3775 |
- # GCC-specific bugs |
3776 |
- if tc-is-gcc; then |
3777 |
- # bug #549768 |
3778 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
3779 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
3780 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
3781 |
- # Run in subshell to prevent "Aborted" message |
3782 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
3783 |
- if ! eend $?; then |
3784 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
3785 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
3786 |
- eerror "or use gcc-config to select a different compiler version." |
3787 |
- eerror "See https://bugs.gentoo.org/549768" |
3788 |
- eerror |
3789 |
- return 1 |
3790 |
- fi |
3791 |
- fi |
3792 |
- # bug #574044 |
3793 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
3794 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
3795 |
- # Compile in subshell to prevent "Aborted" message |
3796 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
3797 |
- if ! eend $?; then |
3798 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
3799 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
3800 |
- eerror "or use gcc-config to select a different compiler version." |
3801 |
- eerror "See https://bugs.gentoo.org/574044" |
3802 |
- eerror |
3803 |
- return 1 |
3804 |
- fi |
3805 |
- fi |
3806 |
- fi |
3807 |
- |
3808 |
# Ensure compiler support |
3809 |
- if use abi_x86_64; then |
3810 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
3811 |
- # Compile in subshell to prevent "Aborted" message |
3812 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
3813 |
- if ! eend $?; then |
3814 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
3815 |
- eerror |
3816 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
3817 |
- eerror |
3818 |
- return 1 |
3819 |
- fi |
3820 |
- fi |
3821 |
+ # (No checks here as of 2022) |
3822 |
+ return 0 |
3823 |
} |
3824 |
|
3825 |
wine_build_environment_check() { |
3826 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3827 |
|
3828 |
- if use abi_x86_64; then |
3829 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
3830 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
3831 |
- die |
3832 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
3833 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
3834 |
- die |
3835 |
- fi |
3836 |
- fi |
3837 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
3838 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
3839 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
3840 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
3841 |
- fi |
3842 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
3843 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
3844 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
3845 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
3846 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
3847 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
3848 |
- fi |
3849 |
- fi |
3850 |
- |
3851 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
3852 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
3853 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
3854 |
|
3855 |
diff --git a/app-emulation/wine-staging/wine-staging-5.3-r1.ebuild b/app-emulation/wine-staging/wine-staging-5.3-r1.ebuild |
3856 |
index 7b48355..9cef37e 100644 |
3857 |
--- a/app-emulation/wine-staging/wine-staging-5.3-r1.ebuild |
3858 |
+++ b/app-emulation/wine-staging/wine-staging-5.3-r1.ebuild |
3859 |
@@ -178,80 +178,14 @@ fi |
3860 |
wine_compiler_check() { |
3861 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3862 |
|
3863 |
- # GCC-specific bugs |
3864 |
- if tc-is-gcc; then |
3865 |
- # bug #549768 |
3866 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
3867 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
3868 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
3869 |
- # Run in subshell to prevent "Aborted" message |
3870 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
3871 |
- if ! eend $?; then |
3872 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
3873 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
3874 |
- eerror "or use gcc-config to select a different compiler version." |
3875 |
- eerror "See https://bugs.gentoo.org/549768" |
3876 |
- eerror |
3877 |
- return 1 |
3878 |
- fi |
3879 |
- fi |
3880 |
- # bug #574044 |
3881 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
3882 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
3883 |
- # Compile in subshell to prevent "Aborted" message |
3884 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
3885 |
- if ! eend $?; then |
3886 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
3887 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
3888 |
- eerror "or use gcc-config to select a different compiler version." |
3889 |
- eerror "See https://bugs.gentoo.org/574044" |
3890 |
- eerror |
3891 |
- return 1 |
3892 |
- fi |
3893 |
- fi |
3894 |
- fi |
3895 |
- |
3896 |
# Ensure compiler support |
3897 |
- if use abi_x86_64; then |
3898 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
3899 |
- # Compile in subshell to prevent "Aborted" message |
3900 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
3901 |
- if ! eend $?; then |
3902 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
3903 |
- eerror |
3904 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
3905 |
- eerror |
3906 |
- return 1 |
3907 |
- fi |
3908 |
- fi |
3909 |
+ # (No checks here as of 2022) |
3910 |
+ return 0 |
3911 |
} |
3912 |
|
3913 |
wine_build_environment_check() { |
3914 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3915 |
|
3916 |
- if use abi_x86_64; then |
3917 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
3918 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
3919 |
- die |
3920 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
3921 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
3922 |
- die |
3923 |
- fi |
3924 |
- fi |
3925 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
3926 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
3927 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
3928 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
3929 |
- fi |
3930 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
3931 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
3932 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
3933 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
3934 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
3935 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
3936 |
- fi |
3937 |
- fi |
3938 |
- |
3939 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
3940 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
3941 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
3942 |
|
3943 |
diff --git a/app-emulation/wine-staging/wine-staging-5.3.ebuild b/app-emulation/wine-staging/wine-staging-5.3.ebuild |
3944 |
index 42cf5a0..1f31212 100644 |
3945 |
--- a/app-emulation/wine-staging/wine-staging-5.3.ebuild |
3946 |
+++ b/app-emulation/wine-staging/wine-staging-5.3.ebuild |
3947 |
@@ -177,80 +177,14 @@ fi |
3948 |
wine_compiler_check() { |
3949 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
3950 |
|
3951 |
- # GCC-specific bugs |
3952 |
- if tc-is-gcc; then |
3953 |
- # bug #549768 |
3954 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
3955 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
3956 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
3957 |
- # Run in subshell to prevent "Aborted" message |
3958 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
3959 |
- if ! eend $?; then |
3960 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
3961 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
3962 |
- eerror "or use gcc-config to select a different compiler version." |
3963 |
- eerror "See https://bugs.gentoo.org/549768" |
3964 |
- eerror |
3965 |
- return 1 |
3966 |
- fi |
3967 |
- fi |
3968 |
- # bug #574044 |
3969 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
3970 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
3971 |
- # Compile in subshell to prevent "Aborted" message |
3972 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
3973 |
- if ! eend $?; then |
3974 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
3975 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
3976 |
- eerror "or use gcc-config to select a different compiler version." |
3977 |
- eerror "See https://bugs.gentoo.org/574044" |
3978 |
- eerror |
3979 |
- return 1 |
3980 |
- fi |
3981 |
- fi |
3982 |
- fi |
3983 |
- |
3984 |
# Ensure compiler support |
3985 |
- if use abi_x86_64; then |
3986 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
3987 |
- # Compile in subshell to prevent "Aborted" message |
3988 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
3989 |
- if ! eend $?; then |
3990 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
3991 |
- eerror |
3992 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
3993 |
- eerror |
3994 |
- return 1 |
3995 |
- fi |
3996 |
- fi |
3997 |
+ # (No checks here as of 2022) |
3998 |
+ return 0 |
3999 |
} |
4000 |
|
4001 |
wine_build_environment_check() { |
4002 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
4003 |
|
4004 |
- if use abi_x86_64; then |
4005 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
4006 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
4007 |
- die |
4008 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
4009 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
4010 |
- die |
4011 |
- fi |
4012 |
- fi |
4013 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
4014 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
4015 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
4016 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
4017 |
- fi |
4018 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
4019 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
4020 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
4021 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
4022 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
4023 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
4024 |
- fi |
4025 |
- fi |
4026 |
- |
4027 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
4028 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
4029 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
4030 |
|
4031 |
diff --git a/app-emulation/wine-staging/wine-staging-5.4.ebuild b/app-emulation/wine-staging/wine-staging-5.4.ebuild |
4032 |
index 7b48355..9cef37e 100644 |
4033 |
--- a/app-emulation/wine-staging/wine-staging-5.4.ebuild |
4034 |
+++ b/app-emulation/wine-staging/wine-staging-5.4.ebuild |
4035 |
@@ -178,80 +178,14 @@ fi |
4036 |
wine_compiler_check() { |
4037 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
4038 |
|
4039 |
- # GCC-specific bugs |
4040 |
- if tc-is-gcc; then |
4041 |
- # bug #549768 |
4042 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
4043 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
4044 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
4045 |
- # Run in subshell to prevent "Aborted" message |
4046 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
4047 |
- if ! eend $?; then |
4048 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
4049 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
4050 |
- eerror "or use gcc-config to select a different compiler version." |
4051 |
- eerror "See https://bugs.gentoo.org/549768" |
4052 |
- eerror |
4053 |
- return 1 |
4054 |
- fi |
4055 |
- fi |
4056 |
- # bug #574044 |
4057 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
4058 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
4059 |
- # Compile in subshell to prevent "Aborted" message |
4060 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
4061 |
- if ! eend $?; then |
4062 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
4063 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
4064 |
- eerror "or use gcc-config to select a different compiler version." |
4065 |
- eerror "See https://bugs.gentoo.org/574044" |
4066 |
- eerror |
4067 |
- return 1 |
4068 |
- fi |
4069 |
- fi |
4070 |
- fi |
4071 |
- |
4072 |
# Ensure compiler support |
4073 |
- if use abi_x86_64; then |
4074 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
4075 |
- # Compile in subshell to prevent "Aborted" message |
4076 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
4077 |
- if ! eend $?; then |
4078 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
4079 |
- eerror |
4080 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
4081 |
- eerror |
4082 |
- return 1 |
4083 |
- fi |
4084 |
- fi |
4085 |
+ # (No checks here as of 2022) |
4086 |
+ return 0 |
4087 |
} |
4088 |
|
4089 |
wine_build_environment_check() { |
4090 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
4091 |
|
4092 |
- if use abi_x86_64; then |
4093 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
4094 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
4095 |
- die |
4096 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
4097 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
4098 |
- die |
4099 |
- fi |
4100 |
- fi |
4101 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
4102 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
4103 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
4104 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
4105 |
- fi |
4106 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
4107 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
4108 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
4109 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
4110 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
4111 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
4112 |
- fi |
4113 |
- fi |
4114 |
- |
4115 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
4116 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
4117 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
4118 |
|
4119 |
diff --git a/app-emulation/wine-staging/wine-staging-5.5-r1.ebuild b/app-emulation/wine-staging/wine-staging-5.5-r1.ebuild |
4120 |
index 25a5afb..803aa05 100644 |
4121 |
--- a/app-emulation/wine-staging/wine-staging-5.5-r1.ebuild |
4122 |
+++ b/app-emulation/wine-staging/wine-staging-5.5-r1.ebuild |
4123 |
@@ -179,80 +179,14 @@ fi |
4124 |
wine_compiler_check() { |
4125 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
4126 |
|
4127 |
- # GCC-specific bugs |
4128 |
- if tc-is-gcc; then |
4129 |
- # bug #549768 |
4130 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
4131 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
4132 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
4133 |
- # Run in subshell to prevent "Aborted" message |
4134 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
4135 |
- if ! eend $?; then |
4136 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
4137 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
4138 |
- eerror "or use gcc-config to select a different compiler version." |
4139 |
- eerror "See https://bugs.gentoo.org/549768" |
4140 |
- eerror |
4141 |
- return 1 |
4142 |
- fi |
4143 |
- fi |
4144 |
- # bug #574044 |
4145 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
4146 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
4147 |
- # Compile in subshell to prevent "Aborted" message |
4148 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
4149 |
- if ! eend $?; then |
4150 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
4151 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
4152 |
- eerror "or use gcc-config to select a different compiler version." |
4153 |
- eerror "See https://bugs.gentoo.org/574044" |
4154 |
- eerror |
4155 |
- return 1 |
4156 |
- fi |
4157 |
- fi |
4158 |
- fi |
4159 |
- |
4160 |
# Ensure compiler support |
4161 |
- if use abi_x86_64; then |
4162 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
4163 |
- # Compile in subshell to prevent "Aborted" message |
4164 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
4165 |
- if ! eend $?; then |
4166 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
4167 |
- eerror |
4168 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
4169 |
- eerror |
4170 |
- return 1 |
4171 |
- fi |
4172 |
- fi |
4173 |
+ # (No checks here as of 2022) |
4174 |
+ return 0 |
4175 |
} |
4176 |
|
4177 |
wine_build_environment_check() { |
4178 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
4179 |
|
4180 |
- if use abi_x86_64; then |
4181 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
4182 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
4183 |
- die |
4184 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
4185 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
4186 |
- die |
4187 |
- fi |
4188 |
- fi |
4189 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
4190 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
4191 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
4192 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
4193 |
- fi |
4194 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
4195 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
4196 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
4197 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
4198 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
4199 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
4200 |
- fi |
4201 |
- fi |
4202 |
- |
4203 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
4204 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
4205 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
4206 |
|
4207 |
diff --git a/app-emulation/wine-staging/wine-staging-5.5.ebuild b/app-emulation/wine-staging/wine-staging-5.5.ebuild |
4208 |
index ca7d129..1236a14 100644 |
4209 |
--- a/app-emulation/wine-staging/wine-staging-5.5.ebuild |
4210 |
+++ b/app-emulation/wine-staging/wine-staging-5.5.ebuild |
4211 |
@@ -179,80 +179,14 @@ fi |
4212 |
wine_compiler_check() { |
4213 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
4214 |
|
4215 |
- # GCC-specific bugs |
4216 |
- if tc-is-gcc; then |
4217 |
- # bug #549768 |
4218 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
4219 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
4220 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
4221 |
- # Run in subshell to prevent "Aborted" message |
4222 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
4223 |
- if ! eend $?; then |
4224 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
4225 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
4226 |
- eerror "or use gcc-config to select a different compiler version." |
4227 |
- eerror "See https://bugs.gentoo.org/549768" |
4228 |
- eerror |
4229 |
- return 1 |
4230 |
- fi |
4231 |
- fi |
4232 |
- # bug #574044 |
4233 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
4234 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
4235 |
- # Compile in subshell to prevent "Aborted" message |
4236 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
4237 |
- if ! eend $?; then |
4238 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
4239 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
4240 |
- eerror "or use gcc-config to select a different compiler version." |
4241 |
- eerror "See https://bugs.gentoo.org/574044" |
4242 |
- eerror |
4243 |
- return 1 |
4244 |
- fi |
4245 |
- fi |
4246 |
- fi |
4247 |
- |
4248 |
# Ensure compiler support |
4249 |
- if use abi_x86_64; then |
4250 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
4251 |
- # Compile in subshell to prevent "Aborted" message |
4252 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
4253 |
- if ! eend $?; then |
4254 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
4255 |
- eerror |
4256 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
4257 |
- eerror |
4258 |
- return 1 |
4259 |
- fi |
4260 |
- fi |
4261 |
+ # (No checks here as of 2022) |
4262 |
+ return 0 |
4263 |
} |
4264 |
|
4265 |
wine_build_environment_check() { |
4266 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
4267 |
|
4268 |
- if use abi_x86_64; then |
4269 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
4270 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
4271 |
- die |
4272 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
4273 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
4274 |
- die |
4275 |
- fi |
4276 |
- fi |
4277 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
4278 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
4279 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
4280 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
4281 |
- fi |
4282 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
4283 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
4284 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
4285 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
4286 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
4287 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
4288 |
- fi |
4289 |
- fi |
4290 |
- |
4291 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
4292 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
4293 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
4294 |
|
4295 |
diff --git a/app-emulation/wine-staging/wine-staging-5.6.ebuild b/app-emulation/wine-staging/wine-staging-5.6.ebuild |
4296 |
index af4af38..4bb2b91 100644 |
4297 |
--- a/app-emulation/wine-staging/wine-staging-5.6.ebuild |
4298 |
+++ b/app-emulation/wine-staging/wine-staging-5.6.ebuild |
4299 |
@@ -178,80 +178,14 @@ fi |
4300 |
wine_compiler_check() { |
4301 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
4302 |
|
4303 |
- # GCC-specific bugs |
4304 |
- if tc-is-gcc; then |
4305 |
- # bug #549768 |
4306 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
4307 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
4308 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
4309 |
- # Run in subshell to prevent "Aborted" message |
4310 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
4311 |
- if ! eend $?; then |
4312 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
4313 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
4314 |
- eerror "or use gcc-config to select a different compiler version." |
4315 |
- eerror "See https://bugs.gentoo.org/549768" |
4316 |
- eerror |
4317 |
- return 1 |
4318 |
- fi |
4319 |
- fi |
4320 |
- # bug #574044 |
4321 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
4322 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
4323 |
- # Compile in subshell to prevent "Aborted" message |
4324 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
4325 |
- if ! eend $?; then |
4326 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
4327 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
4328 |
- eerror "or use gcc-config to select a different compiler version." |
4329 |
- eerror "See https://bugs.gentoo.org/574044" |
4330 |
- eerror |
4331 |
- return 1 |
4332 |
- fi |
4333 |
- fi |
4334 |
- fi |
4335 |
- |
4336 |
# Ensure compiler support |
4337 |
- if use abi_x86_64; then |
4338 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
4339 |
- # Compile in subshell to prevent "Aborted" message |
4340 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
4341 |
- if ! eend $?; then |
4342 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
4343 |
- eerror |
4344 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
4345 |
- eerror |
4346 |
- return 1 |
4347 |
- fi |
4348 |
- fi |
4349 |
+ # (No checks here as of 2022) |
4350 |
+ return 0 |
4351 |
} |
4352 |
|
4353 |
wine_build_environment_check() { |
4354 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
4355 |
|
4356 |
- if use abi_x86_64; then |
4357 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
4358 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
4359 |
- die |
4360 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
4361 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
4362 |
- die |
4363 |
- fi |
4364 |
- fi |
4365 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
4366 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
4367 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
4368 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
4369 |
- fi |
4370 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
4371 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
4372 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
4373 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
4374 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
4375 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
4376 |
- fi |
4377 |
- fi |
4378 |
- |
4379 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
4380 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
4381 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
4382 |
|
4383 |
diff --git a/app-emulation/wine-staging/wine-staging-5.7.ebuild b/app-emulation/wine-staging/wine-staging-5.7.ebuild |
4384 |
index 91ee0dd..96f9284 100644 |
4385 |
--- a/app-emulation/wine-staging/wine-staging-5.7.ebuild |
4386 |
+++ b/app-emulation/wine-staging/wine-staging-5.7.ebuild |
4387 |
@@ -178,80 +178,14 @@ fi |
4388 |
wine_compiler_check() { |
4389 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
4390 |
|
4391 |
- # GCC-specific bugs |
4392 |
- if tc-is-gcc; then |
4393 |
- # bug #549768 |
4394 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
4395 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
4396 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
4397 |
- # Run in subshell to prevent "Aborted" message |
4398 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
4399 |
- if ! eend $?; then |
4400 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
4401 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
4402 |
- eerror "or use gcc-config to select a different compiler version." |
4403 |
- eerror "See https://bugs.gentoo.org/549768" |
4404 |
- eerror |
4405 |
- return 1 |
4406 |
- fi |
4407 |
- fi |
4408 |
- # bug #574044 |
4409 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
4410 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
4411 |
- # Compile in subshell to prevent "Aborted" message |
4412 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
4413 |
- if ! eend $?; then |
4414 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
4415 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
4416 |
- eerror "or use gcc-config to select a different compiler version." |
4417 |
- eerror "See https://bugs.gentoo.org/574044" |
4418 |
- eerror |
4419 |
- return 1 |
4420 |
- fi |
4421 |
- fi |
4422 |
- fi |
4423 |
- |
4424 |
# Ensure compiler support |
4425 |
- if use abi_x86_64; then |
4426 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
4427 |
- # Compile in subshell to prevent "Aborted" message |
4428 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
4429 |
- if ! eend $?; then |
4430 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
4431 |
- eerror |
4432 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
4433 |
- eerror |
4434 |
- return 1 |
4435 |
- fi |
4436 |
- fi |
4437 |
+ # (No checks here as of 2022) |
4438 |
+ return 0 |
4439 |
} |
4440 |
|
4441 |
wine_build_environment_check() { |
4442 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
4443 |
|
4444 |
- if use abi_x86_64; then |
4445 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
4446 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
4447 |
- die |
4448 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
4449 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
4450 |
- die |
4451 |
- fi |
4452 |
- fi |
4453 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
4454 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
4455 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
4456 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
4457 |
- fi |
4458 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
4459 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
4460 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
4461 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
4462 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
4463 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
4464 |
- fi |
4465 |
- fi |
4466 |
- |
4467 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
4468 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
4469 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
4470 |
|
4471 |
diff --git a/app-emulation/wine-staging/wine-staging-5.8.ebuild b/app-emulation/wine-staging/wine-staging-5.8.ebuild |
4472 |
index 91ee0dd..96f9284 100644 |
4473 |
--- a/app-emulation/wine-staging/wine-staging-5.8.ebuild |
4474 |
+++ b/app-emulation/wine-staging/wine-staging-5.8.ebuild |
4475 |
@@ -178,80 +178,14 @@ fi |
4476 |
wine_compiler_check() { |
4477 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
4478 |
|
4479 |
- # GCC-specific bugs |
4480 |
- if tc-is-gcc; then |
4481 |
- # bug #549768 |
4482 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
4483 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
4484 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
4485 |
- # Run in subshell to prevent "Aborted" message |
4486 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
4487 |
- if ! eend $?; then |
4488 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
4489 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
4490 |
- eerror "or use gcc-config to select a different compiler version." |
4491 |
- eerror "See https://bugs.gentoo.org/549768" |
4492 |
- eerror |
4493 |
- return 1 |
4494 |
- fi |
4495 |
- fi |
4496 |
- # bug #574044 |
4497 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
4498 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
4499 |
- # Compile in subshell to prevent "Aborted" message |
4500 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
4501 |
- if ! eend $?; then |
4502 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
4503 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
4504 |
- eerror "or use gcc-config to select a different compiler version." |
4505 |
- eerror "See https://bugs.gentoo.org/574044" |
4506 |
- eerror |
4507 |
- return 1 |
4508 |
- fi |
4509 |
- fi |
4510 |
- fi |
4511 |
- |
4512 |
# Ensure compiler support |
4513 |
- if use abi_x86_64; then |
4514 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
4515 |
- # Compile in subshell to prevent "Aborted" message |
4516 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
4517 |
- if ! eend $?; then |
4518 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
4519 |
- eerror |
4520 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
4521 |
- eerror |
4522 |
- return 1 |
4523 |
- fi |
4524 |
- fi |
4525 |
+ # (No checks here as of 2022) |
4526 |
+ return 0 |
4527 |
} |
4528 |
|
4529 |
wine_build_environment_check() { |
4530 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
4531 |
|
4532 |
- if use abi_x86_64; then |
4533 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
4534 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
4535 |
- die |
4536 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
4537 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
4538 |
- die |
4539 |
- fi |
4540 |
- fi |
4541 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
4542 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
4543 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
4544 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
4545 |
- fi |
4546 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
4547 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
4548 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
4549 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
4550 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
4551 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
4552 |
- fi |
4553 |
- fi |
4554 |
- |
4555 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
4556 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
4557 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
4558 |
|
4559 |
diff --git a/app-emulation/wine-staging/wine-staging-5.9.ebuild b/app-emulation/wine-staging/wine-staging-5.9.ebuild |
4560 |
index 94b9a23..34a4106 100644 |
4561 |
--- a/app-emulation/wine-staging/wine-staging-5.9.ebuild |
4562 |
+++ b/app-emulation/wine-staging/wine-staging-5.9.ebuild |
4563 |
@@ -179,80 +179,14 @@ fi |
4564 |
wine_compiler_check() { |
4565 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
4566 |
|
4567 |
- # GCC-specific bugs |
4568 |
- if tc-is-gcc; then |
4569 |
- # bug #549768 |
4570 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
4571 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
4572 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
4573 |
- # Run in subshell to prevent "Aborted" message |
4574 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
4575 |
- if ! eend $?; then |
4576 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
4577 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
4578 |
- eerror "or use gcc-config to select a different compiler version." |
4579 |
- eerror "See https://bugs.gentoo.org/549768" |
4580 |
- eerror |
4581 |
- return 1 |
4582 |
- fi |
4583 |
- fi |
4584 |
- # bug #574044 |
4585 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
4586 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
4587 |
- # Compile in subshell to prevent "Aborted" message |
4588 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
4589 |
- if ! eend $?; then |
4590 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
4591 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
4592 |
- eerror "or use gcc-config to select a different compiler version." |
4593 |
- eerror "See https://bugs.gentoo.org/574044" |
4594 |
- eerror |
4595 |
- return 1 |
4596 |
- fi |
4597 |
- fi |
4598 |
- fi |
4599 |
- |
4600 |
# Ensure compiler support |
4601 |
- if use abi_x86_64; then |
4602 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
4603 |
- # Compile in subshell to prevent "Aborted" message |
4604 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
4605 |
- if ! eend $?; then |
4606 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
4607 |
- eerror |
4608 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
4609 |
- eerror |
4610 |
- return 1 |
4611 |
- fi |
4612 |
- fi |
4613 |
+ # (No checks here as of 2022) |
4614 |
+ return 0 |
4615 |
} |
4616 |
|
4617 |
wine_build_environment_check() { |
4618 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
4619 |
|
4620 |
- if use abi_x86_64; then |
4621 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
4622 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
4623 |
- die |
4624 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
4625 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
4626 |
- die |
4627 |
- fi |
4628 |
- fi |
4629 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
4630 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
4631 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
4632 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
4633 |
- fi |
4634 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
4635 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
4636 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
4637 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
4638 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
4639 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
4640 |
- fi |
4641 |
- fi |
4642 |
- |
4643 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
4644 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
4645 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
4646 |
|
4647 |
diff --git a/app-emulation/wine-staging/wine-staging-6.0.ebuild b/app-emulation/wine-staging/wine-staging-6.0.ebuild |
4648 |
index a6678f8..400bae8 100644 |
4649 |
--- a/app-emulation/wine-staging/wine-staging-6.0.ebuild |
4650 |
+++ b/app-emulation/wine-staging/wine-staging-6.0.ebuild |
4651 |
@@ -182,80 +182,14 @@ fi |
4652 |
wine_compiler_check() { |
4653 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
4654 |
|
4655 |
- # GCC-specific bugs |
4656 |
- if tc-is-gcc; then |
4657 |
- # bug #549768 |
4658 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
4659 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
4660 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
4661 |
- # Run in subshell to prevent "Aborted" message |
4662 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
4663 |
- if ! eend $?; then |
4664 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
4665 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
4666 |
- eerror "or use gcc-config to select a different compiler version." |
4667 |
- eerror "See https://bugs.gentoo.org/549768" |
4668 |
- eerror |
4669 |
- return 1 |
4670 |
- fi |
4671 |
- fi |
4672 |
- # bug #574044 |
4673 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
4674 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
4675 |
- # Compile in subshell to prevent "Aborted" message |
4676 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
4677 |
- if ! eend $?; then |
4678 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
4679 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
4680 |
- eerror "or use gcc-config to select a different compiler version." |
4681 |
- eerror "See https://bugs.gentoo.org/574044" |
4682 |
- eerror |
4683 |
- return 1 |
4684 |
- fi |
4685 |
- fi |
4686 |
- fi |
4687 |
- |
4688 |
# Ensure compiler support |
4689 |
- if use abi_x86_64; then |
4690 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
4691 |
- # Compile in subshell to prevent "Aborted" message |
4692 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
4693 |
- if ! eend $?; then |
4694 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
4695 |
- eerror |
4696 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
4697 |
- eerror |
4698 |
- return 1 |
4699 |
- fi |
4700 |
- fi |
4701 |
+ # (No checks here as of 2022) |
4702 |
+ return 0 |
4703 |
} |
4704 |
|
4705 |
wine_build_environment_check() { |
4706 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
4707 |
|
4708 |
- if use abi_x86_64; then |
4709 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
4710 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
4711 |
- die |
4712 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
4713 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
4714 |
- die |
4715 |
- fi |
4716 |
- fi |
4717 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
4718 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
4719 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
4720 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
4721 |
- fi |
4722 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
4723 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
4724 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
4725 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
4726 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
4727 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
4728 |
- fi |
4729 |
- fi |
4730 |
- |
4731 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
4732 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
4733 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
4734 |
|
4735 |
diff --git a/app-emulation/wine-staging/wine-staging-6.1.ebuild b/app-emulation/wine-staging/wine-staging-6.1.ebuild |
4736 |
index a6678f8..400bae8 100644 |
4737 |
--- a/app-emulation/wine-staging/wine-staging-6.1.ebuild |
4738 |
+++ b/app-emulation/wine-staging/wine-staging-6.1.ebuild |
4739 |
@@ -182,80 +182,14 @@ fi |
4740 |
wine_compiler_check() { |
4741 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
4742 |
|
4743 |
- # GCC-specific bugs |
4744 |
- if tc-is-gcc; then |
4745 |
- # bug #549768 |
4746 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
4747 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
4748 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
4749 |
- # Run in subshell to prevent "Aborted" message |
4750 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
4751 |
- if ! eend $?; then |
4752 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
4753 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
4754 |
- eerror "or use gcc-config to select a different compiler version." |
4755 |
- eerror "See https://bugs.gentoo.org/549768" |
4756 |
- eerror |
4757 |
- return 1 |
4758 |
- fi |
4759 |
- fi |
4760 |
- # bug #574044 |
4761 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
4762 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
4763 |
- # Compile in subshell to prevent "Aborted" message |
4764 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
4765 |
- if ! eend $?; then |
4766 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
4767 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
4768 |
- eerror "or use gcc-config to select a different compiler version." |
4769 |
- eerror "See https://bugs.gentoo.org/574044" |
4770 |
- eerror |
4771 |
- return 1 |
4772 |
- fi |
4773 |
- fi |
4774 |
- fi |
4775 |
- |
4776 |
# Ensure compiler support |
4777 |
- if use abi_x86_64; then |
4778 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
4779 |
- # Compile in subshell to prevent "Aborted" message |
4780 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
4781 |
- if ! eend $?; then |
4782 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
4783 |
- eerror |
4784 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
4785 |
- eerror |
4786 |
- return 1 |
4787 |
- fi |
4788 |
- fi |
4789 |
+ # (No checks here as of 2022) |
4790 |
+ return 0 |
4791 |
} |
4792 |
|
4793 |
wine_build_environment_check() { |
4794 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
4795 |
|
4796 |
- if use abi_x86_64; then |
4797 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
4798 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
4799 |
- die |
4800 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
4801 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
4802 |
- die |
4803 |
- fi |
4804 |
- fi |
4805 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
4806 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
4807 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
4808 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
4809 |
- fi |
4810 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
4811 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
4812 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
4813 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
4814 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
4815 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
4816 |
- fi |
4817 |
- fi |
4818 |
- |
4819 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
4820 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
4821 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
4822 |
|
4823 |
diff --git a/app-emulation/wine-staging/wine-staging-6.2.ebuild b/app-emulation/wine-staging/wine-staging-6.2.ebuild |
4824 |
index d5e646e..f37d566 100644 |
4825 |
--- a/app-emulation/wine-staging/wine-staging-6.2.ebuild |
4826 |
+++ b/app-emulation/wine-staging/wine-staging-6.2.ebuild |
4827 |
@@ -181,80 +181,14 @@ fi |
4828 |
wine_compiler_check() { |
4829 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
4830 |
|
4831 |
- # GCC-specific bugs |
4832 |
- if tc-is-gcc; then |
4833 |
- # bug #549768 |
4834 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
4835 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
4836 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
4837 |
- # Run in subshell to prevent "Aborted" message |
4838 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
4839 |
- if ! eend $?; then |
4840 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
4841 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
4842 |
- eerror "or use gcc-config to select a different compiler version." |
4843 |
- eerror "See https://bugs.gentoo.org/549768" |
4844 |
- eerror |
4845 |
- return 1 |
4846 |
- fi |
4847 |
- fi |
4848 |
- # bug #574044 |
4849 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
4850 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
4851 |
- # Compile in subshell to prevent "Aborted" message |
4852 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
4853 |
- if ! eend $?; then |
4854 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
4855 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
4856 |
- eerror "or use gcc-config to select a different compiler version." |
4857 |
- eerror "See https://bugs.gentoo.org/574044" |
4858 |
- eerror |
4859 |
- return 1 |
4860 |
- fi |
4861 |
- fi |
4862 |
- fi |
4863 |
- |
4864 |
# Ensure compiler support |
4865 |
- if use abi_x86_64; then |
4866 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
4867 |
- # Compile in subshell to prevent "Aborted" message |
4868 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
4869 |
- if ! eend $?; then |
4870 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
4871 |
- eerror |
4872 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
4873 |
- eerror |
4874 |
- return 1 |
4875 |
- fi |
4876 |
- fi |
4877 |
+ # (No checks here as of 2022) |
4878 |
+ return 0 |
4879 |
} |
4880 |
|
4881 |
wine_build_environment_check() { |
4882 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
4883 |
|
4884 |
- if use abi_x86_64; then |
4885 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
4886 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
4887 |
- die |
4888 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
4889 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
4890 |
- die |
4891 |
- fi |
4892 |
- fi |
4893 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
4894 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
4895 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
4896 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
4897 |
- fi |
4898 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
4899 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
4900 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
4901 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
4902 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
4903 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
4904 |
- fi |
4905 |
- fi |
4906 |
- |
4907 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
4908 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
4909 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
4910 |
|
4911 |
diff --git a/app-emulation/wine-staging/wine-staging-6.3-r1.ebuild b/app-emulation/wine-staging/wine-staging-6.3-r1.ebuild |
4912 |
index 316128e..6527e0b 100644 |
4913 |
--- a/app-emulation/wine-staging/wine-staging-6.3-r1.ebuild |
4914 |
+++ b/app-emulation/wine-staging/wine-staging-6.3-r1.ebuild |
4915 |
@@ -183,80 +183,14 @@ fi |
4916 |
wine_compiler_check() { |
4917 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
4918 |
|
4919 |
- # GCC-specific bugs |
4920 |
- if tc-is-gcc; then |
4921 |
- # bug #549768 |
4922 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
4923 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
4924 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
4925 |
- # Run in subshell to prevent "Aborted" message |
4926 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
4927 |
- if ! eend $?; then |
4928 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
4929 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
4930 |
- eerror "or use gcc-config to select a different compiler version." |
4931 |
- eerror "See https://bugs.gentoo.org/549768" |
4932 |
- eerror |
4933 |
- return 1 |
4934 |
- fi |
4935 |
- fi |
4936 |
- # bug #574044 |
4937 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
4938 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
4939 |
- # Compile in subshell to prevent "Aborted" message |
4940 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
4941 |
- if ! eend $?; then |
4942 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
4943 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
4944 |
- eerror "or use gcc-config to select a different compiler version." |
4945 |
- eerror "See https://bugs.gentoo.org/574044" |
4946 |
- eerror |
4947 |
- return 1 |
4948 |
- fi |
4949 |
- fi |
4950 |
- fi |
4951 |
- |
4952 |
# Ensure compiler support |
4953 |
- if use abi_x86_64; then |
4954 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
4955 |
- # Compile in subshell to prevent "Aborted" message |
4956 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
4957 |
- if ! eend $?; then |
4958 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
4959 |
- eerror |
4960 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
4961 |
- eerror |
4962 |
- return 1 |
4963 |
- fi |
4964 |
- fi |
4965 |
+ # (No checks here as of 2022) |
4966 |
+ return 0 |
4967 |
} |
4968 |
|
4969 |
wine_build_environment_check() { |
4970 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
4971 |
|
4972 |
- if use abi_x86_64; then |
4973 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
4974 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
4975 |
- die |
4976 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
4977 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
4978 |
- die |
4979 |
- fi |
4980 |
- fi |
4981 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
4982 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
4983 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
4984 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
4985 |
- fi |
4986 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
4987 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
4988 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
4989 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
4990 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
4991 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
4992 |
- fi |
4993 |
- fi |
4994 |
- |
4995 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
4996 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
4997 |
eerror "See https://bugs.gentoo.org/487864 for more details." |
4998 |
|
4999 |
diff --git a/app-emulation/wine-staging/wine-staging-6.3.ebuild b/app-emulation/wine-staging/wine-staging-6.3.ebuild |
5000 |
index cad4ee5..13d2be6 100644 |
5001 |
--- a/app-emulation/wine-staging/wine-staging-6.3.ebuild |
5002 |
+++ b/app-emulation/wine-staging/wine-staging-6.3.ebuild |
5003 |
@@ -182,80 +182,14 @@ fi |
5004 |
wine_compiler_check() { |
5005 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
5006 |
|
5007 |
- # GCC-specific bugs |
5008 |
- if tc-is-gcc; then |
5009 |
- # bug #549768 |
5010 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) -le 2 ]]; then |
5011 |
- ebegin "Checking for gcc-5 ms_abi compiler bug" |
5012 |
- $(tc-getCC) -O2 "${PATCHDIR}/files/pr66838.c" -o "${T}"/pr66838 || die |
5013 |
- # Run in subshell to prevent "Aborted" message |
5014 |
- ( "${T}"/pr66838 || false ) >/dev/null 2>&1 |
5015 |
- if ! eend $?; then |
5016 |
- eerror "64-bit wine cannot be built with gcc-5.1 or initial patchset of 5.2.0" |
5017 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.2.x ebuild," |
5018 |
- eerror "or use gcc-config to select a different compiler version." |
5019 |
- eerror "See https://bugs.gentoo.org/549768" |
5020 |
- eerror |
5021 |
- return 1 |
5022 |
- fi |
5023 |
- fi |
5024 |
- # bug #574044 |
5025 |
- if use abi_x86_64 && [[ $(gcc-major-version) = 5 && $(gcc-minor-version) = 3 ]]; then |
5026 |
- ebegin "Checking for gcc-5-3 stack realignment compiler bug" |
5027 |
- # Compile in subshell to prevent "Aborted" message |
5028 |
- ( $(tc-getCC) -O2 -mincoming-stack-boundary=3 "${PATCHDIR}/files/pr69140.c" -o "${T}"/pr69140 ) >/dev/null 2>&1 |
5029 |
- if ! eend $?; then |
5030 |
- eerror "Wine cannot be built with this version of gcc-5.3" |
5031 |
- eerror "due to compiler bugs; please re-emerge the latest gcc-5.3.x ebuild," |
5032 |
- eerror "or use gcc-config to select a different compiler version." |
5033 |
- eerror "See https://bugs.gentoo.org/574044" |
5034 |
- eerror |
5035 |
- return 1 |
5036 |
- fi |
5037 |
- fi |
5038 |
- fi |
5039 |
- |
5040 |
# Ensure compiler support |
5041 |
- if use abi_x86_64; then |
5042 |
- ebegin "Checking for 64-bit compiler with builtin_ms_va_list support" |
5043 |
- # Compile in subshell to prevent "Aborted" message |
5044 |
- ( $(tc-getCC) -O2 "${PATCHDIR}/files/builtin_ms_va_list.c" -o "${T}"/builtin_ms_va_list >/dev/null 2>&1) |
5045 |
- if ! eend $?; then |
5046 |
- eerror "This version of $(tc-getCC) does not support builtin_ms_va_list, can't enable 64-bit wine" |
5047 |
- eerror |
5048 |
- eerror "You need gcc-4.4+ or clang 3.8+ to build 64-bit wine" |
5049 |
- eerror |
5050 |
- return 1 |
5051 |
- fi |
5052 |
- fi |
5053 |
+ # (No checks here as of 2022) |
5054 |
+ return 0 |
5055 |
} |
5056 |
|
5057 |
wine_build_environment_check() { |
5058 |
[[ ${MERGE_TYPE} = "binary" ]] && return 0 |
5059 |
|
5060 |
- if use abi_x86_64; then |
5061 |
- if tc-is-gcc && [[ $(gcc-major-version) -lt 4 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 4 ) ]]; then |
5062 |
- eerror "You need gcc-4.4+ to compile 64-bit wine" |
5063 |
- die |
5064 |
- elif tc-is-clang && [[ $(clang-major-version) -lt 3 || ( $(clang-major-version) -eq 3 && $(clang-minor-version) -lt 8 ) ]]; then |
5065 |
- eerror "You need clang-3.8+ to compile 64-bit wine" |
5066 |
- die |
5067 |
- fi |
5068 |
- fi |
5069 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -le 3 ]]; then |
5070 |
- ewarn "GCC-5.0-5.3 suffered from compiler bugs and are no longer supported by" |
5071 |
- ewarn "Gentoo's Toolchain Team. If your ebuild fails the compiler checks in" |
5072 |
- ewarn "the configure phase, either update your compiler or switch to <5.0 || >=5.4" |
5073 |
- fi |
5074 |
- if tc-is-gcc && [[ $(gcc-major-version) -eq 5 && $(gcc-minor-version) -eq 4 ]]; then |
5075 |
- if has "-march=i686" ${CFLAGS} && ! has "-mtune=generic" ${CFLAGS}; then |
5076 |
- ewarn "Compilation can hang with CFLAGS=\"-march=i686\". You can temporarily work" |
5077 |
- ewarn "around this by adding \"-mtune=generic\" to your CFLAGS for wine." |
5078 |
- ewarn "See package.env in man 5 portage for more information on how to do this." |
5079 |
- ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=613128 for more details" |
5080 |
- fi |
5081 |
- fi |
5082 |
- |
5083 |
if use abi_x86_32 && use opencl && [[ "$(eselect opencl show 2> /dev/null)" == "intel" ]]; then |
5084 |
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only." |
5085 |
eerror "See https://bugs.gentoo.org/487864 for more details." |