765e304c4b
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
27 lines
1 KiB
Diff
27 lines
1 KiB
Diff
Patch to get memtest86+ working with gcc 4.7.2 or later and PCI scan fix
|
|
these patches were taken from Mageia
|
|
upstream report containing link to the patches:
|
|
http://forum.canardpc.com/threads/83443-Memtest86-V5.01-crashes-with-gcc-4.7.2-or-later
|
|
|
|
Patch source: http://pkgs.fedoraproject.org/cgit/rpms/memtest86+.git/
|
|
|
|
--- a/io.h~ 2013-08-10 02:01:58.000000000 +0000
|
|
+++ b/io.h 2014-01-08 01:29:12.404465515 +0000
|
|
@@ -31,7 +31,7 @@
|
|
*/
|
|
|
|
#define __OUT1(s,x) \
|
|
-extern inline void __out##s(unsigned x value, unsigned short port) {
|
|
+static inline void __out##s(unsigned x value, unsigned short port) {
|
|
|
|
#define __OUT2(s,s1,s2) \
|
|
__asm__ __volatile__ ("out" #s " %" s1 "0,%" s2 "1"
|
|
@@ -43,7 +43,7 @@
|
|
__OUT1(s##c_p,x) __OUT2(s,s1,"") : : "a" (value), "id" (port)); SLOW_DOWN_IO; }
|
|
|
|
#define __IN1(s) \
|
|
-extern inline RETURN_TYPE __in##s(unsigned short port) { RETURN_TYPE _v;
|
|
+static inline RETURN_TYPE __in##s(unsigned short port) { RETURN_TYPE _v;
|
|
|
|
#define __IN2(s,s1,s2) \
|
|
__asm__ __volatile__ ("in" #s " %" s2 "1,%" s1 "0"
|