mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:27:45 +00:00
Ports: Regenerate patches for pcre
This commit is contained in:
parent
dd9049f6cb
commit
ae94825cf6
3 changed files with 33 additions and 12 deletions
26
Ports/pcre/patches/0001-test-Disable-S-on-serenity.patch
Normal file
26
Ports/pcre/patches/0001-test-Disable-S-on-serenity.patch
Normal 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
|
||||||
|
|
7
Ports/pcre/patches/ReadMe.md
Normal file
7
Ports/pcre/patches/ReadMe.md
Normal 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.
|
||||||
|
|
|
@ -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
|
|
Loading…
Add table
Add a link
Reference in a new issue