mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 19:47:46 +00:00
Ports: Update npiet's patches to use git patches
This commit is contained in:
parent
e16272eacd
commit
288818eb29
4 changed files with 62 additions and 24 deletions
|
@ -0,0 +1,25 @@
|
||||||
|
From 725d6d5a3abd45a61b863f424fb230f009f4c832 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Noah Rosamilia <ivoahivoah@gmail.com>
|
||||||
|
Date: Thu, 6 Jan 2022 18:28:55 -0500
|
||||||
|
Subject: [PATCH 1/2] Don't build the html target by default
|
||||||
|
|
||||||
|
---
|
||||||
|
Makefile.in | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/Makefile.in b/Makefile.in
|
||||||
|
index e49616a..8d03935 100644
|
||||||
|
--- a/Makefile.in
|
||||||
|
+++ b/Makefile.in
|
||||||
|
@@ -67,7 +67,7 @@ CFLAGS = $(FLAGS) $(PROF) $(CYG) $(WARN) $(DEFS) $(LIBDIRPATH)
|
||||||
|
##
|
||||||
|
## How to build the target:
|
||||||
|
##
|
||||||
|
-all: npiet npiet-foogol html
|
||||||
|
+all: npiet npiet-foogol
|
||||||
|
|
||||||
|
npiet: npiet.o
|
||||||
|
$(CC) $(LDFLAGS) $(PROF) -o npiet npiet.o $(LIBS)
|
||||||
|
--
|
||||||
|
2.36.1
|
||||||
|
|
25
Ports/npiet/patches/0002-Remove-a-malloc.h-include.patch
Normal file
25
Ports/npiet/patches/0002-Remove-a-malloc.h-include.patch
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
From 105eed290d94b22a172c87e23d518d27c131c5b7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Noah Rosamilia <ivoahivoah@gmail.com>
|
||||||
|
Date: Thu, 6 Jan 2022 18:28:55 -0500
|
||||||
|
Subject: [PATCH 2/2] Remove a 'malloc.h' include
|
||||||
|
|
||||||
|
---
|
||||||
|
npiet-foogol.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/npiet-foogol.c b/npiet-foogol.c
|
||||||
|
index 4d9174a..70fc2cd 100644
|
||||||
|
--- a/npiet-foogol.c
|
||||||
|
+++ b/npiet-foogol.c
|
||||||
|
@@ -108,7 +108,7 @@ char *version = "v1.3";
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
-#include <malloc.h>
|
||||||
|
+// #include <malloc.h>
|
||||||
|
#include <limits.h>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
|
--
|
||||||
|
2.36.1
|
||||||
|
|
12
Ports/npiet/patches/ReadMe.md
Normal file
12
Ports/npiet/patches/ReadMe.md
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# Patches for npiet on SerenityOS
|
||||||
|
|
||||||
|
## `0001-Don-t-build-the-html-target-by-default.patch`
|
||||||
|
|
||||||
|
Don't build the html target by default
|
||||||
|
|
||||||
|
|
||||||
|
## `0002-Remove-a-malloc.h-include.patch`
|
||||||
|
|
||||||
|
Remove a 'malloc.h' include
|
||||||
|
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
diff -ruN npiet-1.3f/Makefile.in npiet-1.3f.patched/Makefile.in
|
|
||||||
--- npiet-1.3f/Makefile.in 2014-12-04 15:59:51.000000000 -0500
|
|
||||||
+++ npiet-1.3f.patched/Makefile.in 2022-01-05 13:40:37.959967837 -0500
|
|
||||||
@@ -67,7 +67,7 @@
|
|
||||||
##
|
|
||||||
## How to build the target:
|
|
||||||
##
|
|
||||||
-all: npiet npiet-foogol html
|
|
||||||
+all: npiet npiet-foogol
|
|
||||||
|
|
||||||
npiet: npiet.o
|
|
||||||
$(CC) $(LDFLAGS) $(PROF) -o npiet npiet.o $(LIBS)
|
|
||||||
diff -ruN npiet-1.3f/npiet-foogol.c npiet-1.3f.patched/npiet-foogol.c
|
|
||||||
--- npiet-1.3f/npiet-foogol.c 2020-08-09 09:18:46.000000000 -0400
|
|
||||||
+++ npiet-1.3f.patched/npiet-foogol.c 2022-01-05 13:39:49.922931168 -0500
|
|
||||||
@@ -108,7 +108,7 @@
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
-#include <malloc.h>
|
|
||||||
+// #include <malloc.h>
|
|
||||||
#include <limits.h>
|
|
||||||
#include <time.h>
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue