diff options
author | Tim Schumacher <timschumi@gmx.de> | 2022-05-08 23:19:55 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-05-21 18:10:38 +0200 |
commit | 651560d588d5e07fce17e5e77284403b0655fc2b (patch) | |
tree | 2f65eeedbff3eec76144ab92881e91a79e199908 /Ports/imgcat/patches | |
parent | 749d0eef7faeb59750dd1b25b1c03c3e25df7965 (diff) | |
download | serenity-651560d588d5e07fce17e5e77284403b0655fc2b.zip |
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.
Diffstat (limited to 'Ports/imgcat/patches')
-rw-r--r-- | Ports/imgcat/patches/0001-Remove-an-include-of-err.h.patch | 26 | ||||
-rw-r--r-- | Ports/imgcat/patches/ReadMe.md | 9 |
2 files changed, 35 insertions, 0 deletions
diff --git a/Ports/imgcat/patches/0001-Remove-an-include-of-err.h.patch b/Ports/imgcat/patches/0001-Remove-an-include-of-err.h.patch new file mode 100644 index 0000000000..e75f498fe1 --- /dev/null +++ b/Ports/imgcat/patches/0001-Remove-an-include-of-err.h.patch @@ -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 + diff --git a/Ports/imgcat/patches/ReadMe.md b/Ports/imgcat/patches/ReadMe.md new file mode 100644 index 0000000000..90101188ab --- /dev/null +++ b/Ports/imgcat/patches/ReadMe.md @@ -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. + |