void-packages/srcpkgs/wvstreams/patches/wvstreams-4.6.1-modulemgr-limits.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

11 lines
268 B
Diff

--- a/xplc/modulemgr.cc.old 2015-09-23 21:09:18.684676331 -0400
+++ b/xplc/modulemgr.cc 2015-09-23 21:07:19.369914303 -0400
@@ -30,7 +30,5 @@
# include <stdint.h>
#endif
-#ifdef HAVE_LIMITS_H
-# include <limits.h>
+#include <limits.h>
-#endif
#if !defined(WIN32)