Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/transmission-remote-gtk/, net-p2p/transmission-remote-gtk/files/
Date: Tue, 10 Mar 2020 10:32:22
Message-Id: 1583836314.31aa94484925dc802d87d2214e801542d4e8189c.soap@gentoo
1 commit: 31aa94484925dc802d87d2214e801542d4e8189c
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 10 10:31:54 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 10 10:31:54 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31aa9448
7
8 net-p2p/transmission-remote-gtk: Fix building with -fno-common
9
10 Bug: https://bugs.gentoo.org/706980
11 Package-Manager: Portage-2.3.93, Repoman-2.3.20
12 Signed-off-by: David Seifert <soap <AT> gentoo.org>
13
14 ...mission-remote-gtk-1.4.1-gcc10-fno-common.patch | 35 ++++++++++++++++++++++
15 .../transmission-remote-gtk-1.4.1.ebuild | 7 ++++-
16 2 files changed, 41 insertions(+), 1 deletion(-)
17
18 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
19 new file mode 100644
20 index 00000000000..5cba628a07c
21 --- /dev/null
22 +++ b/net-p2p/transmission-remote-gtk/files/transmission-remote-gtk-1.4.1-gcc10-fno-common.patch
23 @@ -0,0 +1,35 @@
24 +From 617aaf628962af85bf9b44ab517fec2b6fa178f9 Mon Sep 17 00:00:00 2001
25 +From: David Seifert <soap@g.o>
26 +Date: Tue, 10 Mar 2020 11:20:12 +0100
27 +Subject: [PATCH] Fix building under GCC 10 / -fno-common
28 +
29 +* Define an enum type `TrgColumnType`, not an anonymous
30 + enum with an object called `TrgColumnType`.
31 +
32 +Bug: https://bugs.gentoo.org/706980
33 +---
34 + src/trg-tree-view.h | 4 ++--
35 + 1 file changed, 2 insertions(+), 2 deletions(-)
36 +
37 +diff --git a/src/trg-tree-view.h b/src/trg-tree-view.h
38 +index 435848f..363f662 100644
39 +--- a/src/trg-tree-view.h
40 ++++ b/src/trg-tree-view.h
41 +@@ -51,7 +51,7 @@ GtkWidget *trg_tree_view_new(void);
42 +
43 + G_END_DECLS GList *trg_tree_view_get_selected_refs_list(GtkTreeView * tv);
44 +
45 +-enum {
46 ++enum TrgColumnType {
47 + TRG_COLTYPE_ICONTEXT,
48 + TRG_COLTYPE_FILEICONTEXT,
49 + TRG_COLTYPE_WANTED,
50 +@@ -65,7 +65,7 @@ enum {
51 + TRG_COLTYPE_PRIO,
52 + TRG_COLTYPE_NUMGTZERO,
53 + TRG_COLTYPE_NUMGTEQZERO
54 +-} TrgColumnType;
55 ++};
56 +
57 + typedef struct {
58 + gint model_column;
59
60 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
61 index 4e12624edbb..c769e211f47 100644
62 --- a/net-p2p/transmission-remote-gtk/transmission-remote-gtk-1.4.1.ebuild
63 +++ b/net-p2p/transmission-remote-gtk/transmission-remote-gtk-1.4.1.ebuild
64 @@ -1,4 +1,4 @@
65 -# Copyright 1999-2019 Gentoo Authors
66 +# Copyright 1999-2020 Gentoo Authors
67 # Distributed under the terms of the GNU General Public License v2
68
69 EAPI=6
70 @@ -34,6 +34,11 @@ DEPEND="${RDEPEND}
71 virtual/pkgconfig
72 " # eautoreconf needs sys-devel/autoconf-archive
73
74 +PATCHES=(
75 + # https://github.com/transmission-remote-gtk/transmission-remote-gtk/pull/92
76 + "${FILESDIR}"/${PN}-1.4.1-gcc10-fno-common.patch
77 +)
78 +
79 src_configure() {
80 # Disable overly strict appdata validation
81 gnome2_src_configure \