diff --git a/Ports/pcre/patches/0001-test-Disable-S-on-serenity.patch b/Ports/pcre/patches/0001-test-Disable-S-on-serenity.patch new file mode 100644 index 00000000000..3bbbc587cfd --- /dev/null +++ b/Ports/pcre/patches/0001-test-Disable-S-on-serenity.patch @@ -0,0 +1,26 @@ +From 853cee5949361930be3a70e7f54941a8fdfabe4f Mon Sep 17 00:00:00 2001 +From: Gunnar Beutner +Date: Fri, 14 Jan 2022 16:13:16 +0330 +Subject: [PATCH] test: Disable '-S' on serenity + +This flag uses setrlimit(), which is not supported. +--- + pcretest.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pcretest.c b/pcretest.c +index c1ee128..1ebab82 100644 +--- a/pcretest.c ++++ b/pcretest.c +@@ -3168,7 +3168,7 @@ while (argc > 1 && argv[op][0] == '-') + ((stack_size = get_value((pcre_uint8 *)argv[op+1], &endptr)), + *endptr == 0)) + { +-#if defined(_WIN32) || defined(WIN32) || defined(__minix) || defined(NATIVE_ZOS) || defined(__VMS) ++#if defined(_WIN32) || defined(WIN32) || defined(__minix) || defined(NATIVE_ZOS) || defined(__VMS) || defined(__serenity__) + printf("PCRE: -S not supported on this OS\n"); + exit(1); + #else +-- +2.34.1 + diff --git a/Ports/pcre/patches/ReadMe.md b/Ports/pcre/patches/ReadMe.md new file mode 100644 index 00000000000..1d8825336b7 --- /dev/null +++ b/Ports/pcre/patches/ReadMe.md @@ -0,0 +1,7 @@ +# Patches for pcre on SerenityOS + +## `0001-test-Disable-S-on-serenity.patch` + +test: Disable '-S' on serenity +This flag uses setrlimit(), which is not supported. + diff --git a/Ports/pcre/patches/fix-rlimit.patch b/Ports/pcre/patches/fix-rlimit.patch deleted file mode 100644 index 16b78b08c83..00000000000 --- a/Ports/pcre/patches/fix-rlimit.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Naur pcre-8.44/pcretest.c pcre-8.44.serenity/pcretest.c ---- pcre-8.44/pcretest.c 2020-02-11 18:28:46.000000000 +0100 -+++ pcre-8.44.serenity/pcretest.c 2021-04-12 01:23:25.182873375 +0200 -@@ -3168,7 +3168,7 @@ - ((stack_size = get_value((pcre_uint8 *)argv[op+1], &endptr)), - *endptr == 0)) - { --#if defined(_WIN32) || defined(WIN32) || defined(__minix) || defined(NATIVE_ZOS) || defined(__VMS) -+#if defined(_WIN32) || defined(WIN32) || defined(__minix) || defined(NATIVE_ZOS) || defined(__VMS) || defined(__serenity__) - printf("PCRE: -S not supported on this OS\n"); - exit(1); - #else