void-packages/srcpkgs/wvstreams/patches/wvstreams-4.6.1-wvconfemu-execinfo.patch
Đoàn Trần Công Danh 04b9978a29 srcpkgs/w*: convert patches to -Np1
* 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
```
2021-06-20 13:17:29 +07:00

20 lines
603 B
Diff

--- a/uniconf/wvconfemu.cc.old 2015-09-22 02:07:38.395970444 -0400
+++ b/uniconf/wvconfemu.cc 2015-09-22 02:02:26.111102649 -0400
@@ -11,7 +11,7 @@
#include "strutils.h"
//#define DEBUG_DEL_CALLBACK 1
-#ifdef DEBUG_DEL_CALLBACK
+#if defined(DEBUG_DEL_CALLBACK) && defined(HAVE_EXECINFO_H)
#include <execinfo.h>
#endif
@@ -338,7 +338,7 @@
return;
}
-#ifdef DEBUG_DEL_CALLBACK
+#if defined(DEBUG_DEL_CALLBACK) && defined(HAVE_EXECINFO_H)
void* trace[10];
int count = backtrace(trace, sizeof(trace)/sizeof(trace[0]));
char** tracedump = backtrace_symbols(trace, count);