SHA256
1
0
forked from pool/audacity

Accepting request 817684 from multimedia:apps

- Update to 2.4.2, now uses cmake to build.
- Create lame.pc in spec file.
- Remove audacity-implicit-fortify-decl.patch and
  audacity-flacversion.patch, fixed upstream
- Add two more false positives to
  audacity-no_return_in_nonvoid.patch
- Upstream changes:
  *Over 30 bugs fixed since 2.4.1
  *A new command has been added to the Tools menu:
   Tools > Reset Configuration.
  *Audacity now supports LAME's gapless playback info, allowing
   MP3s to be exported and imported without additional padding.

OBS-URL: https://build.opensuse.org/request/show/817684
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/audacity?expand=0&rev=87
This commit is contained in:
Dominique Leuenberger 2020-06-29 19:16:23 +00:00 committed by Git OBS Bridge
commit bda449bedd
8 changed files with 97 additions and 102 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:50240f07471373a7e5c2df65cc26eeeaaced9a0850ad1f95cb795f171ea3009f
size 63935461

3
Audacity-2.4.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cdb4800c8e9d1d4ca19964caf8d24000f80286ebd8a4db566c2622449744c099
size 61248430

View File

@ -1,30 +0,0 @@
Index: audacity-Audacity-2.3.3/m4/audacity_checklib_libflac.m4
===================================================================
--- audacity-Audacity-2.3.3.orig/m4/audacity_checklib_libflac.m4 2019-11-15 13:14:55.000000000 +0200
+++ audacity-Audacity-2.3.3/m4/audacity_checklib_libflac.m4 2020-02-02 15:41:14.847457491 +0200
@@ -13,21 +13,21 @@ AC_DEFUN([AUDACITY_CHECKLIB_LIBFLAC], [
dnl See if FLAC is installed in the system
- PKG_CHECK_MODULES([FLAC], [flac >= 1.3.0 flac++ >= 1.3.0],
+ PKG_CHECK_MODULES([FLAC], [flac >= 1.3.1 flac++ >= 1.3.1],
[LIBFLAC_SYSTEM_AVAILABLE="yes"],
[LIBFLAC_SYSTEM_AVAILABLE="no"])
- dnl Check for flac < 1.3.0
+ dnl Check for flac < 1.3.1
if test "$LIBFLAC_SYSTEM_AVAILABLE" = "no"; then
PKG_CHECK_MODULES([FLAC], [flac flac++],
[LIBFLAC_SYSTEM_AVAILABLE="yes"],
[LIBFLAC_SYSTEM_AVAILABLE="no"])
- dnl flac < 1.3.0 adds its own FLAC and FLAC++ subdirectories to the search
+ dnl flac < 1.3.1 adds its own FLAC and FLAC++ subdirectories to the search
dnl path and ships a assert.h file there. This assert.h overwrites the
dnl assert.h header from the C standard library. We need to strip /FLAC
dnl and /FLAC++ from the include paths to make the assert.h from the C
dnl standard library available again.
- [FLAC_CFLAGS=$(echo "$FLAC_CFLAGS" | sed 's@-I\([^ ]*\)/FLAC\(++\)\? @-I\1 @g')]
+ [FLAC_CFLAGS=$(echo "$FLAC_CFLAGS" | sed 's|-I\([^ ]*\)/FLAC\(++\)\?[ ]*|-I\1 |g')]
fi
if test "$LIBFLAC_SYSTEM_AVAILABLE" = "yes"; then

View File

@ -1,17 +0,0 @@
Index: b/lib-src/libnyquist/nyquist/xlisp/security.c
===================================================================
--- a/lib-src/libnyquist/nyquist/xlisp/security.c 2020-06-15 10:39:50.030730823 +0200
+++ b/lib-src/libnyquist/nyquist/xlisp/security.c 2020-06-15 10:59:45.779010172 +0200
@@ -4,12 +4,7 @@
*/
#include <stdlib.h>
-#if defined(UNIX) || defined(__APPLE__)
#include <unistd.h>
-#endif
-#ifdef WIN32
-#include <direct.h>
-#endif
#include <string.h>
#include <xlisp.h>

View File

@ -1,7 +1,7 @@
Index: audacity-Audacity-2.4.0/lib-src/portaudio-v19/qa/loopback/src/paqa.c
Index: audacity-Audacity-2.4.2/lib-src/portaudio-v19/qa/loopback/src/paqa.c
===================================================================
--- audacity-Audacity-2.4.0.orig/lib-src/portaudio-v19/qa/loopback/src/paqa.c 2020-05-18 12:54:40.106763016 +0200
+++ audacity-Audacity-2.4.0/lib-src/portaudio-v19/qa/loopback/src/paqa.c 2020-05-18 12:55:07.291841573 +0200
--- audacity-Audacity-2.4.2.orig/lib-src/portaudio-v19/qa/loopback/src/paqa.c 2020-06-19 17:16:47.000000000 +0200
+++ audacity-Audacity-2.4.2/lib-src/portaudio-v19/qa/loopback/src/paqa.c 2020-06-28 09:53:36.618593507 +0200
@@ -1460,7 +1460,7 @@ int main( int argc, char **argv )
int justMath = 0;
char *executableName = argv[0];
@ -11,11 +11,11 @@ Index: audacity-Audacity-2.4.0/lib-src/portaudio-v19/qa/loopback/src/paqa.c
if( argc > 1 ){
printf("running with arguments:");
Index: audacity-Audacity-2.4.0/src/AboutDialog.cpp
Index: audacity-Audacity-2.4.2/src/AboutDialog.cpp
===================================================================
--- audacity-Audacity-2.4.0.orig/src/AboutDialog.cpp 2020-05-18 12:55:07.291841573 +0200
+++ audacity-Audacity-2.4.0/src/AboutDialog.cpp 2020-05-18 13:03:11.727062253 +0200
@@ -69,7 +69,7 @@ hold information about one contributor t
--- audacity-Audacity-2.4.2.orig/src/AboutDialog.cpp 2020-06-19 17:16:47.000000000 +0200
+++ audacity-Audacity-2.4.2/src/AboutDialog.cpp 2020-06-28 09:53:36.618593507 +0200
@@ -70,7 +70,7 @@ hold information about one contributor t
#endif
#ifdef REV_LONG
@ -24,7 +24,7 @@ Index: audacity-Audacity-2.4.0/src/AboutDialog.cpp
#else
#define REV_IDENT (XO("No revision identifier was provided").Translation())
#endif
@@ -701,8 +701,8 @@ void AboutDialog::PopulateInformationPag
@@ -751,8 +751,8 @@ void AboutDialog::PopulateInformationPag
<< XO("Build Information")
<< wxT("</h3>\n<table>");

View File

@ -1,8 +1,8 @@
Index: audacity-Audacity-2.3.3/src/widgets/NumericTextCtrl.cpp
Index: b/src/widgets/NumericTextCtrl.cpp
===================================================================
--- audacity-Audacity-2.3.3.orig/src/widgets/NumericTextCtrl.cpp 2019-11-15 13:14:55.000000000 +0200
+++ audacity-Audacity-2.3.3/src/widgets/NumericTextCtrl.cpp 2020-02-02 15:41:21.663740215 +0200
@@ -637,6 +637,7 @@ static const BuiltinFormatString Bandwid
--- a/src/widgets/NumericTextCtrl.cpp 2020-06-19 17:16:47.000000000 +0200
+++ b/src/widgets/NumericTextCtrl.cpp 2020-06-28 11:27:53.709676198 +0200
@@ -654,6 +654,7 @@ static const BuiltinFormatString Bandwid
case NumericConverter::BANDWIDTH:
return WXSIZEOF(BandwidthConverterFormats_);
}
@ -10,10 +10,10 @@ Index: audacity-Audacity-2.3.3/src/widgets/NumericTextCtrl.cpp
}
}
Index: audacity-Audacity-2.3.3/lib-src/libnyquist/nyquist/xlisp/xlbfun.c
Index: b/lib-src/libnyquist/nyquist/xlisp/xlbfun.c
===================================================================
--- audacity-Audacity-2.3.3.orig/lib-src/libnyquist/nyquist/xlisp/xlbfun.c 2019-11-15 13:14:55.000000000 +0200
+++ audacity-Audacity-2.3.3/lib-src/libnyquist/nyquist/xlisp/xlbfun.c 2020-02-02 15:41:21.663740215 +0200
--- a/lib-src/libnyquist/nyquist/xlisp/xlbfun.c 2020-06-19 17:16:47.000000000 +0200
+++ b/lib-src/libnyquist/nyquist/xlisp/xlbfun.c 2020-06-28 11:27:53.773678563 +0200
@@ -603,7 +603,10 @@ LVAL xcleanup(void)
{
xllastarg();
@ -26,3 +26,29 @@ Index: audacity-Audacity-2.3.3/lib-src/libnyquist/nyquist/xlisp/xlbfun.c
}
/* xtoplevel - special form 'top-level' */
Index: b/lib-src/portsmf/allegro.cpp
===================================================================
--- a/lib-src/portsmf/allegro.cpp 2020-06-19 17:16:47.000000000 +0200
+++ b/lib-src/portsmf/allegro.cpp 2020-06-28 12:38:54.119640838 +0200
@@ -2885,6 +2885,9 @@ Alg_event_ptr &Alg_seq::operator[](int i
tr++;
}
assert(false); // out of bounds
+ Alg_event_ptr ab_track;
+ return ab_track; // Fix false positive error: control reaches end of non-void function [-Werror=return-type]
+ // Ignores the assert A gcc bug?
}
#pragma warning(default: 4715)
Index: b/lib-src/libnyquist/nyquist/cmupv/src/cmupv.c
===================================================================
--- a/lib-src/libnyquist/nyquist/cmupv/src/cmupv.c 2020-06-19 17:16:47.000000000 +0200
+++ b/lib-src/libnyquist/nyquist/cmupv/src/cmupv.c 2020-06-28 11:54:14.043499973 +0200
@@ -596,6 +596,7 @@ double pv_get_effective_pos(Phase_vocode
return -(pv->ratio * pv->fftsize / 2.0);
} else { // I can't think of any other case.
assert(FALSE);
+ return -(pv->ratio * pv->fftsize / 2.0); //Another false positive ignoring assert as a return value
}
}

View File

@ -1,3 +1,19 @@
-------------------------------------------------------------------
Sun Jun 28 11:54:42 UTC 2020 - Dave Plater <davejplater@gmail.com>
- Update to 2.4.2, now uses cmake to build.
- Create lame.pc in spec file.
- Remove audacity-implicit-fortify-decl.patch and
audacity-flacversion.patch, fixed upstream
- Add two more false positives to
audacity-no_return_in_nonvoid.patch
- Upstream changes:
*Over 30 bugs fixed since 2.4.1
*A new command has been added to the Tools menu:
Tools > Reset Configuration.
*Audacity now supports LAME's gapless playback info, allowing
MP3s to be exported and imported without additional padding.
-------------------------------------------------------------------
Mon Jun 15 09:28:20 UTC 2020 - Dave Plater <davejplater@gmail.com>

View File

@ -17,7 +17,7 @@
Name: audacity
Version: 2.4.1
Version: 2.4.2
Release: 0
Summary: A Multi Track Digital Audio Editor
License: GPL-2.0-or-later
@ -29,16 +29,10 @@ Source1: audacity-license-nyquist
Source2: audacity-rpmlintrc
# PATCH-FIX-OPENSUSE audacity-no_buildstamp.patch davejplater@gmail.com -- Remove the buildstamp.
Patch0: audacity-no_buildstamp.patch
# PATCH-FIX-OPENSUSE audacity-flacversion.patch davejplater@gmail.com -- Patch to fix build against libflac 1.3.1+.
Patch1: audacity-flacversion.patch
Patch2: audacity-misc-errors.patch
# PATCH-FIX-UPSTREAM audacity-no_return_in_nonvoid.patch
# PATCH-FIX-UPSTREAM audacity-no_return_in_nonvoid.patch - Fix false positive errors Two new gcc10 ones ignoring assert
Patch3: audacity-no_return_in_nonvoid.patch
# PATCH-FIX-OPENSUSE audacity-implicit-fortify-decl.patch davejplater@gmail.com -- Leap:15.1's build misses "UNIX" definition in nyquist/xlisp/security.c
Patch4: audacity-implicit-fortify-decl.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: cmake
BuildRequires: cmake >= 3.15
BuildRequires: desktop-file-utils
BuildRequires: gcc-c++
#!BuildIgnore: gstreamer-0_10-plugins-base
@ -73,11 +67,11 @@ BuildRequires: pkgconfig(vorbisfile)
#BuildRequires: portaudio-devel
Recommends: %{name}-lang
# WARNING Nothing provides libavutil without a suffix
Requires: ffmpeg
Recommends: libmp3lame0
Requires: %{name}-plugins = %{version}
Requires: libFLAC++6 >= 1.3.1
Requires: libFLAC8 >= 1.3.1
Requires: ffmpeg
Requires: libmp3lame0
#Doesn't build for 32 bit anymore
ExcludeArch: i586
%description
Audacity is a program that manipulates digital audio wave forms.
@ -104,58 +98,64 @@ This package contains extra plugins for audacity.
cp -f %{SOURCE1} LICENSE_NYQUIST.txt
# Make sure we use the system versions.
rm -rf lib-src/{expat,libvamp,libsoxr,ffmpeg,lame}/
# Audacity's cmake can't find libmp3lame without a .pc file
# This is a temporary workaround.
if ! test -e %{_libdir}/pkgconfig/lame.pc
then
echo "creating lame.pc"
cat << EOF > lame.pc
prefix=%{_prefix}
libdir=%{_libdir}
includedir=%{_includedir}/lame
Name: mp3lame
Description: encoder that converts audio to the MP3 file format.
Version: 3.100
Libs: -L${libdir} -lmp3lame
Cflags: -I${includedir}
EOF
fi
#Included in src/AboutDialog.cpp but not supplied
touch include/RevisionIdent.h
%build
if ! test -e %{_libdir}/pkgconfig/lame.pc
then
export PKG_CONFIG_PATH="`echo $PWD`:%{_libdir}/pkgconfig"
fi
export CFLAGS="%{optflags} -fno-strict-aliasing -ggdb"
export CXXFLAGS="$CFLAGS -std=gnu++11"
%if 1 == 1
aclocal -I m4
autoconf
%configure \
%ifnarch %ix86 x86_64
--disable-sse \
%endif
%if 0%{?suse_version} > 1501
--disable-dynamic-loading \
%endif
--with-ffmpeg=system \
--with-libmad=system \
--with-libtwolame=system \
--with-lame=system \
--docdir=%{_docdir}/%{name}/
%else
%cmake
%endif
%cmake \
-Duse_lame:STRING=system
make %{?_smp_mflags}
%install
%make_install
%cmake_install
# E-mail wrote to feedback@audacityteam.org.
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/mimetypes/
mv -f %{buildroot}%{_datadir}/pixmaps/gnome-mime-application-x-audacity-project.xpm \
%{buildroot}%{_datadir}/icons/hicolor/48x48/mimetypes/application-x-audacity-project.xpm
rm -rf %{buildroot}%{_datadir}/pixmaps/
rm %{buildroot}%{_docdir}/%{name}/LICENSE.txt
rm -rf %{buildroot}%{_datadir}/doc
cp -v lib-src/portmixer/LICENSE.txt portmixer.LICENSE.txt
%find_lang %{name}
%files plugins
%license LICENSE.txt
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/libsuil*.so
%{_libdir}/%{name}/suil*.so
%files
%defattr(-,root,root)
%doc README.txt
%license LICENSE.txt LICENSE_NYQUIST.txt portmixer.LICENSE.txt
%doc %{_docdir}/%{name}/
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/icons/hicolor/*/mimetypes/*%{name}*
%{_datadir}/icons/hicolor/*
%{_datadir}/mime/packages/%{name}.xml
%{_mandir}/man?/%{name}.?%{?ext_man}
%dir %{_datadir}/appdata/