Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/helm/files/, media-sound/helm/
Date: Thu, 25 May 2017 16:16:17
Message-Id: 1495728601.a3b4b54a208b3b18e6e2915cb354e209c63cffe6.aballier@gentoo
1 commit: a3b4b54a208b3b18e6e2915cb354e209c63cffe6
2 Author: Peter Levine <plevine457 <AT> gmail <DOT> com>
3 AuthorDate: Thu May 25 05:22:48 2017 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Thu May 25 16:10:01 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3b4b54a
7
8 media-sound/helm: Fix building with GCC-6
9
10 Bug: https://bugs.gentoo.org/show_bug.cgi?id=594480
11 Package-Manager: Portage-2.3.6, Repoman-2.3.2
12
13 media-sound/helm/files/helm-0.4.1-gcc6.patch | 24 ++++++++++++++++++++++++
14 media-sound/helm/helm-0.4.1-r1.ebuild | 3 ++-
15 2 files changed, 26 insertions(+), 1 deletion(-)
16
17 diff --git a/media-sound/helm/files/helm-0.4.1-gcc6.patch b/media-sound/helm/files/helm-0.4.1-gcc6.patch
18 new file mode 100644
19 index 00000000000..efb54f0b5c5
20 --- /dev/null
21 +++ b/media-sound/helm/files/helm-0.4.1-gcc6.patch
22 @@ -0,0 +1,24 @@
23 +From 9a94165d8c400e45d617bf2d7cb657a477f43915 Mon Sep 17 00:00:00 2001
24 +From: Hodorgasm <nsane457@×××××.com>
25 +Date: Tue, 20 Sep 2016 17:33:14 -0400
26 +Subject: [PATCH] Assume there exists lround if compiling with g++ in C++11 or
27 + later
28 +
29 +GCC-6 doesn't define HAVE_LROUND, but lround is valid in C++ in dialects >= c++11.
30 +---
31 + JUCE/modules/juce_audio_formats/codecs/flac/libFLAC/lpc_flac.c | 2 +-
32 + 1 file changed, 1 insertion(+), 1 deletion(-)
33 +
34 +diff --git a/JUCE/modules/juce_audio_formats/codecs/flac/libFLAC/lpc_flac.c b/JUCE/modules/juce_audio_formats/codecs/flac/libFLAC/lpc_flac.c
35 +index 87e2321e6..512b8279c 100644
36 +--- a/JUCE/modules/juce_audio_formats/codecs/flac/libFLAC/lpc_flac.c
37 ++++ b/JUCE/modules/juce_audio_formats/codecs/flac/libFLAC/lpc_flac.c
38 +@@ -50,7 +50,7 @@
39 +
40 + #ifndef FLAC__INTEGER_ONLY_LIBRARY
41 +
42 +-#if !defined(HAVE_LROUND)
43 ++#if (!defined(__GNUC__) && !defined(HAVE_LROUND)) || __cplusplus < 201103L
44 + #if defined(_MSC_VER)
45 + #include <float.h>
46 + #define copysign _copysign
47
48 diff --git a/media-sound/helm/helm-0.4.1-r1.ebuild b/media-sound/helm/helm-0.4.1-r1.ebuild
49 index 9ac626e661c..e4687ef57be 100644
50 --- a/media-sound/helm/helm-0.4.1-r1.ebuild
51 +++ b/media-sound/helm/helm-0.4.1-r1.ebuild
52 @@ -1,4 +1,4 @@
53 -# Copyright 1999-2015 Gentoo Foundation
54 +# Copyright 1999-2017 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56
57 EAPI=5
58 @@ -24,6 +24,7 @@ DEPEND="${RDEPEND}"
59 DOCS="README.md"
60
61 src_prepare() {
62 + epatch "${FILESDIR}"/${P}-gcc6.patch
63 rm patches/Synth/.DS_Store || die
64 sed -e 's|/usr/lib/|/usr/'$(get_libdir)'/|' -i Makefile || die
65 epatch_user