be5369a0cb
* fpc 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 ```
30 lines
592 B
Diff
30 lines
592 B
Diff
--- a/src/3rdParty/salomesmesh/src/DriverSTL/Basics_Utils.cpp
|
|
+++ b/src/3rdParty/salomesmesh/src/DriverSTL/Basics_Utils.cpp
|
|
@@ -29,7 +29,9 @@
|
|
#ifndef WIN32
|
|
#include <unistd.h>
|
|
#include <sys/stat.h>
|
|
+#ifdef __GLIBC__
|
|
#include <execinfo.h>
|
|
+#endif
|
|
#endif
|
|
|
|
|
|
@@ -109,6 +111,7 @@
|
|
#ifndef WIN32
|
|
void print_traceback()
|
|
{
|
|
+#ifdef __GLIBC__
|
|
void *array[50];
|
|
size_t size;
|
|
char **strings;
|
|
@@ -123,6 +126,9 @@
|
|
}
|
|
|
|
free (strings);
|
|
+#else
|
|
+ std::cerr << "sorry, no backtrace on musl libc";
|
|
+#endif
|
|
}
|
|
#else
|
|
#if (_MSC_VER >= 1400) // Visual Studio 2005
|