mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-22 18:46:18 +00:00
Ports: Update awk's patches to use git patches
This commit is contained in:
parent
0880542d99
commit
d65736e5bd
|
@ -1,3 +1,13 @@
|
|||
From 54cc5812382bc7d3b5e2d1ef0c3a18a60fa896b7 Mon Sep 17 00:00:00 2001
|
||||
From: Mattias Nilsson <mattias.nilsson@nshift.com>
|
||||
Date: Mon, 4 Apr 2022 22:05:38 +0200
|
||||
Subject: [PATCH 1/2] Make it possible to override HOSTCC and CC from the
|
||||
environment
|
||||
|
||||
---
|
||||
makefile | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/makefile b/makefile
|
||||
index 9ceaaad..6b9dff5 100644
|
||||
--- a/makefile
|
||||
|
@ -13,3 +23,6 @@ index 9ceaaad..6b9dff5 100644
|
|||
|
||||
# By fiat, to make our lives easier, yacc is now defined to be bison.
|
||||
# If you want something else, you're on your own.
|
||||
--
|
||||
2.36.1
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
From 8228e4130e9c373b24f87458bc7248272146bbac Mon Sep 17 00:00:00 2001
|
||||
From: Mattias Nilsson <mattias.nilsson@nshift.com>
|
||||
Date: Mon, 4 Apr 2022 22:05:38 +0200
|
||||
Subject: [PATCH 2/2] Make the version descriptor match the built tag
|
||||
|
||||
---
|
||||
main.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/main.c b/main.c
|
||||
index 986f1a3..e22f097 100644
|
||||
--- a/main.c
|
||||
+++ b/main.c
|
||||
@@ -22,7 +22,7 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
||||
THIS SOFTWARE.
|
||||
****************************************************************/
|
||||
|
||||
-const char *version = "version 20211208";
|
||||
+const char *version = "version 20220122";
|
||||
|
||||
#define DEBUG
|
||||
#include <stdio.h>
|
||||
--
|
||||
2.36.1
|
||||
|
|
@ -1,9 +1,12 @@
|
|||
# Patches for the one true AWK
|
||||
# Patches for awk on SerenityOS
|
||||
|
||||
## `build.patch`
|
||||
## `0001-Make-it-possible-to-override-HOSTCC-and-CC-from-the-.patch`
|
||||
|
||||
Patched the assigning of CC to allow override from environment
|
||||
Make it possible to override HOSTCC and CC from the environment
|
||||
|
||||
|
||||
## `0002-Make-the-version-descriptor-match-the-built-tag.patch`
|
||||
|
||||
Make the version descriptor match the built tag
|
||||
|
||||
## `version.patch`
|
||||
|
||||
Patch the version descriptor in `main.c` to reflect the tag built
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
--- a/main.c
|
||||
+++ b/main.c
|
||||
@@ -22,7 +22,7 @@
|
||||
THIS SOFTWARE.
|
||||
****************************************************************/
|
||||
|
||||
-const char *version = "version 20211208";
|
||||
+const char *version = "version 20220122";
|
||||
|
||||
#define DEBUG
|
||||
#include <stdio.h>
|
Loading…
Reference in a new issue