65749575ab
```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 ```
21 lines
556 B
Diff
21 lines
556 B
Diff
This ensures that efficient capability checks are used on musl.
|
|
|
|
--- a/fat-ppc.c
|
|
+++ b/fat-ppc.c
|
|
@@ -42,12 +42,10 @@
|
|
|
|
#if defined(_AIX)
|
|
# include <sys/systemcfg.h>
|
|
-#elif defined(__linux__) && defined(__GLIBC__) && defined(__GLIBC_PREREQ)
|
|
-# if __GLIBC_PREREQ(2, 16)
|
|
-# define USE_GETAUXVAL 1
|
|
-# include <asm/cputable.h>
|
|
-# include <sys/auxv.h>
|
|
-# endif
|
|
+#elif defined(__linux__)
|
|
+# define USE_GETAUXVAL 1
|
|
+# include <asm/cputable.h>
|
|
+# include <sys/auxv.h>
|
|
#elif defined(__FreeBSD__)
|
|
# include <machine/cpu.h>
|
|
# ifdef PPC_FEATURE2_HAS_VEC_CRYPTO
|