void-packages/srcpkgs/libuv/patches/disable-fs-chown.patch
Đoàn Trần Công Danh 861ac185a6 srcpkgs/l*: 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

20 lines
582 B
Diff

--- a/test/test-list.h 2021-03-02 21:59:17.718832425 +1100
+++ b/test/test-list.h 2021-03-02 21:59:41.809157112 +1100
@@ -344,7 +344,7 @@
#ifdef _WIN32
TEST_DECLARE (fs_unlink_archive_readonly)
#endif
-TEST_DECLARE (fs_chown)
+/* TEST_DECLARE (fs_chown) */
TEST_DECLARE (fs_link)
TEST_DECLARE (fs_readlink)
TEST_DECLARE (fs_realpath)
@@ -997,7 +997,7 @@
#ifdef _WIN32
TEST_ENTRY (fs_unlink_archive_readonly)
#endif
- TEST_ENTRY (fs_chown)
+ /* TEST_ENTRY (fs_chown) */
TEST_ENTRY (fs_utime)
TEST_ENTRY (fs_utime_round)
TEST_ENTRY (fs_futime)