void-packages/srcpkgs/rsyslog/patches/musl-glob.patch
Đoàn Trần Công Danh 103ab731ab srcpkgs/r*: convert patches to -Np1
* runit 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

12 lines
371 B
Diff

--- a/plugins/imfile/imfile.c 2016-11-15 17:31:37.446892834 +0000
+++ b/plugins/imfile/imfile.c 2016-11-15 17:34:49.629902749 +0000
@@ -34,6 +34,9 @@
#include <sys/types.h>
#include <unistd.h>
#include <glob.h>
+#if !defined(GLOB_BRACE)
+#define GLOB_BRACE 0 /* no GLOB_BRACE in musl libc */
+#endif
#include <poll.h>
#include <fnmatch.h>
#ifdef HAVE_SYS_INOTIFY_H