diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2021-01-21 08:59:57 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2021-04-18 00:02:35 -0500 |
commit | 38a6cef13e5a256d654aad6035817bc501ee35ca (patch) | |
tree | be9c4656049c1082c8a1b5a15bddd73dcf3c240e /network/transmission-remote-gtk | |
parent | a375de9aa30f51efe255b977d0019dfcc2d862dd (diff) |
network/transmission-remote-gtk: Patch for gcc >= 10.x.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/transmission-remote-gtk')
-rw-r--r-- | network/transmission-remote-gtk/gcc10.patch | 25 | ||||
-rw-r--r-- | network/transmission-remote-gtk/transmission-remote-gtk.SlackBuild | 2 |
2 files changed, 27 insertions, 0 deletions
diff --git a/network/transmission-remote-gtk/gcc10.patch b/network/transmission-remote-gtk/gcc10.patch new file mode 100644 index 000000000000..1c445b508546 --- /dev/null +++ b/network/transmission-remote-gtk/gcc10.patch @@ -0,0 +1,25 @@ +From b20655081332847426a7d10189bb1e2369efea42 Mon Sep 17 00:00:00 2001 +From: David Seifert <soap@gentoo.org> +Date: Fri, 20 Mar 2020 20:30:24 +0100 +Subject: [PATCH] Fix building under GCC 10 / -fno-common + +* Add a `typedef` to avoid defining a variable. + +Bug: https://bugs.gentoo.org/706980 +--- + src/trg-tree-view.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/trg-tree-view.h b/src/trg-tree-view.h +index 435848f..78cd76e 100644 +--- a/src/trg-tree-view.h ++++ b/src/trg-tree-view.h +@@ -51,7 +51,7 @@ GtkWidget *trg_tree_view_new(void); + + G_END_DECLS GList *trg_tree_view_get_selected_refs_list(GtkTreeView * tv); + +-enum { ++typedef enum { + TRG_COLTYPE_ICONTEXT, + TRG_COLTYPE_FILEICONTEXT, + TRG_COLTYPE_WANTED, diff --git a/network/transmission-remote-gtk/transmission-remote-gtk.SlackBuild b/network/transmission-remote-gtk/transmission-remote-gtk.SlackBuild index 4daa00e72278..5cb0d45cf462 100644 --- a/network/transmission-remote-gtk/transmission-remote-gtk.SlackBuild +++ b/network/transmission-remote-gtk/transmission-remote-gtk.SlackBuild @@ -89,6 +89,8 @@ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ [ "${NOTIFY:-yes}" = "no" ] && NOTIFYOPT="--without-libnotify" +patch -p1 < $CWD/gcc10.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ |