From 0f071410622df85d324260aab3f77f2ab2f17eaa Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Fri, 14 Oct 2016 22:25:25 +0200 Subject: [PATCH] audacity: fix gcc6 build --- .../audacity/patches/fix-return_null.patch | 20 +++++++++++++++++++ srcpkgs/audacity/template | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/audacity/patches/fix-return_null.patch diff --git a/srcpkgs/audacity/patches/fix-return_null.patch b/srcpkgs/audacity/patches/fix-return_null.patch new file mode 100644 index 00000000000..158117cd267 --- /dev/null +++ b/srcpkgs/audacity/patches/fix-return_null.patch @@ -0,0 +1,20 @@ +--- src/import/ImportFLAC.cpp 2016-01-08 23:05:48.000000000 +0100 ++++ src/import/ImportFLAC.cpp 2016-10-14 22:19:44.434290227 +0200 +@@ -296,7 +296,7 @@ + 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 @@ + + if (cnt == wxInvalidOffset || strncmp(buf, FLAC_HEADER, 4) != 0) { + // File is not a FLAC file +- return false; ++ return NULL; + } + + // Open the file for import diff --git a/srcpkgs/audacity/template b/srcpkgs/audacity/template index 63d2c1ed6a3..57e0fd1b9fe 100644 --- a/srcpkgs/audacity/template +++ b/srcpkgs/audacity/template @@ -1,7 +1,7 @@ # Template file for 'audacity' pkgname=audacity version=2.1.2 -revision=1 +revision=2 wrksrc="${pkgname}-Audacity-${version}" build_style=gnu-configure configure_args="--with-libsamplerate"