summaryrefslogtreecommitdiff
path: root/app-forensics/yara/files/yara-4.2-test.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
commit0f558761aa2dee1017b4751e4017205e015a9560 (patch)
tree037df795519468a25d9362b4e95cdaeb84eb1cf9 /app-forensics/yara/files/yara-4.2-test.patch
parent752d6256e5204b958b0ef7905675a940b5e9172f (diff)
gentoo resync : 29.12.2022
Diffstat (limited to 'app-forensics/yara/files/yara-4.2-test.patch')
-rw-r--r--app-forensics/yara/files/yara-4.2-test.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/app-forensics/yara/files/yara-4.2-test.patch b/app-forensics/yara/files/yara-4.2-test.patch
new file mode 100644
index 000000000000..43a97030a4fd
--- /dev/null
+++ b/app-forensics/yara/files/yara-4.2-test.patch
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/836790
+https://github.com/VirusTotal/yara/pull/1683
+--- a/tests/test-rules.c
++++ b/tests/test-rules.c
+@@ -3061,7 +3061,7 @@ void test_process_scan()
+ exit(EXIT_FAILURE);
+ }
+
+- spawn("/bin/sh", "-c", "VAR='Hello, world!'; sleep 600; true");
++ spawn("/bin/sh", "-c", "VAR='Hello, world!'; sleep 600& PID=\$!; trap \"kill \$PID\" EXIT; wait; true");
+
+ counters.rules_matching = 0;
+ counters.rules_not_matching = 0;