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 ```
20 lines
731 B
Diff
20 lines
731 B
Diff
--- a/src/debug.h 2018-03-27 11:19:24.000000000 +0200
|
|
+++ b/src/debug.h 2018-03-27 11:19:24.000000000 +0200
|
|
@@ -24,7 +24,7 @@
|
|
# define ASSERT(left, operator, right) (void(0))
|
|
#else
|
|
|
|
-#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__ANDROID__)
|
|
+#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__ANDROID__) && defined(__GLIBC__)
|
|
#include <execinfo.h>
|
|
#endif
|
|
|
|
@@ -35,7 +35,7 @@
|
|
vara << "[" << a << "] " << op << " " << varb << "[" << b << "]" <<
|
|
std::endl;
|
|
|
|
-#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__ANDROID__)
|
|
+#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__ANDROID__) && defined(__GLIBC__)
|
|
void *callstack[64];
|
|
size_t size;
|
|
size = backtrace(callstack, 64);
|