Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/timidity++/files/, media-sound/timidity++/
Date: Sun, 26 Aug 2018 09:50:31
Message-Id: 1535277005.e22fc38985047ca60503b0eac793c9a16648d5ba.asturm@gentoo
1 commit: e22fc38985047ca60503b0eac793c9a16648d5ba
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 26 09:49:43 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 26 09:50:05 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e22fc389
7
8 media-sound/timidity++: Fix build with GCC-5
9
10 Closes: https://bugs.gentoo.org/606894
11 Package-Manager: Portage-2.3.48, Repoman-2.3.10
12
13 .../timidity++/files/timidity++-2.14.0-gcc5.patch | 31 ++++++++++++++++++++++
14 media-sound/timidity++/timidity++-2.14.0-r3.ebuild | 1 +
15 2 files changed, 32 insertions(+)
16
17 diff --git a/media-sound/timidity++/files/timidity++-2.14.0-gcc5.patch b/media-sound/timidity++/files/timidity++-2.14.0-gcc5.patch
18 new file mode 100644
19 index 00000000000..50d64e3bcbb
20 --- /dev/null
21 +++ b/media-sound/timidity++/files/timidity++-2.14.0-gcc5.patch
22 @@ -0,0 +1,31 @@
23 +Upstream commit 6e189f6073e979ceccaf05c3bb5f495a1b9ed87e
24 +
25 +inline, defaults to "extern inline" with newer gcc versions
26 +
27 +With newer versions of gcc, "inline" defaults to extern, and not static if
28 +not specified. This causes linking problems at the end of the compile. Most
29 +of this occurences are fixed (or #ifdef'ed away) except these two small
30 +ones in timidity/mfi.c
31 +
32 +Signed-off-by: Stian Skjelstad <stian.skjelstad@...>
33 +
34 +--- a/timidity/mfi.c 2004-02-17 17:02:18.000000000 +0100
35 ++++ b/timidity/mfi.c 2017-02-14 04:41:24.000000000 +0100
36 +@@ -344,7 +344,7 @@
37 + #define SEND_LASTNOTEINFO(lni, ch) if (LASTNOTEINFO_HAS_DATA((lni)[ch])) SendLastNoteInfo(lni, ch);
38 + #define SEND_AND_CLEAR_LASTNOTEINFO(lni, ch) if (LASTNOTEINFO_HAS_DATA((lni)[ch])) { SendLastNoteInfo(lni, ch); (lni)[ch].on = NO_LAST_NOTE_INFO; }
39 +
40 +-inline void StoreLastNoteInfo(LastNoteInfo *info, int channel, int time, int duration, int note, int velocity)
41 ++static inline void StoreLastNoteInfo(LastNoteInfo *info, int channel, int time, int duration, int note, int velocity)
42 + {
43 + info[channel].on = time;
44 + info[channel].off = time + duration;
45 +@@ -352,7 +352,7 @@
46 + info[channel].velocity = velocity;
47 + }
48 +
49 +-inline void SendLastNoteInfo(const LastNoteInfo *info, int channel)
50 ++static inline void SendLastNoteInfo(const LastNoteInfo *info, int channel)
51 + {
52 + NOTE_BUF_EV_DEBUGSTR(channel, info[channel].on, note_name[info[channel].note % 12], info[channel].note / 12, info[channel].velocity, info[channel].off);
53 + MIDIEVENT(info[channel].on, ME_NOTEON, channel, info[channel].note, info[channel].velocity);
54
55 diff --git a/media-sound/timidity++/timidity++-2.14.0-r3.ebuild b/media-sound/timidity++/timidity++-2.14.0-r3.ebuild
56 index 5a1770ebcfd..e754067be07 100644
57 --- a/media-sound/timidity++/timidity++-2.14.0-r3.ebuild
58 +++ b/media-sound/timidity++/timidity++-2.14.0-r3.ebuild
59 @@ -63,6 +63,7 @@ PATCHES=(
60 "${FILESDIR}"/${P}-configure-flags.patch
61 "${FILESDIR}"/${P}-pkg-config.patch
62 "${FILESDIR}"/${P}-CVE-2017-1154{6,7}.patch
63 + "${FILESDIR}"/${P}-gcc5.patch # bug 606894
64 )
65
66 src_prepare() {