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

Ports: Update and fix imgcat

- Update imgcat to 2.5.1 to get rid of prebuilt object files that have
  accidentally been included in the previous release tarball.
- Add a missing dependency on `termcap`.
- Remove an unused include of `err.h`, which we do not support.
- Use actually working settings for installing the built files.
This commit is contained in:
Tim Schumacher 2022-05-08 23:19:55 +02:00 committed by Andreas Kling
parent 749d0eef7f
commit 651560d588
4 changed files with 41 additions and 9 deletions

View file

@ -0,0 +1,26 @@
From 6163cab16b54ccc7301a083f9f3f7c7b6d435713 Mon Sep 17 00:00:00 2001
From: Tim Schumacher <timschumi@gmx.de>
Date: Sun, 8 May 2022 22:53:34 +0200
Subject: [PATCH] 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.
---
src/imgcat.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/imgcat.c b/src/imgcat.c
index 26a73d7..89fc05d 100644
--- a/src/imgcat.c
+++ b/src/imgcat.c
@@ -22,7 +22,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <err.h>
#include <limits.h>
#include <getopt.h>
--
2.36.1

View file

@ -0,0 +1,9 @@
# Patches for imgcat on SerenityOS
## `0001-Remove-an-include-of-err.h.patch`
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.