summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-03-10 11:31:54 +0100
committerDavid Seifert <soap@gentoo.org>2020-03-10 11:31:54 +0100
commit31aa94484925dc802d87d2214e801542d4e8189c (patch)
tree0554854c5e2afe3248d94755ce094e045214c453
parentdev-python/protobuf-python: ppc64 stable wrt bug #712016 (diff)
downloadgentoo-31aa94484925dc802d87d2214e801542d4e8189c.tar.gz
gentoo-31aa94484925dc802d87d2214e801542d4e8189c.tar.bz2
gentoo-31aa94484925dc802d87d2214e801542d4e8189c.zip
net-p2p/transmission-remote-gtk: Fix building with -fno-common
Bug: https://bugs.gentoo.org/706980 Package-Manager: Portage-2.3.93, Repoman-2.3.20 Signed-off-by: David Seifert <soap@gentoo.org>
-rw-r--r--net-p2p/transmission-remote-gtk/files/transmission-remote-gtk-1.4.1-gcc10-fno-common.patch35
-rw-r--r--net-p2p/transmission-remote-gtk/transmission-remote-gtk-1.4.1.ebuild7
2 files changed, 41 insertions, 1 deletions
diff --git a/net-p2p/transmission-remote-gtk/files/transmission-remote-gtk-1.4.1-gcc10-fno-common.patch b/net-p2p/transmission-remote-gtk/files/transmission-remote-gtk-1.4.1-gcc10-fno-common.patch
new file mode 100644
index 00000000000..5cba628a07c
--- /dev/null
+++ b/net-p2p/transmission-remote-gtk/files/transmission-remote-gtk-1.4.1-gcc10-fno-common.patch
@@ -0,0 +1,35 @@
+From 617aaf628962af85bf9b44ab517fec2b6fa178f9 Mon Sep 17 00:00:00 2001
+From: David Seifert <soap@gentoo.org>
+Date: Tue, 10 Mar 2020 11:20:12 +0100
+Subject: [PATCH] Fix building under GCC 10 / -fno-common
+
+* Define an enum type `TrgColumnType`, not an anonymous
+ enum with an object called `TrgColumnType`.
+
+Bug: https://bugs.gentoo.org/706980
+---
+ src/trg-tree-view.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/trg-tree-view.h b/src/trg-tree-view.h
+index 435848f..363f662 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 {
++enum TrgColumnType {
+ TRG_COLTYPE_ICONTEXT,
+ TRG_COLTYPE_FILEICONTEXT,
+ TRG_COLTYPE_WANTED,
+@@ -65,7 +65,7 @@ enum {
+ TRG_COLTYPE_PRIO,
+ TRG_COLTYPE_NUMGTZERO,
+ TRG_COLTYPE_NUMGTEQZERO
+-} TrgColumnType;
++};
+
+ typedef struct {
+ gint model_column;
diff --git a/net-p2p/transmission-remote-gtk/transmission-remote-gtk-1.4.1.ebuild b/net-p2p/transmission-remote-gtk/transmission-remote-gtk-1.4.1.ebuild
index 4e12624edbb..c769e211f47 100644
--- a/net-p2p/transmission-remote-gtk/transmission-remote-gtk-1.4.1.ebuild
+++ b/net-p2p/transmission-remote-gtk/transmission-remote-gtk-1.4.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -34,6 +34,11 @@ DEPEND="${RDEPEND}
virtual/pkgconfig
" # eautoreconf needs sys-devel/autoconf-archive
+PATCHES=(
+ # https://github.com/transmission-remote-gtk/transmission-remote-gtk/pull/92
+ "${FILESDIR}"/${PN}-1.4.1-gcc10-fno-common.patch
+)
+
src_configure() {
# Disable overly strict appdata validation
gnome2_src_configure \