b6bcd8cd34
* daemontools and dmraid is kept at -Np0 ```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 ```
22 lines
471 B
Diff
22 lines
471 B
Diff
Even if not defining __GLIBC__, musl libc has program_invocation_short_name
|
|
|
|
--- a/dfcompat.c 2013-06-03 16:03:15.000000000 +0200
|
|
+++ b/dfcompat.c 2015-08-07 14:57:37.814738238 +0200
|
|
@@ -105,8 +105,6 @@
|
|
|
|
#ifndef HAVE_GETPROGNAME
|
|
|
|
-#ifdef __GLIBC__
|
|
-
|
|
#include <errno.h>
|
|
|
|
const char *
|
|
@@ -115,8 +113,4 @@
|
|
return (program_invocation_short_name);
|
|
}
|
|
|
|
-#else /* __GLIBC__ */
|
|
-#error "no getprogname implementation available"
|
|
-#endif
|
|
-
|
|
#endif /* !HAVE_GETPROGNAME */
|