2021-04-18 18:10:59 +02:00
|
|
|
This ensures that efficient capability checks are used on musl.
|
|
|
|
|
srcpkgs/n*: convert patches to -Np1
```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
```
2021-06-19 05:03:21 +02:00
|
|
|
--- a/fat-ppc.c
|
|
|
|
+++ b/fat-ppc.c
|
2021-04-18 18:10:59 +02:00
|
|
|
@@ -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
|