```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 ```
16 lines
539 B
Diff
16 lines
539 B
Diff
These are defined on ppc* in included headers but their values refer to things
|
|
that are in headers which are not included. Additionally, ELF_GREG_TYPE refers
|
|
to a typedef, which is not a constant value. So undef them, just like some
|
|
others are already undef'd for other platforms above that.
|
|
|
|
--- a/gen_constants-inl.h
|
|
+++ b/gen_constants-inl.h
|
|
@@ -24,3 +24,8 @@
|
|
// build errors on such broken systems.
|
|
#undef BLKTRACESETUP
|
|
#undef FS_IOC_FIEMAP
|
|
+#undef ELF_ARCH
|
|
+#undef ELF_CLASS
|
|
+#undef ELF_DATA
|
|
+#undef ELF_GREG_TYPE
|
|
+#undef FIOQSIZE
|