1 |
commit: 3727fcce65581b0fb086ad4cdd5a4d711d869fbc |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Jul 31 17:32:06 2020 +0000 |
4 |
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 31 18:33:18 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3727fcce |
7 |
|
8 |
games-emulation/zsnes: remove unused patches |
9 |
|
10 |
Package-Manager: Portage-3.0.1, Repoman-2.3.23 |
11 |
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/16919 |
13 |
Signed-off-by: Aaron Bauman <bman <AT> gentoo.org> |
14 |
|
15 |
.../files/zsnes-1.51-archopt-july-23-update.patch | 502 --------------------- |
16 |
games-emulation/zsnes/files/zsnes-1.51-gcc43.patch | 48 -- |
17 |
2 files changed, 550 deletions(-) |
18 |
|
19 |
diff --git a/games-emulation/zsnes/files/zsnes-1.51-archopt-july-23-update.patch b/games-emulation/zsnes/files/zsnes-1.51-archopt-july-23-update.patch |
20 |
deleted file mode 100644 |
21 |
index b3e466036f2..00000000000 |
22 |
--- a/games-emulation/zsnes/files/zsnes-1.51-archopt-july-23-update.patch |
23 |
+++ /dev/null |
24 |
@@ -1,502 +0,0 @@ |
25 |
---- a/tools/archopt.c.old |
26 |
-+++ b/tools/archopt.c |
27 |
-@@ -1,8 +1,30 @@ |
28 |
-+/* |
29 |
-+Copyright (C) 2005-2007 Nach, grinvader ( http://www.zsnes.com ) |
30 |
-+ |
31 |
-+This program is free software; you can redistribute it and/or |
32 |
-+modify it under the terms of the GNU General Public License |
33 |
-+version 2 as published by the Free Software Foundation. |
34 |
-+ |
35 |
-+This program is distributed in the hope that it will be useful, |
36 |
-+but WITHOUT ANY WARRANTY; without even the implied warranty of |
37 |
-+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
38 |
-+GNU General Public License for more details. |
39 |
-+ |
40 |
-+You should have received a copy of the GNU General Public License |
41 |
-+along with this program; if not, write to the Free Software |
42 |
-+Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
43 |
-+*/ |
44 |
-+ |
45 |
- #include <stdio.h> |
46 |
- #include <stdlib.h> |
47 |
- #include <string.h> |
48 |
- #include <ctype.h> |
49 |
- |
50 |
-+#ifdef _M_X64 |
51 |
-+#define __x86_64__ |
52 |
-+#endif |
53 |
-+ |
54 |
-+#ifdef __GNUC__ |
55 |
- #ifdef __x86_64__ |
56 |
- #define cpuid(in, a, b, c, d) asm volatile("cpuid": "=a" (a), "=b" (b), "=c" (c), "=d" (d) : "a" (in)); |
57 |
- #else |
58 |
-@@ -13,6 +35,22 @@ |
59 |
- movl %%ebx,%%edi;\ |
60 |
- popl %%ebx": "=a" (a), "=D" (b), "=c" (c), "=d" (d) : "a" (in)); |
61 |
- #endif |
62 |
-+#else |
63 |
-+char cpubuf[256]; |
64 |
-+int z_in, z_a, z_b, z_c, z_d; |
65 |
-+void cpuid_run() |
66 |
-+{ |
67 |
-+ _asm { |
68 |
-+ mov eax,z_in |
69 |
-+ cpuid |
70 |
-+ mov z_a,eax |
71 |
-+ mov z_b,ebx |
72 |
-+ mov z_c,ecx |
73 |
-+ mov z_d,edx |
74 |
-+ }; |
75 |
-+} |
76 |
-+#define cpuid(in, a, b, c, d) z_in = in; cpuid_run(); a = z_a; b = z_b; c = z_c; d = z_d; |
77 |
-+#endif |
78 |
- |
79 |
- char *x86_flags[] = |
80 |
- { "fpu", "vme", "de", "pse", "tsc", "msr", "pae", "mce", |
81 |
-@@ -62,6 +100,7 @@ |
82 |
- { |
83 |
- int have = 0x200000; |
84 |
- #ifndef __x86_64__ |
85 |
-+ #ifdef __GNUC__ |
86 |
- asm volatile |
87 |
- ( |
88 |
- " pushfl;" |
89 |
-@@ -76,6 +115,23 @@ |
90 |
- : "=a" (have) |
91 |
- : "c" (have) |
92 |
- ); |
93 |
-+ #else |
94 |
-+ z_c = have; |
95 |
-+ _asm { |
96 |
-+ mov ecx,z_c |
97 |
-+ pushfd |
98 |
-+ pop eax |
99 |
-+ mov edx,eax |
100 |
-+ xor eax,ecx |
101 |
-+ push eax |
102 |
-+ popfd |
103 |
-+ pushfd |
104 |
-+ pop eax |
105 |
-+ xor eax,edx |
106 |
-+ mov z_a,eax |
107 |
-+ }; |
108 |
-+ have = z_a; |
109 |
-+ #endif |
110 |
- #endif |
111 |
- return(have); |
112 |
- } |
113 |
-@@ -196,238 +252,268 @@ |
114 |
- cpu = "native"; |
115 |
- #endif |
116 |
- #endif |
117 |
-- |
118 |
-- if (!cpu && *cpu_family && *vendor_id) |
119 |
-+ if (!cpu) |
120 |
- { |
121 |
-- if (!strcmp(vendor_id, "AuthenticAMD") || strstr(model_name, "AMD")) |
122 |
-+ if (!cpu && *cpu_family && *vendor_id) |
123 |
- { |
124 |
-- if (strstr(flags, " mmx ")) |
125 |
-+ #ifdef __GNUC__ |
126 |
-+ if (!strcmp(vendor_id, "AuthenticAMD") || strstr(model_name, "AMD")) |
127 |
- { |
128 |
-- #if __GNUC__ > 2 |
129 |
-- if (strstr(flags, " 3dnow ")) |
130 |
-+ if (strstr(flags, " mmx ")) |
131 |
- { |
132 |
-- if (strstr(flags, " 3dnowext ") && (atoi(cpu_family) > 5)) |
133 |
-+ #if __GNUC__ > 2 |
134 |
-+ if (strstr(flags, " 3dnow ")) |
135 |
- { |
136 |
-- #if __GNUC__ > 3 || __GNUC_MINOR__ > 0 |
137 |
-- if (strstr(flags, " sse ")) |
138 |
-+ if (strstr(flags, " 3dnowext ") && (atoi(cpu_family) > 5)) |
139 |
- { |
140 |
-- #if __GNUC__ > 3 || __GNUC_MINOR__ > 3 |
141 |
-- if (strstr(flags, " sse2 ") && strstr(flags, " lm ")) //Need two checks to protect Semprons |
142 |
-+ #if __GNUC__ > 3 || __GNUC_MINOR__ > 0 |
143 |
-+ if (strstr(flags, " sse ")) |
144 |
- { |
145 |
-- if (strstr(model_name, "Opteron")) |
146 |
-- { |
147 |
-- cpu = "opteron"; |
148 |
-- } |
149 |
-- else if (strstr(model_name, "Athlon(tm) 64")) //Also athlon-fx |
150 |
-+ #if __GNUC__ > 3 || __GNUC_MINOR__ > 3 |
151 |
-+ if (strstr(flags, " sse2 ") && strstr(flags, " lm ")) //Need two checks to protect Semprons |
152 |
- { |
153 |
-- cpu = "athlon64"; |
154 |
-+ if (strstr(model_name, "Opteron")) |
155 |
-+ { |
156 |
-+ cpu = "opteron"; |
157 |
-+ } |
158 |
-+ else if (strstr(model_name, "Athlon(tm) 64")) //Also athlon-fx |
159 |
-+ { |
160 |
-+ cpu = "athlon64"; |
161 |
-+ } |
162 |
-+ else |
163 |
-+ { |
164 |
-+ cpu = "k8"; |
165 |
-+ } |
166 |
- } |
167 |
-- else |
168 |
-+ #endif |
169 |
-+ if (!cpu) |
170 |
- { |
171 |
-- cpu = "k8"; |
172 |
-+ if (strstr(model_name, "Athlon(tm) 4")) |
173 |
-+ { |
174 |
-+ cpu = "athlon-4"; |
175 |
-+ } |
176 |
-+ else if (strstr(model_name, "Athlon(tm) MP")) |
177 |
-+ { |
178 |
-+ cpu = "athlon-mp"; |
179 |
-+ } |
180 |
-+ else |
181 |
-+ { |
182 |
-+ cpu = "athlon-xp"; |
183 |
-+ } |
184 |
- } |
185 |
- } |
186 |
-+ |
187 |
-+ if (!cpu && (atoi(model) > 3)) |
188 |
-+ { |
189 |
-+ cpu = "athlon-tbird"; |
190 |
-+ } |
191 |
- #endif |
192 |
-+ |
193 |
- if (!cpu) |
194 |
- { |
195 |
-- if (strstr(model_name, "Athlon(tm) 4")) |
196 |
-- { |
197 |
-- cpu = "athlon-4"; |
198 |
-- } |
199 |
-- else if (strstr(model_name, "Athlon(tm) MP")) |
200 |
-- { |
201 |
-- cpu = "athlon-mp"; |
202 |
-- } |
203 |
-- else |
204 |
-- { |
205 |
-- cpu = "athlon-xp"; |
206 |
-- } |
207 |
-+ cpu = "athlon"; |
208 |
- } |
209 |
- } |
210 |
- |
211 |
-- if (!cpu && (atoi(model) > 3)) |
212 |
-- { |
213 |
-- cpu = "athlon-tbird"; |
214 |
-- } |
215 |
-- #endif |
216 |
-- |
217 |
-+ #if __GNUC__ > 3 || __GNUC_MINOR__ > 0 |
218 |
- if (!cpu) |
219 |
- { |
220 |
-- cpu = "athlon"; |
221 |
-+ int model_num = atoi(model); |
222 |
-+ if ((model_num == 9) || (model_num >= 13)) |
223 |
-+ { |
224 |
-+ cpu = "k6-3"; |
225 |
-+ } |
226 |
-+ else |
227 |
-+ { |
228 |
-+ cpu = "k6-2"; |
229 |
-+ } |
230 |
- } |
231 |
-+ #endif |
232 |
- } |
233 |
-+ #endif |
234 |
- |
235 |
-- #if __GNUC__ > 3 || __GNUC_MINOR__ > 0 |
236 |
- if (!cpu) |
237 |
- { |
238 |
-- int model_num = atoi(model); |
239 |
-- if ((model_num == 9) || (model_num >= 13)) |
240 |
-- { |
241 |
-- cpu = "k6-3"; |
242 |
-- } |
243 |
-- else |
244 |
-- { |
245 |
-- cpu = "k6-2"; |
246 |
-- } |
247 |
-+ cpu = "k6"; |
248 |
- } |
249 |
-- #endif |
250 |
-- } |
251 |
-- #endif |
252 |
-- |
253 |
-- if (!cpu) |
254 |
-- { |
255 |
-- cpu = "k6"; |
256 |
- } |
257 |
- } |
258 |
-- } |
259 |
-- else if (!strcmp(vendor_id, "GenuineIntel") || strstr(model_name, "Intel")) |
260 |
-- { |
261 |
-- #if __GNUC__ > 2 |
262 |
-- if (strstr(flags, " mmx ")) |
263 |
-+ else if (!strcmp(vendor_id, "GenuineIntel") || strstr(model_name, "Intel")) |
264 |
- { |
265 |
-- if (strstr(flags, " sse ")) |
266 |
-+ #if __GNUC__ > 2 |
267 |
-+ if (strstr(flags, " mmx ")) |
268 |
- { |
269 |
-- if (strstr(flags, " sse2 ")) |
270 |
-+ if (strstr(flags, " sse ")) |
271 |
- { |
272 |
-- #if __GNUC__ > 3 || __GNUC_MINOR__ > 2 |
273 |
-- if (strstr(flags, " pni ") && strcmp(cpu_family, "6")) |
274 |
-+ if (strstr(flags, " sse2 ")) |
275 |
- { |
276 |
-- if (strstr(flags, " lm ")) |
277 |
-+ #if __GNUC__ > 3 || __GNUC_MINOR__ > 2 |
278 |
-+ if (strstr(flags, " pni ") && strcmp(cpu_family, "6")) |
279 |
- { |
280 |
-- cpu = "nocona"; |
281 |
-+ if (strstr(flags, " lm ")) |
282 |
-+ { |
283 |
-+ cpu = "nocona"; |
284 |
-+ } |
285 |
-+ else |
286 |
-+ { |
287 |
-+ cpu = "prescott"; |
288 |
-+ } |
289 |
- } |
290 |
-- else |
291 |
-+ #endif |
292 |
-+ |
293 |
-+ if (!cpu) |
294 |
- { |
295 |
-- cpu = "prescott"; |
296 |
-+ if (!strcmp(cpu_family, "6")) |
297 |
-+ { |
298 |
-+ #if __GNUC__ > 3 || __GNUC_MINOR__ > 3 |
299 |
-+ cpu = "pentium-m"; |
300 |
-+ #else |
301 |
-+ cpu = "pentium3"; |
302 |
-+ #endif |
303 |
-+ } |
304 |
-+ else |
305 |
-+ { |
306 |
-+ #if __GNUC__ > 3 || __GNUC_MINOR__ > 3 |
307 |
-+ if (strstr(model_name, "Mobile")) |
308 |
-+ { |
309 |
-+ cpu = "pentium4m"; |
310 |
-+ } |
311 |
-+ #endif |
312 |
-+ |
313 |
-+ if (!cpu) |
314 |
-+ { |
315 |
-+ cpu = "pentium4"; |
316 |
-+ } |
317 |
-+ } |
318 |
- } |
319 |
- } |
320 |
-- #endif |
321 |
-- |
322 |
-- if (!cpu) |
323 |
-+ else |
324 |
- { |
325 |
-- if (!strcmp(cpu_family, "6")) |
326 |
-+ #if __GNUC__ > 3 || __GNUC_MINOR__ > 3 |
327 |
-+ if (strstr(model_name, "Mobile")) |
328 |
- { |
329 |
-- #if __GNUC__ > 3 || __GNUC_MINOR__ > 3 |
330 |
-- cpu = "pentium-m"; |
331 |
-- #else |
332 |
-- cpu = "pentium3"; |
333 |
-- #endif |
334 |
-+ cpu = "pentium3m"; |
335 |
- } |
336 |
-- else |
337 |
-- { |
338 |
-- #if __GNUC__ > 3 || __GNUC_MINOR__ > 3 |
339 |
-- if (strstr(model_name, "Mobile")) |
340 |
-- { |
341 |
-- cpu = "pentium4m"; |
342 |
-- } |
343 |
-- #endif |
344 |
-+ #endif |
345 |
- |
346 |
-- if (!cpu) |
347 |
-- { |
348 |
-- cpu = "pentium4"; |
349 |
-- } |
350 |
-+ if (!cpu) |
351 |
-+ { |
352 |
-+ cpu = "pentium3"; |
353 |
- } |
354 |
- } |
355 |
- } |
356 |
- else |
357 |
- { |
358 |
-- #if __GNUC__ > 3 || __GNUC_MINOR__ > 3 |
359 |
-- if (strstr(model_name, "Mobile")) |
360 |
-+ if (!strcmp(cpu_family, "6")) |
361 |
- { |
362 |
-- cpu = "pentium3m"; |
363 |
-+ cpu = "pentium2"; |
364 |
- } |
365 |
-- #endif |
366 |
-- |
367 |
-- if (!cpu) |
368 |
-+ else |
369 |
- { |
370 |
-- cpu = "pentium3"; |
371 |
-+ cpu = "pentium-mmx"; |
372 |
- } |
373 |
- } |
374 |
- } |
375 |
-- else |
376 |
-+ #endif |
377 |
-+ |
378 |
-+ if (!cpu) |
379 |
-+ { |
380 |
-+ int family = atoi(cpu_family); |
381 |
-+ if (family > 5) |
382 |
-+ { |
383 |
-+ cpu = "pentiumpro"; |
384 |
-+ } |
385 |
-+ else if (family == 5) |
386 |
-+ { |
387 |
-+ cpu = "pentium"; |
388 |
-+ } |
389 |
-+ } |
390 |
-+ } |
391 |
-+ #if __GNUC__ > 2 |
392 |
-+ #if __GNUC__ > 3 || __GNUC_MINOR__ > 2 |
393 |
-+ else if (!strcmp(vendor_id, "CentaurHauls") && strstr(flags, " mmx ")) |
394 |
-+ { |
395 |
-+ if (strstr(flags, " 3dnow ")) |
396 |
- { |
397 |
-- if (!strcmp(cpu_family, "6")) |
398 |
-+ if (atoi(cpu_family) > 5) |
399 |
- { |
400 |
-- cpu = "pentium2"; |
401 |
-+ cpu = "c3"; |
402 |
- } |
403 |
- else |
404 |
- { |
405 |
-- cpu = "pentium-mmx"; |
406 |
-+ cpu = "winchip2"; |
407 |
- } |
408 |
- } |
409 |
-+ #if __GNUC__ > 3 || __GNUC_MINOR__ > 3 |
410 |
-+ else if (strstr(flags, " sse ")) |
411 |
-+ { |
412 |
-+ cpu = "c3-2"; |
413 |
-+ } |
414 |
-+ #endif |
415 |
-+ |
416 |
-+ if (!cpu) |
417 |
-+ { |
418 |
-+ cpu = "winchip-c6"; |
419 |
-+ } |
420 |
- } |
421 |
- #endif |
422 |
-+ #endif |
423 |
- |
424 |
- if (!cpu) |
425 |
- { |
426 |
- int family = atoi(cpu_family); |
427 |
- if (family > 5) |
428 |
- { |
429 |
-- cpu = "pentiumpro"; |
430 |
-+ cpu = "i686"; |
431 |
- } |
432 |
- else if (family == 5) |
433 |
- { |
434 |
-- cpu = "pentium"; |
435 |
-+ cpu = "i586"; |
436 |
- } |
437 |
-- } |
438 |
-- } |
439 |
-- #if __GNUC__ > 2 |
440 |
-- #if __GNUC__ > 3 || __GNUC_MINOR__ > 2 |
441 |
-- else if (!strcmp(vendor_id, "CentaurHauls") && strstr(flags, " mmx ")) |
442 |
-- { |
443 |
-- if (strstr(flags, " 3dnow ")) |
444 |
-- { |
445 |
-- if (atoi(cpu_family) > 5) |
446 |
-+ else if (family == 4) |
447 |
- { |
448 |
-- cpu = "c3"; |
449 |
-+ cpu = "i486"; |
450 |
- } |
451 |
- else |
452 |
- { |
453 |
-- cpu = "winchip2"; |
454 |
-+ cpu = "i386"; |
455 |
- } |
456 |
- } |
457 |
-- #if __GNUC__ > 3 || __GNUC_MINOR__ > 3 |
458 |
-+ #else //MSVC |
459 |
-+ cpu = cpubuf; |
460 |
-+ *cpu = 0; |
461 |
-+ |
462 |
-+ if (strstr(flags, " sse2 ")) |
463 |
-+ { |
464 |
-+ strcat(cpu, " /arch:SSE2"); |
465 |
-+ } |
466 |
- else if (strstr(flags, " sse ")) |
467 |
- { |
468 |
-- cpu = "c3-2"; |
469 |
-+ strcat(cpu, " /arch:SSE"); |
470 |
- } |
471 |
-- #endif |
472 |
- |
473 |
-- if (!cpu) |
474 |
-+ #ifdef __x86_64__ |
475 |
-+ if (strstr(flags, " lm ")) //64 bit |
476 |
- { |
477 |
-- cpu = "winchip-c6"; |
478 |
-+ if (!strcmp(vendor_id, "AuthenticAMD") || strstr(model_name, "AMD")) |
479 |
-+ { |
480 |
-+ strcat(cpu, " /favor:AMD64"); |
481 |
-+ } |
482 |
-+ else if (!strcmp(vendor_id, "GenuineIntel") || strstr(model_name, "Intel")) |
483 |
-+ { |
484 |
-+ strcat(cpu, " /favor:EM64T"); |
485 |
-+ } |
486 |
- } |
487 |
-+ #endif |
488 |
-+ #endif |
489 |
- } |
490 |
-- #endif |
491 |
-- #endif |
492 |
-- |
493 |
-- if (!cpu) |
494 |
-+ else |
495 |
- { |
496 |
-- int family = atoi(cpu_family); |
497 |
-- if (family > 5) |
498 |
-- { |
499 |
-- cpu = "i686"; |
500 |
-- } |
501 |
-- else if (family == 5) |
502 |
-- { |
503 |
-- cpu = "i586"; |
504 |
-- } |
505 |
-- else if (family == 4) |
506 |
-- { |
507 |
-- cpu = "i486"; |
508 |
-- } |
509 |
-- else |
510 |
-- { |
511 |
-- cpu = "i386"; |
512 |
-- } |
513 |
-+ puts("Could not open /proc/cpuinfo, and CPUID instruction not available."); |
514 |
-+ return(1); |
515 |
- } |
516 |
-- puts(cpu); |
517 |
-- } |
518 |
-- else |
519 |
-- { |
520 |
-- puts("Could not open /proc/cpuinfo, and CPUID instruction not available."); |
521 |
-- return(1); |
522 |
- } |
523 |
-+ puts(cpu); |
524 |
- |
525 |
- return(0); |
526 |
- } |
527 |
|
528 |
diff --git a/games-emulation/zsnes/files/zsnes-1.51-gcc43.patch b/games-emulation/zsnes/files/zsnes-1.51-gcc43.patch |
529 |
deleted file mode 100644 |
530 |
index 4650bc12a7d..00000000000 |
531 |
--- a/games-emulation/zsnes/files/zsnes-1.51-gcc43.patch |
532 |
+++ /dev/null |
533 |
@@ -1,48 +0,0 @@ |
534 |
---- src/parsegen.cpp |
535 |
-+++ src/parsegen.cpp |
536 |
-@@ -31,6 +31,7 @@ |
537 |
- #include <sstream> |
538 |
- #include <set> |
539 |
- #include <stack> |
540 |
-+#include <cstring> |
541 |
- using namespace std; |
542 |
- |
543 |
- #include <errno.h> |
544 |
-@@ -1828,7 +1829,7 @@ |
545 |
- } |
546 |
- } |
547 |
- |
548 |
--int main(size_t argc, const char **argv) |
549 |
-+int main(int argc, const char **argv) |
550 |
- { |
551 |
- const char *cheader_file = 0; |
552 |
- bool compile = false; |
553 |
---- src/tools/depbuild.cpp |
554 |
-+++ src/tools/depbuild.cpp |
555 |
-@@ -24,6 +24,7 @@ |
556 |
- #include <iostream> |
557 |
- #include <string> |
558 |
- #include <cstdio> |
559 |
-+#include <cstdlib> |
560 |
- using namespace std; |
561 |
- |
562 |
- #include "fileutil.h" |
563 |
-@@ -183,7 +184,7 @@ |
564 |
- } |
565 |
- } |
566 |
- |
567 |
--int main(size_t argc, const char *const *const argv) |
568 |
-+int main(int argc, const char *const *const argv) |
569 |
- { |
570 |
- if (argc < 5) |
571 |
- { |
572 |
---- src/tools/strutil.h |
573 |
-+++ src/tools/strutil.h |
574 |
-@@ -25,6 +25,7 @@ |
575 |
- #include <string> |
576 |
- #include <vector> |
577 |
- #include <cctype> |
578 |
-+#include <cstring> |
579 |
- |
580 |
- struct ci_char_traits : public std::char_traits<char> |
581 |
- { |