diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2021-08-08 08:15:40 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-08-14 21:17:59 +0700 |
commit | aa04bd761e84b4aa45400b2c47b14a26eaac6322 (patch) | |
tree | 49c373e308b08cab4b50c90081f05c13cf4b8dac /graphics | |
parent | 0094591f1488d7430045a07f224802aa9786006f (diff) |
graphics/fbida: Patch for gcc >= 10.x.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/fbida/fbida.SlackBuild | 3 | ||||
-rw-r--r-- | graphics/fbida/gcc10.patch | 80 |
2 files changed, 83 insertions, 0 deletions
diff --git a/graphics/fbida/fbida.SlackBuild b/graphics/fbida/fbida.SlackBuild index 58182b7e4046..26c8abbc706a 100644 --- a/graphics/fbida/fbida.SlackBuild +++ b/graphics/fbida/fbida.SlackBuild @@ -109,6 +109,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# https://gitlab.com/kraxel/fbida/-/commit/1bb8a8aa.patch +patch -p1 < $CWD/gcc10.patch + MOTIF_OPT="HAVE_MOTIF=${MOTIF:-yes}" sed -i "/^CFLAGS/s,-g *-O2,$SLKCFLAGS," mk/Variables.mk make $MOTIF_OPT prefix=/usr verbose=1 diff --git a/graphics/fbida/gcc10.patch b/graphics/fbida/gcc10.patch new file mode 100644 index 000000000000..50618d6a32b5 --- /dev/null +++ b/graphics/fbida/gcc10.patch @@ -0,0 +1,80 @@ +From 1bb8a8aa29845378903f3c690e17c0867c820da2 Mon Sep 17 00:00:00 2001 +From: Gerd Hoffmann <kraxel@redhat.com> +Date: Mon, 16 Mar 2020 13:24:12 +0100 +Subject: [PATCH] gcc10 build fix + +by Adrian Reber <adrian@lisas.de> +--- + fbi.c | 1 - + filter.c | 2 -- + idaconfig.h | 2 +- + readers.c | 2 ++ + viewer.c | 1 - + 5 files changed, 3 insertions(+), 5 deletions(-) + +diff --git a/fbi.c b/fbi.c +index 8882302..8fd9d31 100644 +--- a/fbi.c ++++ b/fbi.c +@@ -86,7 +86,6 @@ static int img_mem, max_mem_mb; + + /* graphics interface */ + gfxstate *gfx; +-int debug; + + /* framebuffer */ + char *fbdev = NULL; +diff --git a/filter.c b/filter.c +index a75f73a..e20ebc2 100644 +--- a/filter.c ++++ b/filter.c +@@ -6,8 +6,6 @@ + #include "readers.h" + #include "filter.h" + +-int debug = 0; +- + /* ----------------------------------------------------------------------- */ + + static void +diff --git a/idaconfig.h b/idaconfig.h +index 8d616ef..d09a178 100644 +--- a/idaconfig.h ++++ b/idaconfig.h +@@ -17,7 +17,7 @@ + + /* -------------------------------------------------------------------------- */ + +-char *ida_lists; ++extern char *ida_lists; + + void ida_init_config(void); + void ida_read_config(void); +diff --git a/readers.c b/readers.c +index e94bbcb..1516ed9 100644 +--- a/readers.c ++++ b/readers.c +@@ -7,6 +7,8 @@ + #include "readers.h" + #include "byteorder.h" + ++int debug=0; ++ + /* ----------------------------------------------------------------------- */ + + void load_bits_lsb(unsigned char *dst, unsigned char *src, int width, +diff --git a/viewer.c b/viewer.c +index ab4b31c..02ba807 100644 +--- a/viewer.c ++++ b/viewer.c +@@ -38,7 +38,6 @@ + + #define PROCESS_LINES 16 + +-int debug; + Cursor ptrs[POINTER_COUNT]; + + /* ----------------------------------------------------------------------- */ +-- +GitLab + |