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