Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 588238 Details for
Bug 680028
media-sound/audacity-2.3.2 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
audacity-2.3.2-Fix-building-against-system-portaudio.patch
0005-Fix-building-against-system-portaudio.patch (text/plain), 1.94 KB, created by
Alexander Tsoy
on 2019-08-26 22:36:11 UTC
(
hide
)
Description:
audacity-2.3.2-Fix-building-against-system-portaudio.patch
Filename:
MIME Type:
Creator:
Alexander Tsoy
Created:
2019-08-26 22:36:11 UTC
Size:
1.94 KB
patch
obsolete
>From 5f9482a191359f2c477763a36d2c865c5f186602 Mon Sep 17 00:00:00 2001 >From: Antonio Ospite <ao2@ao2.it> >Date: Tue, 7 Nov 2017 13:06:33 +0100 >Subject: [PATCH] Fix building against the system portaudio library > >Building against the system portaudio results in this error: > >./src/AudioIO.cpp:983: undefined reference to `PaUtil_GetTime' >audacity-AudioIO.o: In function `audacityAudioCallback(void const*, void*, >unsigned long, PaStreamCallbackTimeInfo const*, unsigned long, void*)': >./src/AudioIO.cpp:4630: undefined reference to `PaUtil_GetTime' >collect2: error: ld returned 1 exit status >Makefile:2349: recipe for target 'audacity' failed >make[3]: *** [audacity] Error 1 > >This is because PaUtil_GetTime is declared as a C symbol in pa_util.h >but is resolved as a C++ symbol at link time. > >Audacity fixes this in the local tree with this change: >https://github.com/audacity/audacity/commit/38fd97b8e26060332ab3e9e000a8882326a70ba7 > >However this is not general enough for the portaudio debian package. > >Since PaUtil_GetTime() is the only function causing problems, just copy >over the code where it's used. >--- > src/AudioIO.cpp | 17 ++++++++++++++++- > 1 file changed, 16 insertions(+), 1 deletion(-) > >--- a/src/AudioIO.cpp >+++ b/src/AudioIO.cpp >@@ -465,8 +465,23 @@ TimeTrack and AudioIOListener and whethe > #define ROUND(x) (int) ((x)+0.5) > //#include <string.h> > #include "../lib-src/portmidi/pm_common/portmidi.h" >- #include "../lib-src/portaudio-v19/src/common/pa_util.h" > #include "NoteTrack.h" >+ >+PaTime PaUtil_GetTime( void ) >+{ >+#ifdef HAVE_MACH_ABSOLUTE_TIME >+ return mach_absolute_time() * machSecondsConversionScaler_; >+#elif defined(HAVE_CLOCK_GETTIME) >+ struct timespec tp; >+ clock_gettime(CLOCK_REALTIME, &tp); >+ return (PaTime)(tp.tv_sec + tp.tv_nsec * 1e-9); >+#else >+ struct timeval tv; >+ gettimeofday( &tv, NULL ); >+ return (PaTime) tv.tv_usec * 1e-6 + tv.tv_sec; >+#endif >+} >+ > #endif > > #ifdef EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 680028
:
568566
|
585228
| 588238 |
588240
|
588242
|
588244
|
588266
|
588274
|
588402