Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/gnomad/files/, media-sound/gnomad/
Date: Sat, 08 Aug 2020 16:55:47
Message-Id: 1596905625.128bd73938541133989777400ec00f2a7d5380dd.soap@gentoo
1 commit: 128bd73938541133989777400ec00f2a7d5380dd
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 8 16:53:45 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 8 16:53:45 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=128bd739
7
8 media-sound/gnomad: Fix building under -fno-common
9
10 Closes: https://bugs.gentoo.org/707006
11 Package-Manager: Portage-3.0.1, Repoman-2.3.23
12 Signed-off-by: David Seifert <soap <AT> gentoo.org>
13
14 .../gnomad/files/gnomad-2.9.6-fno-common.patch | 56 ++++++++++++++++++++++
15 media-sound/gnomad/gnomad-2.9.6.ebuild | 15 ++++--
16 2 files changed, 66 insertions(+), 5 deletions(-)
17
18 diff --git a/media-sound/gnomad/files/gnomad-2.9.6-fno-common.patch b/media-sound/gnomad/files/gnomad-2.9.6-fno-common.patch
19 new file mode 100644
20 index 00000000000..76abaa9cfa2
21 --- /dev/null
22 +++ b/media-sound/gnomad/files/gnomad-2.9.6-fno-common.patch
23 @@ -0,0 +1,56 @@
24 +--- a/src/common.h
25 ++++ b/src/common.h
26 +@@ -130,25 +130,25 @@
27 + } playlist_widgets_t;
28 +
29 + /* Globally known widgets */
30 +-transfer_widgets_t transfer_widgets;
31 +-data_widgets_t data_widgets;
32 +-playlist_widgets_t playlist_widgets;
33 ++extern transfer_widgets_t transfer_widgets;
34 ++extern data_widgets_t data_widgets;
35 ++extern playlist_widgets_t playlist_widgets;
36 +
37 + /* Global progress bar - not so good but... */
38 +-GtkWidget *progress_bar;
39 ++extern GtkWidget *progress_bar;
40 +
41 + /* Global playlist selection for the popup, not good either ... */
42 +-GList *jukebox_playlist;
43 +-GList *selected_target_playlists;
44 ++extern GList *jukebox_playlist;
45 ++extern GList *selected_target_playlists;
46 +
47 + /* Global lock variable for the jukebox */
48 +-gboolean volatile jukebox_locked;
49 ++extern gboolean volatile jukebox_locked;
50 +
51 + /* Global cancellation variable for jukebox operations */
52 +-gboolean volatile cancel_jukebox_operation;
53 ++extern gboolean volatile cancel_jukebox_operation;
54 +
55 + /* Global debug level variable (standard = 7) */
56 +-gint gnomad_debug;
57 ++extern gint gnomad_debug;
58 +
59 + /* A proc for hiding dialog windows */
60 + GCallback dispose_of_dialog_window(GtkButton * button, gpointer data);
61 +--- a/src/gnomad2.c
62 ++++ b/src/gnomad2.c
63 +@@ -34,6 +34,16 @@
64 + guint uevent_device_hooked = 0;
65 + #endif
66 +
67 ++transfer_widgets_t transfer_widgets;
68 ++data_widgets_t data_widgets;
69 ++playlist_widgets_t playlist_widgets;
70 ++GtkWidget *progress_bar;
71 ++GList *jukebox_playlist;
72 ++GList *selected_target_playlists;
73 ++gboolean volatile jukebox_locked;
74 ++gboolean volatile cancel_jukebox_operation;
75 ++gint gnomad_debug;
76 ++
77 + /* This one should be global really */
78 + GtkWidget *main_window;
79 +
80
81 diff --git a/media-sound/gnomad/gnomad-2.9.6.ebuild b/media-sound/gnomad/gnomad-2.9.6.ebuild
82 index fb2ee99ca36..45206c12519 100644
83 --- a/media-sound/gnomad/gnomad-2.9.6.ebuild
84 +++ b/media-sound/gnomad/gnomad-2.9.6.ebuild
85 @@ -1,12 +1,12 @@
86 -# Copyright 1999-2019 Gentoo Authors
87 +# Copyright 1999-2020 Gentoo Authors
88 # Distributed under the terms of the GNU General Public License v2
89
90 -EAPI=5
91 +EAPI=7
92
93 MY_PN=${PN}2
94 MY_P=${MY_PN}-${PV}
95
96 -DESCRIPTION="A GTK+ music manager and swiss army knife for the Portable Digital Entertainment (PDE) protocol"
97 +DESCRIPTION="A GTK+ music manager for the Portable Digital Entertainment (PDE) protocol"
98 HOMEPAGE="http://gnomad2.sourceforge.net/"
99 SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.gz"
100
101 @@ -22,12 +22,17 @@ RDEPEND="
102 media-libs/libnjb
103 media-libs/taglib
104 >=x11-libs/gtk+-2.24:2"
105 -DEPEND="${RDEPEND}
106 +DEPEND="${RDEPEND}"
107 +BDEPEND="
108 virtual/pkgconfig
109 - nls? ( dev-util/intltool sys-devel/gettext )"
110 + nls? (
111 + dev-util/intltool
112 + sys-devel/gettext
113 + )"
114
115 S=${WORKDIR}/${MY_P}
116
117 +PATCHES=( "${FILESDIR}"/${PN}-2.9.6-fno-common.patch )
118 DOCS=( AUTHORS README TODO ) # ChangeLog and NEWS are both outdated
119
120 src_configure() {