1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 02:07:44 +00:00

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

@ -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