04b9978a29
* wine 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 ```
50 lines
1.3 KiB
Diff
50 lines
1.3 KiB
Diff
--- a/utils/wvcrash.cc.old 2015-09-22 01:51:19.515241821 -0400
|
|
+++ b/utils/wvcrash.cc 2015-09-22 01:53:44.101443017 -0400
|
|
@@ -28,7 +28,10 @@
|
|
// FIXME: this file mostly only works in Linux
|
|
#ifdef __linux
|
|
|
|
+#ifdef HAVE_EXECINFO_H
|
|
# include <execinfo.h>
|
|
+#endif
|
|
+
|
|
#include <unistd.h>
|
|
|
|
#ifdef __USE_GNU
|
|
@@ -268,8 +271,10 @@
|
|
}
|
|
|
|
wr(fd, "\nBacktrace:\n");
|
|
+#ifdef HAVE_EXECINFO_H
|
|
backtrace_symbols_fd(trace,
|
|
backtrace(trace, sizeof(trace)/sizeof(trace[0])), fd);
|
|
+#endif
|
|
|
|
if (pid > 0)
|
|
{
|
|
@@ -451,6 +456,7 @@
|
|
* ctx.ContextFlags = CONTEXT_FULL;
|
|
* GetThreadContext(hThread, &ctx);
|
|
*/
|
|
+#ifdef HAVE_EXECINFO_H
|
|
int backtrace(CONTEXT &ctx)
|
|
{
|
|
HANDLE hProcess = (HANDLE)GetCurrentProcess();
|
|
@@ -521,6 +527,7 @@
|
|
|
|
return 1;
|
|
}
|
|
+#endif
|
|
|
|
|
|
static void exception_desc(FILE *file, unsigned exception,
|
|
@@ -588,7 +595,9 @@
|
|
fprintf(stderr, "Exception 0x%08X:\n ", info->exception);
|
|
exception_desc(stderr, info->exception, info->data1, info->data2);
|
|
fprintf(stderr, "\n at instruction 0x%08X in thread 0x%08X\n", info->ip, GetCurrentThreadId());
|
|
+#ifdef HAVE_EXECINFO_H
|
|
backtrace(*pExceptionPointers->ContextRecord);
|
|
+#endif
|
|
fprintf(stderr, "--------------------------------------------------------\n");
|
|
|
|
|