Ports: Regenerate patches for pcre

This commit is contained in:
Ali Mohammad Pur 2022-01-14 16:19:27 +03:30 committed by Ali Mohammad Pur
parent dd9049f6cb
commit ae94825cf6
Notes: sideshowbarker 2024-07-17 20:47:56 +09:00
3 changed files with 33 additions and 12 deletions

View File

@ -0,0 +1,26 @@
From 853cee5949361930be3a70e7f54941a8fdfabe4f Mon Sep 17 00:00:00 2001
From: Gunnar Beutner <gbeutner@serenityos.org>
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

View File

@ -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.

View File

@ -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