Ports: Remove termcap

termcap has last been updated in 2002, and is relying on a lot of
deprecated C99 behavior. All two current users are fine without it,
so just remove it completely.
This commit is contained in:
Tim Schumacher 2023-11-30 15:30:07 +01:00
parent 14c724e8e2
commit 592c3a8cb4
7 changed files with 29 additions and 12 deletions

View file

@ -313,7 +313,6 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
| [`tar`](tar/) | GNU tar | 1.35 | https://www.gnu.org/software/tar/ |
| [`taskwarrior`](taskwarrior/) | TODO list manager | 2.6.2 | https://taskwarrior.org/ |
| [`tcl`](tcl/) | Tcl | 8.6.12 | https://www.tcl-lang.org/ |
| [`termcap`](termcap/) | GNU termcap | 1.3.1 | https://www.gnu.org/software/termutils/ |
| [`thesilversearcher`](thesilversearcher/) | The Silver Searcher: A fast code-searching tool | 2.2.0 | https://github.com/ggreer/the_silver_searcher |
| [`tig`](tig/) | Tig: text-mode interface for Git | 2.5.8 | https://jonas.github.io/tig/ |
| [`timidity`](timidity/) | TiMidity++ | 2.15.0 | http://timidity.sourceforge.net |

View file

@ -3,7 +3,7 @@ port=imgcat
version=2.5.1
useconfigure=true
installopts=("PREFIX=${SERENITY_INSTALL_ROOT}/usr/local")
depends=("ncurses" "libpng" "libjpeg" "termcap")
depends=("ncurses" "libpng" "libjpeg")
files=(
"https://github.com/eddieantonio/imgcat/releases/download/v${version}/imgcat-${version}.tar.gz#8faaac392df315b4973bb6927c0eec659e879df6c15ad6f8461073e05b70c537"
)

View file

@ -10,7 +10,7 @@ imgcat compiles just fine even when removing it.
1 file changed, 1 deletion(-)
diff --git a/src/imgcat.c b/src/imgcat.c
index 26a73d7..89fc05d 100644
index 26a73d7f359cc9ce30b2ba02a2b1f46617afada5..89fc05d19ae85786d115fee8eb16869e02b51513 100644
--- a/src/imgcat.c
+++ b/src/imgcat.c
@@ -22,7 +22,6 @@

View file

@ -0,0 +1,22 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Tim Schumacher <timschumi@gmx.de>
Date: Fri, 8 Dec 2023 23:13:54 +0100
Subject: [PATCH] Remove the dependency on termcap
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 8bf1951683863566f383c4b1d450f0b8057ab8e6..32a3ea253783c9a3338a77bfa782aefd95d13ca1 100644
--- a/Makefile
+++ b/Makefile
@@ -49,7 +49,7 @@ OUTPUT_OPTION = -MMD -MP -o $@
LD = $(CXX)
# CImg requires pthread, for some reason
-LDLIBS = $(LIBS) -ltermcap -lm -lpthread
+LDLIBS = $(LIBS) -lm -lpthread
# Get the source files.
SOURCES = $(wildcard src/*.c) $(wildcard src/*.cc)

View file

@ -7,3 +7,8 @@ Remove an include of `err.h`
`err.h` appears to be BSD-specific, and we don't support it. Luckily,
imgcat compiles just fine even when removing it.
## `0002-Remove-the-dependency-on-termcap.patch`
Remove the dependency on termcap

View file

@ -26,7 +26,6 @@ depends=(
'openssl'
'readline'
'sqlite'
'termcap'
'xz'
'zlib'
)

View file

@ -1,8 +0,0 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=termcap
version=1.3.1
useconfigure=true
configopts=("--prefix=${SERENITY_INSTALL_ROOT}/usr/local")
files=(
"https://ftpmirror.gnu.org/gnu/termcap/termcap-${version}.tar.gz#91a0e22e5387ca4467b5bcb18edf1c51b930262fd466d5fda396dd9d26719100"
)