mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:07:45 +00:00
Ports: Update pcre2's patches to use git patches
This commit is contained in:
parent
5b91e02dc9
commit
9e12cd0098
3 changed files with 32 additions and 11 deletions
|
@ -0,0 +1,25 @@
|
||||||
|
From b393ee4471f82747803f0c557d9a7895a4b293b3 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Brian Callahan <bcallah@openbsd.org>
|
||||||
|
Date: Thu, 23 Jan 2020 23:43:31 -0500
|
||||||
|
Subject: [PATCH] Disable pcre2test's `-S` flag on serenity
|
||||||
|
|
||||||
|
---
|
||||||
|
src/pcre2test.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/pcre2test.c b/src/pcre2test.c
|
||||||
|
index 84987d7..35a7a5a 100644
|
||||||
|
--- a/src/pcre2test.c
|
||||||
|
+++ b/src/pcre2test.c
|
||||||
|
@@ -8689,7 +8689,7 @@ while (argc > 1 && argv[op][0] == '-' && argv[op][1] != 0)
|
||||||
|
else if (strcmp(arg, "-S") == 0 && argc > 2 &&
|
||||||
|
((uli = strtoul(argv[op+1], &endptr, 10)), *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__)
|
||||||
|
fprintf(stderr, "pcre2test: -S is not supported on this OS\n");
|
||||||
|
exit(1);
|
||||||
|
#else
|
||||||
|
--
|
||||||
|
2.36.1
|
||||||
|
|
7
Ports/pcre2/patches/ReadMe.md
Normal file
7
Ports/pcre2/patches/ReadMe.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# Patches for pcre2 on SerenityOS
|
||||||
|
|
||||||
|
## `0001-Disable-pcre2test-s-S-flag-on-serenity.patch`
|
||||||
|
|
||||||
|
Disable pcre2test's `-S` flag on serenity
|
||||||
|
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
--- pcre2-10.34/src/pcre2test.c.orig Sun Jan 19 18:24:43 2020
|
|
||||||
+++ pcre2-10.34/src/pcre2test.c Sun Jan 19 18:24:59 2020
|
|
||||||
@@ -8604,7 +8604,7 @@
|
|
||||||
else if (strcmp(arg, "-S") == 0 && argc > 2 &&
|
|
||||||
((uli = strtoul(argv[op+1], &endptr, 10)), *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__)
|
|
||||||
fprintf(stderr, "pcre2test: -S is not supported on this OS\n");
|
|
||||||
exit(1);
|
|
||||||
#else
|
|
Loading…
Add table
Add a link
Reference in a new issue