void-packages/srcpkgs/fs-utils/patches/fix-sysctl_h.patch
Đoàn Trần Công Danh be5369a0cb srcpkgs/f*: convert patches to -Np1
* fpc 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

66 lines
1.7 KiB
Diff

--- a/lib/smb/ctx.c 2013-12-13 21:29:42.000000000 +0100
+++ b/lib/smb/ctx.c 2021-01-16 10:26:44.803835850 +0100
@@ -34,7 +34,7 @@
#include <sys/param.h>
-#include <sys/sysctl.h>
+#include <linux/sysctl.h>
#include <sys/time.h>
#include <sys/mount.h>
#include <fcntl.h>
--- a/lib/smb/file.c 2013-12-13 21:29:42.000000000 +0100
+++ b/lib/smb/file.c 2021-01-16 10:26:41.672690378 +0100
@@ -33,7 +33,7 @@
*/
#include <sys/param.h>
-#include <sys/sysctl.h>
+#include <linux/sysctl.h>
#include <sys/time.h>
#include <sys/mount.h>
#include <fcntl.h>
--- a/lib/smb/kiconv.c 2013-12-13 21:29:42.000000000 +0100
+++ b/lib/smb/kiconv.c 2021-01-16 10:26:38.368536869 +0100
@@ -34,7 +34,7 @@
#include <sys/param.h>
#include <sys/types.h>
-#include <sys/sysctl.h>
+#include <linux/sysctl.h>
#include <ctype.h>
#include <errno.h>
#include <netsmb/iconv.h>
--- a/lib/smb/nls.c 2013-12-13 21:29:42.000000000 +0100
+++ b/lib/smb/nls.c 2021-01-16 10:26:35.772416254 +0100
@@ -34,7 +34,7 @@
#include <sys/param.h>
#include <sys/types.h>
-#include <sys/sysctl.h>
+#include <linux/sysctl.h>
#include <ctype.h>
#ifndef APPLE
#include <dlfcn.h>
--- a/lib/smb/print.c 2013-12-13 21:29:42.000000000 +0100
+++ b/lib/smb/print.c 2021-01-16 10:26:32.593268552 +0100
@@ -33,7 +33,7 @@
*/
#include <sys/param.h>
-#include <sys/sysctl.h>
+#include <linux/sysctl.h>
#include <sys/time.h>
#include <sys/mount.h>
#include <fcntl.h>
--- a/lib/smb/subr.c 2013-12-13 21:29:42.000000000 +0100
+++ b/lib/smb/subr.c 2021-01-16 10:26:30.153155186 +0100
@@ -35,7 +35,7 @@
#include <sys/param.h>
#include <sys/types.h>
#include <sys/errno.h>
-#include <sys/sysctl.h>
+#include <linux/sysctl.h>
#include <sys/syscall.h>
#include <unistd.h>
#include <ctype.h>