void-packages/srcpkgs/zynaddsubfx/patches/fix-bogus-strstr.patch
Đoàn Trần Công Danh e2a21ccfd6 srcpkgs/z*: convert patches to -Np1
```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

16 lines
550 B
Diff

Source: @pullmoll
Upstream: no
Reason: This piece of code is ill-conceived and cannot work. Remove it.
--- a/rtosc/src/dispatch.c 2019-03-10 17:16:45.000000000 +0100
+++ b/rtosc/src/dispatch.c 2020-03-29 09:02:42.916119722 +0200
@@ -289,8 +289,7 @@
return false;
} else if(type == 4) {
//extract substring
- const char *sub=NULL;
- return strstr(a,sub);
+ return false;
} else if(type == RTOSC_MATCH_OPTIONS || type == 6) {
return false;
} else if(type == RTOSC_MATCH_ENUMERATED) {