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