SHA256
1
0
forked from pool/audacity

Accepting request 814672 from home:plater

Fix Leap:15.1 build with audacity-implicit-fortify-decl.patch.

OBS-URL: https://build.opensuse.org/request/show/814672
OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/audacity?expand=0&rev=142
This commit is contained in:
Dave Plater 2020-06-15 09:32:58 +00:00 committed by Git OBS Bridge
parent d09665e690
commit f5486bf33e
3 changed files with 27 additions and 3 deletions

View File

@ -0,0 +1,17 @@
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,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 15 09:28:20 UTC 2020 - Dave Plater <davejplater@gmail.com>
- Fix Leap:15.1 build with audacity-implicit-fortify-decl.patch.
-------------------------------------------------------------------
Mon Jun 8 09:37:32 UTC 2020 - Dave Plater <davejplater@gmail.com>

View File

@ -34,6 +34,8 @@ Patch1: audacity-flacversion.patch
Patch2: audacity-misc-errors.patch
# PATCH-FIX-UPSTREAM audacity-no_return_in_nonvoid.patch
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
@ -99,8 +101,7 @@ 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}/
rm -rf lib-src/lame
rm -rf lib-src/{expat,libvamp,libsoxr,ffmpeg,lame}/
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
@ -135,6 +136,7 @@ mv -f %{buildroot}%{_datadir}/pixmaps/gnome-mime-application-x-audacity-project.
%{buildroot}%{_datadir}/icons/hicolor/48x48/mimetypes/application-x-audacity-project.xpm
rm -rf %{buildroot}%{_datadir}/pixmaps/
rm %{buildroot}%{_docdir}/%{name}/LICENSE.txt
cp -v lib-src/portmixer/LICENSE.txt portmixer.LICENSE.txt
%find_lang %{name}
%files plugins
@ -145,7 +147,7 @@ rm %{buildroot}%{_docdir}/%{name}/LICENSE.txt
%files
%defattr(-,root,root)
%doc README.txt
%license LICENSE.txt LICENSE_NYQUIST.txt
%license LICENSE.txt LICENSE_NYQUIST.txt portmixer.LICENSE.txt
%doc %{_docdir}/%{name}/
%{_bindir}/%{name}
%{_datadir}/%{name}/