public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/audacity/, media-sound/audacity/files/
Date: Sat, 17 Sep 2016 13:16:48 +0000 (UTC)	[thread overview]
Message-ID: <1474118195.5c43afe6861275a05aeb4d6b6e45cdbbccfef21b.soap@gentoo> (raw)

commit:     5c43afe6861275a05aeb4d6b6e45cdbbccfef21b
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 17 13:15:50 2016 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Sep 17 13:16:35 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c43afe6

media-sound/audacity: Allow for compiling with GCC 6

Gentoo-bug: 592448
* Patch by OpenSUSE

Package-Manager: portage-2.3.0

 media-sound/audacity/audacity-2.1.2.ebuild         |  7 ++--
 .../audacity/files/audacity-2.1.2-fix-c++14.patch  | 41 ++++++++++++++++++++++
 2 files changed, 44 insertions(+), 4 deletions(-)

diff --git a/media-sound/audacity/audacity-2.1.2.ebuild b/media-sound/audacity/audacity-2.1.2.ebuild
index 0a0dd61..4331f0c 100644
--- a/media-sound/audacity/audacity-2.1.2.ebuild
+++ b/media-sound/audacity/audacity-2.1.2.ebuild
@@ -49,10 +49,9 @@ REQUIRED_USE="soundtouch? ( midi )"
 
 S=${WORKDIR}/${MY_P}
 
-#src_prepare() {
-#	epatch "${FILESDIR}"/${P}-automagic.patch
-#	AT_M4DIR="${S}/m4" eautoreconf
-#}
+src_prepare() {
+	epatch "${FILESDIR}/${PN}-2.1.2-fix-c++14.patch"
+}
 
 src_configure() {
 	WX_GTK_VER="3.0"

diff --git a/media-sound/audacity/files/audacity-2.1.2-fix-c++14.patch b/media-sound/audacity/files/audacity-2.1.2-fix-c++14.patch
new file mode 100644
index 00000000..32bcf42
--- /dev/null
+++ b/media-sound/audacity/files/audacity-2.1.2-fix-c++14.patch
@@ -0,0 +1,41 @@
+Fix building with C++14, which errors out due to bool -> T* conversions
+See also: https://bugs.gentoo.org/show_bug.cgi?id=592448
+
+Patch by OpenSUSE
+
+Index: src/effects/vamp/LoadVamp.cpp
+===================================================================
+--- src/effects/vamp/LoadVamp.cpp.orig
++++ src/effects/vamp/LoadVamp.cpp
+@@ -266,7 +266,7 @@ Plugin *VampEffectsModule::FindPlugin(co
+    Plugin *vp = PluginLoader::getInstance()->loadPlugin(key, 48000); // rate doesn't matter here
+    if (!vp)
+    {
+-      return false;
++      return NULL;
+    }
+ 
+    // We limit the listed plugin outputs to those whose results can
+Index: src/import/ImportFLAC.cpp
+===================================================================
+--- src/import/ImportFLAC.cpp.orig
++++ src/import/ImportFLAC.cpp
+@@ -296,7 +296,7 @@ ImportFileHandle *FLACImportPlugin::Open
+    int cnt;
+    wxFile binaryFile;
+    if (!binaryFile.Open(filename)) {
+-      return false; // File not found
++      return NULL; // File not found
+    }
+ 
+ #ifdef USE_LIBID3TAG
+@@ -313,7 +313,7 @@ ImportFileHandle *FLACImportPlugin::Open
+ 
+    if (cnt == wxInvalidOffset || strncmp(buf, FLAC_HEADER, 4) != 0) {
+       // File is not a FLAC file
+-      return false;
++      return NULL;
+    }
+ 
+    // Open the file for import
+


             reply	other threads:[~2016-09-17 13:16 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-17 13:16 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-31 19:05 [gentoo-commits] repo/gentoo:master commit in: media-sound/audacity/, media-sound/audacity/files/ Miroslav Šulc
2024-04-16 22:57 Yixun Lan
2024-03-23  8:29 Sam James
2023-09-25  0:24 Sam James
2023-09-25  0:24 Sam James
2023-05-06  6:19 Sam James
2020-09-19 11:53 Miroslav Šulc
2020-08-02 10:54 Miroslav Šulc
2020-04-30 23:55 Lars Wendler
2020-02-08 10:26 Miroslav Šulc
2019-08-28  7:44 Lars Wendler
2018-08-22 17:10 Andreas Sturmlechner
2017-07-15  9:46 Pacho Ramos
2016-03-31 12:22 Lars Wendler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1474118195.5c43afe6861275a05aeb4d6b6e45cdbbccfef21b.soap@gentoo \
    --to=soap@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox