Ports: Replace the joe config.sub patch with our download

This commit is contained in:
Tim Schumacher 2022-05-25 22:25:14 +02:00 committed by Linus Groh
parent 7ceccb7b82
commit 1371d1d952
Notes: sideshowbarker 2024-07-17 10:40:29 +09:00
6 changed files with 5 additions and 34 deletions

View file

@ -8,3 +8,4 @@ configopts=(
"--disable-curses"
"--disable-termcap"
)
use_fresh_config_sub=true

View file

@ -1,7 +1,7 @@
From becc61b31858199a1cff4278bb2239d05ff9d38f Mon Sep 17 00:00:00 2001
From: Snow <i@xkun.me>
Date: Sun, 15 May 2022 11:41:03 +0800
Subject: [PATCH 1/4] Define __USE_MISC in checkwidths.c
Subject: [PATCH 1/3] Define __USE_MISC in checkwidths.c
Define `__USE_MISC` manually in `checkwidths.c` for `ECHOCTL` and `ECHOKE`,
see `Kernel/API/POSIX/termios.h`.

View file

@ -1,7 +1,7 @@
From 7136012c016c40b890ae4db5b3e4da4bf9b57caf Mon Sep 17 00:00:00 2001
From: Snow <i@xkun.me>
Date: Sun, 15 May 2022 11:41:03 +0800
Subject: [PATCH 2/4] Remove the sys/ prefix for the fcntl include
Subject: [PATCH 2/3] Remove the sys/ prefix for the fcntl include
Serenity does not have the header `fcntl.h` in `/usr/include/sys`.
---

View file

@ -1,25 +0,0 @@
From 0a0fd1875d7a58753e1c3da90e767e04ed06ef7f Mon Sep 17 00:00:00 2001
From: Snow <i@xkun.me>
Date: Sun, 15 May 2022 11:41:03 +0800
Subject: [PATCH 3/4] Teach config.sub about serenity
---
config.sub | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/config.sub b/config.sub
index 9633db7..fe9a63e 100755
--- a/config.sub
+++ b/config.sub
@@ -1374,7 +1374,7 @@ case $os in
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
- | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -serenity*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)
--
2.36.1

View file

@ -1,7 +1,7 @@
From 07d7111359facb2e8ce95ca28743f3b38d991b25 Mon Sep 17 00:00:00 2001
From: Snow <i@xkun.me>
Date: Sun, 15 May 2022 11:41:03 +0800
Subject: [PATCH 4/4] Undefine TERMINFO in termcap.c
Subject: [PATCH 3/3] Undefine TERMINFO in termcap.c
Leaving it defined will lead to a crash.
---

View file

@ -13,12 +13,7 @@ Remove the sys/ prefix for the fcntl include
Serenity does not have the header `fcntl.h` in `/usr/include/sys`.
## `0003-Teach-config.sub-about-serenity.patch`
Teach config.sub about serenity
## `0004-Undefine-TERMINFO-in-termcap.c.patch`
## `0003-Undefine-TERMINFO-in-termcap.c.patch`
Undefine TERMINFO in termcap.c