861ac185a6
```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
466 B
Diff
21 lines
466 B
Diff
--- a/tests/ldb_match_test.c
|
|
+++ b/tests/ldb_match_test.c
|
|
@@ -32,6 +32,8 @@
|
|
* This allows test applications to use custom definitions of C standard
|
|
* library functions and types.
|
|
*/
|
|
+// fails to compile on musl, so limit to glibc
|
|
+#ifdef __GLIBC__
|
|
#include <stdarg.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
@@ -189,3 +191,9 @@
|
|
|
|
return cmocka_run_group_tests(tests, NULL, NULL);
|
|
}
|
|
+#else
|
|
+int main(int argc, const char **argv)
|
|
+{
|
|
+ return 0;
|
|
+}
|
|
+#endif
|