void-packages/srcpkgs/w_scan/patches/fix-uint.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

21 lines
776 B
Diff

--- a/Makefile.in 2014-11-22 12:00:00.000000000 +0100
+++ b/Makefile.in 2016-05-03 23:44:44.859376553 +0200
@@ -836,7 +836,7 @@
@echo "/* AUTOMATICALLY GENERATED - DO NOT EDIT MANUALLY */" > version.h
@echo "#ifndef W_SCAN_VERSION_H" >> version.h
@echo "#define W_SCAN_VERSION_H" >> version.h
- @echo "uint version=$(__VERSION);" >> version.h
+ @echo "unsigned int version=$(__VERSION);" >> version.h
@echo "#endif" >> version.h
@echo "" >> version.h
@chmod a-x version.h
--- a/version.h 2014-11-22 11:59:56.000000000 +0100
+++ b/version.h 2016-05-03 23:42:59.612376864 +0200
@@ -1,6 +1,6 @@
/* AUTOMATICALLY GENERATED - DO NOT EDIT MANUALLY */
#ifndef W_SCAN_VERSION_H
#define W_SCAN_VERSION_H
-uint version=20170107;
+unsigned int version=20170107;
#endif