void-packages/srcpkgs/libuv/patches/disable-setuid-test.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

42 lines
1.5 KiB
Diff

--- a/test/test-list.h 2021-03-02 21:59:17.718832425 +1100
+++ b/test/test-list.h 2021-03-02 22:05:18.359833402 +1100
@@ -305,8 +305,8 @@
TEST_DECLARE (spawn_and_kill_with_std)
TEST_DECLARE (spawn_and_ping)
TEST_DECLARE (spawn_preserve_env)
-TEST_DECLARE (spawn_setuid_fails)
-TEST_DECLARE (spawn_setgid_fails)
+/* TEST_DECLARE (spawn_setuid_fails)
+TEST_DECLARE (spawn_setgid_fails) */
TEST_DECLARE (spawn_stdout_to_file)
TEST_DECLARE (spawn_stdout_and_stderr_to_file)
TEST_DECLARE (spawn_stdout_and_stderr_to_file2)
@@ -477,7 +477,7 @@
TEST_DECLARE (win32_signum_number)
#else
TEST_DECLARE (emfile)
-TEST_DECLARE (spawn_setuid_setgid)
+/* TEST_DECLARE (spawn_setuid_setgid) */
TEST_DECLARE (we_get_signal)
TEST_DECLARE (we_get_signals)
TEST_DECLARE (we_get_signal_one_shot)
@@ -923,8 +923,8 @@
TEST_ENTRY (spawn_and_kill_with_std)
TEST_ENTRY (spawn_and_ping)
TEST_ENTRY (spawn_preserve_env)
- TEST_ENTRY (spawn_setuid_fails)
- TEST_ENTRY (spawn_setgid_fails)
+ /* TEST_ENTRY (spawn_setuid_fails)
+ TEST_ENTRY (spawn_setgid_fails) */
TEST_ENTRY (spawn_stdout_to_file)
TEST_ENTRY (spawn_stdout_and_stderr_to_file)
TEST_ENTRY (spawn_stdout_and_stderr_to_file2)
@@ -963,7 +963,7 @@
TEST_ENTRY (win32_signum_number)
#else
TEST_ENTRY (emfile)
- TEST_ENTRY (spawn_setuid_setgid)
+ /* TEST_ENTRY (spawn_setuid_setgid) */
TEST_ENTRY (we_get_signal)
TEST_ENTRY (we_get_signals)
TEST_ENTRY (we_get_signal_one_shot)