View | Details | Raw Unified | Return to bug 259565 | Differences between
and this patch

Collapse All | Expand All

(-)audacity-new/Makefile (-4 / +4 lines)
Lines 2-8 Link Here
2
2
3
PORTNAME=	audacity
3
PORTNAME=	audacity
4
DISTVERSIONPREFIX=	Audacity-
4
DISTVERSIONPREFIX=	Audacity-
5
DISTVERSION=	3.0.5
5
DISTVERSION=	3.1.0
6
CATEGORIES=	audio
6
CATEGORIES=	audio
7
7
8
MAINTAINER=	xxjack12xx@gmail.com
8
MAINTAINER=	xxjack12xx@gmail.com
Lines 22-28 Link Here
22
		libsqlite3.so:databases/sqlite3 \
22
		libsqlite3.so:databases/sqlite3 \
23
		libuuid.so:misc/e2fsprogs-libuuid
23
		libuuid.so:misc/e2fsprogs-libuuid
24
24
25
USES=		cmake compiler:c++14-lang cpe desktop-file-utils gettext \
25
USES=		cmake compiler:c++17-lang cpe desktop-file-utils gettext \
26
		gnome libtool python:build pkgconfig shared-mime-info
26
		gnome libtool python:build pkgconfig shared-mime-info
27
27
28
USE_GITHUB=	yes
28
USE_GITHUB=	yes
Lines 43-56 Link Here
43
		-Daudacity_use_sqlite:STRING=system \
43
		-Daudacity_use_sqlite:STRING=system \
44
		-Daudacity_use_wxwidgets:STRING=system \
44
		-Daudacity_use_wxwidgets:STRING=system \
45
		-Daudacity_use_zlib:STRING=system
45
		-Daudacity_use_zlib:STRING=system
46
CMAKE_ON=	audacity_obey_system_dependencies
46
CMAKE_ON=	audacity_use_pa_oss audacity_obey_system_dependencies
47
CMAKE_OFF=	audacity_has_networking audacity_has_updates_check \
47
CMAKE_OFF=	audacity_has_networking audacity_has_updates_check \
48
		audacity_use_pa_alsa audacity_use_pch
48
		audacity_use_pa_alsa audacity_use_pch
49
49
50
OPTIONS_DEFINE=		DEBUG DOCS FFMPEG FLAC ID3TAG LADSPA LV2 MAD \
50
OPTIONS_DEFINE=		DEBUG DOCS FFMPEG FLAC ID3TAG LADSPA LV2 MAD \
51
			OGG SBSMS SOUNDTOUCH TWOLAME VAMP \
51
			OGG SBSMS SOUNDTOUCH TWOLAME VAMP \
52
			VORBIS VST
52
			VORBIS VST
53
OPTIONS_DEFAULT=	FFMPEG FLAC ID3TAG LV2 MAD OGG SBSMS \
53
OPTIONS_DEFAULT=	FFMPEG FLAC ID3TAG LADSPA LV2 MAD OGG SBSMS \
54
			SOUNDTOUCH TWOLAME VAMP VORBIS VST
54
			SOUNDTOUCH TWOLAME VAMP VORBIS VST
55
OPTIONS_EXCLUDE_i386=	SBSMS
55
OPTIONS_EXCLUDE_i386=	SBSMS
56
56
(-)audacity-new/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1633473095
1
TIMESTAMP = 1635645550
2
SHA256 (audacity-audacity-Audacity-3.0.5_GH0.tar.gz) = 4b94dcaf45545ebf0d9a44b71fbdc1251109100b465ff4d71860849b5ffcf525
2
SHA256 (audacity-audacity-Audacity-3.1.0_GH0.tar.gz) = f441fc6115277b407b7496e5009fd5066875ceccbe3a31635bbcbe5558d31828
3
SIZE (audacity-audacity-Audacity-3.0.5_GH0.tar.gz) = 63066756
3
SIZE (audacity-audacity-Audacity-3.1.0_GH0.tar.gz) = 56424569
(-)audacity-new/files/patch-cmake-proxies_CMakeLists.txt (-77 lines)
Lines 1-77 Link Here
1
--- cmake-proxies/CMakeLists.txt.orig	2021-08-18 10:21:37 UTC
2
+++ cmake-proxies/CMakeLists.txt
3
@@ -87,6 +87,7 @@ add_conan_lib(
4
    REQUIRED
5
    INTERFACE_NAME libmp3lame::libmp3lame
6
    PKG_CONFIG "lame >= 3.100"
7
+   ALLOW_FIND_PACKAGE
8
 )
9
 
10
 add_conan_lib(
11
@@ -105,24 +106,23 @@ add_conan_lib(
12
    PKG_CONFIG "mad >= 0.15.1b"
13
 )
14
 
15
-if( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
16
-   set( curl_ssl "darwinssl" )
17
-elseif( CMAKE_SYSTEM_NAME MATCHES "Windows" )
18
-   set( curl_ssl "schannel")
19
-else()
20
-   set ( curl_ssl "openssl" )
21
-endif ()
22
-
23
-add_conan_lib(
24
-   ThreadPool
25
-   threadpool/20140926
26
-   REQUIRED
27
-   ALWAYS_ALLOW_CONAN_FALLBACK
28
-)
29
-
30
 if( ${_OPT}has_networking )
31
+   if( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
32
+      set( curl_ssl "darwinssl" )
33
+   elseif( CMAKE_SYSTEM_NAME MATCHES "Windows" )
34
+      set( curl_ssl "schannel")
35
+   else()
36
+      set ( curl_ssl "openssl" )
37
+   endif ()
38
 
39
    add_conan_lib(
40
+      ThreadPool
41
+      threadpool/20140926
42
+      REQUIRED
43
+      ALWAYS_ALLOW_CONAN_FALLBACK
44
+   )
45
+
46
+   add_conan_lib(
47
       CURL
48
       libcurl/7.75.0
49
       REQUIRED
50
@@ -148,11 +148,13 @@ if( NOT CMAKE_SYSTEM_NAME MATCHES "Darwin|Windows")
51
    )
52
 endif()
53
 
54
-add_conan_lib(
55
-   RapidJSON
56
-   rapidjson/1.1.0
57
-   REQUIRED
58
-)
59
+if( ${_OPT}has_sentry_reporting )
60
+   add_conan_lib(
61
+      RapidJSON
62
+      rapidjson/1.1.0
63
+      REQUIRED
64
+   )
65
+endif()
66
 
67
 set_conan_vars_to_parent()
68
 
69
@@ -161,7 +163,7 @@ set_conan_vars_to_parent()
70
 #       directory          option      symbol      req   chk   version
71
 addlib( libsndfile         sndfile     SNDFILE     YES   YES   "sndfile >= 1.0.28" )
72
 addlib( libsoxr            soxr        SOXR        YES   YES   "soxr >= 0.1.1" )
73
-addlib( portaudio-v19      portaudio   PORTAUDIO   YES   YES   "" )
74
+addlib( portaudio-v19      portaudio   PORTAUDIO   YES   YES   "portaudio-2.0 >= 19" )
75
 addlib( sqlite             sqlite      SQLITE      YES   YES   "sqlite3 >= 3.32.0" )
76
 
77
 # Optional libraries
(-)audacity-new/files/patch-cmake-proxies_cmake-modules_AudacityDependencies.cmake (-227 lines)
Lines 1-227 Link Here
1
--- cmake-proxies/cmake-modules/AudacityDependencies.cmake.orig	2021-08-27 22:30:37 UTC
2
+++ cmake-proxies/cmake-modules/AudacityDependencies.cmake
3
@@ -1,11 +1,14 @@
4
 # Load Conan
5
-include( conan )
6
 
7
-conan_add_remote(NAME audacity
8
-    URL https://artifactory.audacityteam.org/artifactory/api/conan/conan-local
9
-    VERIFY_SSL True
10
-)
11
+if( ${_OPT}conan_enabled )
12
+    include( conan )
13
 
14
+    conan_add_remote(NAME audacity
15
+        URL https://artifactory.audacityteam.org/artifactory/api/conan/conan-local
16
+        VERIFY_SSL True
17
+    )
18
+endif()
19
+
20
 set( CONAN_BUILD_REQUIRES )
21
 set( CONAN_REQUIRES )
22
 set( CONAN_PACKAGE_OPTIONS )
23
@@ -13,24 +16,30 @@ set( CONAN_ONLY_DEBUG_RELEASE )
24
 set( CONAN_CONFIG_OPTIONS )
25
 set( CONAN_RESOLVE_LIST )
26
 
27
-# Add a Conan dependency
28
-# Example usage:
29
-# add_conan_lib( 
30
-#   wxWdidget 
31
-#   wxwidgets/3.1.3-audacity
32
-#   OPTION_NAME wxwidgets
33
-#   SYMBOL WXWIDGET
34
-#   REQUIRED 
35
-#   ALWAYS_ALLOW_CONAN_FALLBACK
36
-#   PKG_CONFIG "wxwidgets >= 3.1.3"
37
-#   FIND_PACKAGE_OPTIONS COMPONENTS adv base core html qa xml
38
-#   INTERFACE_NAME wxwidgets::wxwidgets
39
-#   HAS_ONLY_DEBUG_RELEASE
40
-#   CONAN_OPTIONS 
41
-#        wxwidgets:shared=True
42
-# )
43
+#[[
44
+Add a Conan dependency
45
 
46
+Example usage:
47
 
48
+add_conan_lib( 
49
+  wxWdidget 
50
+  wxwidgets/3.1.3-audacity
51
+  OPTION_NAME wxwidgets
52
+  SYMBOL WXWIDGET
53
+  REQUIRED 
54
+  ALWAYS_ALLOW_CONAN_FALLBACK
55
+  PKG_CONFIG "wxwidgets >= 3.1.3"
56
+  FIND_PACKAGE_OPTIONS COMPONENTS adv base core html qa xml
57
+  INTERFACE_NAME wxwidgets::wxwidgets
58
+  HAS_ONLY_DEBUG_RELEASE
59
+  CONAN_OPTIONS 
60
+       wxwidgets:shared=True
61
+)
62
+
63
+PKG_CONFIG accepts a list of possible package configurations. 
64
+add_conan_lib will iterate over it one by one until the library is found.
65
+]]
66
+
67
 function (add_conan_lib package conan_package_name )
68
     # Extract the list of packages from the function args
69
     list( SUBLIST ARGV 2 -1 options )
70
@@ -54,6 +63,8 @@ function (add_conan_lib package conan_package_name )
71
             set( list_mode on )
72
             set( allow_find_package on )
73
             set( current_var "find_package_options" )
74
+        elseif ( opt STREQUAL "ALLOW_FIND_PACKAGE" )
75
+            set ( allow_find_package on )
76
         elseif ( opt STREQUAL "CONAN_OPTIONS" )
77
             set( list_mode on )
78
             set( current_var "conan_package_options" )
79
@@ -93,14 +104,23 @@ function (add_conan_lib package conan_package_name )
80
 
81
     set( option_desc "local" )
82
 
83
-    if( pkg_config_options OR allow_find_package )
84
+    if( pkg_config_options OR allow_find_package OR NOT ${_OPT}conan_enabled )
85
         set( sysopt "system" )
86
         string( PREPEND option_desc "system (if available), " )
87
-        set( default "${${_OPT}lib_preference}" )
88
+
89
+        if( ${_OPT}conan_enabled )
90
+            set( default "${${_OPT}lib_preference}" )
91
+        else()
92
+            set( default "system" )
93
+        endif()
94
     else()
95
         set( default "local" )
96
     endif()
97
 
98
+    if( ${_OPT}conan_enabled )
99
+        set( localopt "local" )
100
+    endif()
101
+
102
     if( NOT required )
103
         set( reqopt "off" )
104
         string( APPEND option_desc ", off" )
105
@@ -109,7 +129,7 @@ function (add_conan_lib package conan_package_name )
106
     cmd_option( ${option_name}
107
                 "Use ${option_name_base} library [${option_desc}]"
108
                 "${default}"
109
-                STRINGS ${sysopt} "local" ${reqopt}
110
+                STRINGS ${sysopt} ${localopt} ${reqopt}
111
     )
112
     
113
     # Early bail out
114
@@ -129,26 +149,28 @@ function (add_conan_lib package conan_package_name )
115
         return()
116
     endif()
117
 
118
-    if( ${option_name} STREQUAL "system" )
119
+    if( ${option_name} STREQUAL "system" OR NOT ${_OPT}conan_enabled )
120
         if( pkg_config_options )
121
-            pkg_check_modules( PKG_${package} ${pkg_config_options} )
122
+            foreach(variant ${pkg_config_options})
123
+                pkg_check_modules( PKG_${package} ${variant} )
124
 
125
-            if( PKG_${package}_FOUND )
126
-                message( STATUS "Using '${package}' system library" )
127
-    
128
-                # Create the target interface library
129
-                add_library( ${interface_name} INTERFACE IMPORTED GLOBAL)
130
+                if( PKG_${package}_FOUND )
131
+                    message( STATUS "Using '${package}' system library" )
132
         
133
-                # Retrieve the package information
134
-                get_package_interface( PKG_${package} )
135
-        
136
-                # And add it to our target
137
-                target_include_directories( ${interface_name} INTERFACE ${INCLUDES} )
138
-                target_link_libraries( ${interface_name} INTERFACE ${LIBRARIES} )
139
+                    # Create the target interface library
140
+                    add_library( ${interface_name} INTERFACE IMPORTED GLOBAL)
141
+            
142
+                    # Retrieve the package information
143
+                    get_package_interface( PKG_${package} )
144
+            
145
+                    # And add it to our target
146
+                    target_include_directories( ${interface_name} INTERFACE ${INCLUDES} )
147
+                    target_link_libraries( ${interface_name} INTERFACE ${LIBRARIES} )
148
 
149
-                message(STATUS "Added inteface ${interface_name} ${INCLUDES} ${LIBRARIES}")
150
-                return()
151
-            endif()
152
+                    message(STATUS "Added inteface ${interface_name} ${INCLUDES} ${LIBRARIES}")
153
+                    return()
154
+                endif()
155
+            endforeach()
156
         endif()
157
 
158
         if( allow_find_package )
159
@@ -160,7 +182,7 @@ function (add_conan_lib package conan_package_name )
160
             endif()
161
         endif()
162
 
163
-        if( system_only )
164
+        if( system_only OR NOT ${_OPT}conan_enabled )
165
             message( FATAL_ERROR "Failed to find the system package ${package}" )
166
         else()
167
             set( ${option_name} "local" )
168
@@ -237,34 +259,36 @@ function ( _conan_install build_type )
169
 endfunction()
170
 
171
 macro( resolve_conan_dependencies )
172
-    message(STATUS 
173
-    "Executing Conan: \
174
-        REQUIRES ${CONAN_REQUIRES}
175
-        GENERATORS cmake_find_package_multi
176
-        BUILD_REQUIRES ${CONAN_BUILD_REQUIRES}
177
-        ${CONAN_CONFIG_OPTIONS}
178
-        OPTIONS ${CONAN_PACKAGE_OPTIONS}
179
-    ")
180
+    if( ${_OPT}conan_enabled )
181
+        message(STATUS 
182
+        "Executing Conan: \
183
+            REQUIRES ${CONAN_REQUIRES}
184
+            GENERATORS cmake_find_package_multi
185
+            BUILD_REQUIRES ${CONAN_BUILD_REQUIRES}
186
+            ${CONAN_CONFIG_OPTIONS}
187
+            OPTIONS ${CONAN_PACKAGE_OPTIONS}
188
+        ")
189
 
190
-    if(MSVC OR XCODE)
191
-        foreach(TYPE ${CMAKE_CONFIGURATION_TYPES})
192
-            _conan_install(${TYPE})
193
-        endforeach()
194
-    else()
195
-        _conan_install(${CMAKE_BUILD_TYPE})
196
-    endif()
197
+        if(MSVC OR XCODE)
198
+            foreach(TYPE ${CMAKE_CONFIGURATION_TYPES})
199
+                _conan_install(${TYPE})
200
+            endforeach()
201
+        else()
202
+            _conan_install(${CMAKE_BUILD_TYPE})
203
+        endif()
204
 
205
-    list( REMOVE_DUPLICATES CONAN_REQUIRES )
206
+        list( REMOVE_DUPLICATES CONAN_REQUIRES )
207
 
208
-    foreach( package ${CONAN_RESOLVE_LIST} )
209
-        message(STATUS "Resolving Conan library ${package}")
210
+        foreach( package ${CONAN_RESOLVE_LIST} )
211
+            message(STATUS "Resolving Conan library ${package}")
212
 
213
-        find_package(${package} CONFIG)
214
+            find_package(${package} CONFIG)
215
 
216
-        if (NOT ${package}_FOUND)
217
-            message( FATAL_ERROR "Failed to find the conan package ${package}" )
218
-        endif()
219
-    endforeach()
220
+            if (NOT ${package}_FOUND)
221
+                message( FATAL_ERROR "Failed to find the conan package ${package}" )
222
+            endif()
223
+        endforeach()
224
+    endif()
225
 
226
     file(GLOB dependency_helpers "${AUDACITY_MODULE_PATH}/dependencies/*.cmake")
227
 
(-)audacity-new/files/patch-cmake-proxies_cmake-modules_Findlibmp3lame.cmake (-3 / +9 lines)
Lines 1-6 Link Here
1
--- cmake-proxies/cmake-modules/Findlibmp3lame.cmake.orig	2021-08-27 22:30:58 UTC
1
--- cmake-proxies/cmake-modules/Findlibmp3lame.cmake.orig	2021-10-28 09:14:30 UTC
2
+++ cmake-proxies/cmake-modules/Findlibmp3lame.cmake
2
+++ cmake-proxies/cmake-modules/Findlibmp3lame.cmake
3
@@ -0,0 +1,29 @@
3
@@ -26,6 +26,35 @@ if( NOT libmp3lame_FOUND )
4
          message( FATAL_ERROR "Could not find libmp3lame")
5
       endif()
6
    endif()
7
+endif()
4
+#[[
8
+#[[
5
+A module to look for libmp3lame
9
+A module to look for libmp3lame
6
+]]
10
+]]
Lines 29-32 Link Here
29
+         message( FATAL_ERROR "Could not find libmp3lame")
33
+         message( FATAL_ERROR "Could not find libmp3lame")
30
+      endif()
34
+      endif()
31
+   endif()
35
+   endif()
32
+endif()
36
 
37
    mark_as_advanced(
38
       libmp3lame_FOUND
(-)audacity-new/files/patch-cmake-proxies_cmake-modules_dependencies_wxwidgets.cmake (-14 lines)
Lines 1-14 Link Here
1
--- cmake-proxies/cmake-modules/dependencies/wxwidgets.cmake.orig	2021-08-27 06:00:39 UTC
2
+++ cmake-proxies/cmake-modules/dependencies/wxwidgets.cmake
3
@@ -1,4 +1,10 @@
4
-if( ${_OPT}use_wxwidgets STREQUAL "system" ) 
5
+if( ${_OPT}use_wxwidgets STREQUAL "system" OR NOT ${_OPT}conan_enabled )
6
+    # DV: find_package will be scoped, as FindwxWidgets.cmake is rather outdated.
7
+    # Still - let's perform the sanity check first.
8
+    if( NOT wxWidgets_FOUND )
9
+        find_package( wxWidgets REQUIRED COMPONENTS adv base core html qa xml net )
10
+    endif()
11
+
12
     if( NOT TARGET wxwidgets::wxwidgets )
13
         add_library( wxwidgets::wxwidgets INTERFACE IMPORTED GLOBAL)
14
     endif()
(-)audacity-new/files/patch-cmake-proxies_libsoxr_CMakeLists.txt (+10 lines)
Line 0 Link Here
1
--- cmake-proxies/libsoxr/CMakeLists.txt.orig	2021-11-03 20:20:58 UTC
2
+++ cmake-proxies/libsoxr/CMakeLists.txt
3
@@ -95,6 +95,4 @@ target_compile_definitions( ${TARGET} PRIVATE ${DEFINE
4
 target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
5
 target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
6
 
7
-if( CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
8
-   target_compile_options( ${TARGET} PRIVATE -fPIC )
9
-endif()
10
+set_target_properties(${TARGET} PROPERTIES POSITION_INDEPENDENT_CODE On)
(-)audacity-new/files/patch-lib-src_portmidi_porttime_ptlinux.c (-42 lines)
Lines 1-42 Link Here
1
--- lib-src/portmidi/porttime/ptlinux.c.orig	2018-10-01 14:07:33 UTC
2
+++ lib-src/portmidi/porttime/ptlinux.c
3
@@ -31,14 +31,13 @@ CHANGE LOG
4
 #include "porttime.h"
5
 #include "sys/time.h"
6
 #include "sys/resource.h"
7
-#include "sys/timeb.h"
8
 #include "pthread.h"
9
 
10
 #define TRUE 1
11
 #define FALSE 0
12
 
13
 static int time_started_flag = FALSE;
14
-static struct timeb time_offset = {0, 0, 0, 0};
15
+static struct timeval time_offset = {0};
16
 static pthread_t pt_thread_pid;
17
 static int pt_thread_created = FALSE;
18
 
19
@@ -79,7 +78,7 @@ static void *Pt_CallbackProc(void *p)
20
 PtError Pt_Start(int resolution, PtCallback *callback, void *userData)
21
 {
22
     if (time_started_flag) return ptNoError;
23
-    ftime(&time_offset); /* need this set before process runs */
24
+    gettimeofday(&time_offset, 0);
25
     if (callback) {
26
         int res;
27
         pt_callback_parameters *parms = (pt_callback_parameters *) 
28
@@ -121,10 +120,10 @@ int Pt_Started()
29
 PtTimestamp Pt_Time()
30
 {
31
     long seconds, milliseconds;
32
-    struct timeb now;
33
-    ftime(&now);
34
-    seconds = now.time - time_offset.time;
35
-    milliseconds = now.millitm - time_offset.millitm;
36
+    struct timeval now;
37
+    gettimeofday(&now, 0);
38
+    seconds = now.tv_sec - time_offset.tv_sec;
39
+    milliseconds = (now.tv_usec / 1000) - (time_offset.tv_usec / 1000);
40
     return seconds * 1000 + milliseconds;
41
 }
42
 
(-)audacity-new/files/patch-lib-src_portmixer_CMakeLists.txt (+11 lines)
Line 0 Link Here
1
--- lib-src/portmixer/CMakeLists.txt.orig	2021-11-03 20:22:02 UTC
2
+++ lib-src/portmixer/CMakeLists.txt
3
@@ -130,7 +130,4 @@ target_sources( ${TARGET} PRIVATE ${SOURCES} )
4
 target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
5
 target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
6
 target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
7
-
8
-if( CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
9
-   target_compile_options( ${TARGET} PRIVATE -fPIC )
10
-endif()
11
+set_target_properties(${TARGET} PROPERTIES POSITION_INDEPENDENT_CODE On)
(-)audacity-new/files/patch-src_AudioIO.cpp (-34 lines)
Lines 1-34 Link Here
1
--- src/AudioIO.cpp.orig	2020-06-19 15:16:47 UTC
2
+++ src/AudioIO.cpp
3
@@ -490,7 +490,6 @@ time warp info and AudioIOListener and whether the pla
4
    #define ROUND(x) (int) ((x)+0.5)
5
    //#include <string.h>
6
 //   #include "../lib-src/portmidi/pm_common/portmidi.h"
7
-   #include "../lib-src/portaudio-v19/src/common/pa_util.h"
8
    #include "NoteTrack.h"
9
 #endif
10
 
11
@@ -814,13 +813,22 @@ struct AudioIoCallback::ScrubState (private)
12
 // return the system time as a double
13
 static double streamStartTime = 0; // bias system time to small number
14
 
15
+// PaUtil_GetTime is an internal PortAudio function.  Unfortunately
16
+// it's used twice in AudioIO.cpp.  It's a simple function so just
17
+// provide the implementation here.
18
+static double PaUtil_GetTime(void) {
19
+   struct timespec tp;
20
+   clock_gettime(CLOCK_REALTIME, &tp);
21
+   return (double)(tp.tv_sec + tp.tv_nsec * 1e-9);
22
+}
23
+
24
 static double SystemTime(bool usingAlsa)
25
 {
26
 #ifdef __WXGTK__
27
    if (usingAlsa) {
28
       struct timespec now;
29
       // CLOCK_MONOTONIC_RAW is unaffected by NTP or adj-time
30
-      clock_gettime(CLOCK_MONOTONIC_RAW, &now);
31
+      clock_gettime(CLOCK_REALTIME, &now);
32
       //return now.tv_sec + now.tv_nsec * 0.000000001;
33
       return (now.tv_sec + now.tv_nsec * 0.000000001) - streamStartTime;
34
    }
(-)audacity-new/files/patch-src_CMakeLists.txt (+11 lines)
Line 0 Link Here
1
--- src/CMakeLists.txt.orig	2021-10-28 09:14:30 UTC
2
+++ src/CMakeLists.txt
3
@@ -38,7 +38,7 @@ elseif( GIT_FOUND )
4
 else()
5
    # No Git installed and no version data is available.
6
    # Generate an empty file and let AboutDialog do the rest
7
-   file( TOUCH "${_PRVDIR}/RevisionIdent.h" )
8
+   file( WRITE "${_PRVDIR}/RevisionIdent.h" "\n" )
9
 endif()
10
 
11
 # Handle Audio Units option
(-)audacity-new/files/patch-src_MIDIPlay.cpp (+11 lines)
Line 0 Link Here
1
--- src/MIDIPlay.cpp.orig	2021-10-31 02:53:52 UTC
2
+++ src/MIDIPlay.cpp
3
@@ -490,7 +490,7 @@ static double SystemTime(bool usingAlsa)
4
    if (usingAlsa) {
5
       struct timespec now;
6
       // CLOCK_MONOTONIC_RAW is unaffected by NTP or adj-time
7
-      clock_gettime(CLOCK_MONOTONIC_RAW, &now);
8
+      clock_gettime(CLOCK_REALTIME, &now);
9
       //return now.tv_sec + now.tv_nsec * 0.000000001;
10
       return (now.tv_sec + now.tv_nsec * 0.000000001) - streamStartTime;
11
    }
(-)audacity-new/pkg-plist (+14 lines)
Lines 1-9 Link Here
1
audacity
1
audacity
2
bin/audacity
2
bin/audacity
3
lib/audacity/lib-audio-devices.so
4
lib/audacity/lib-basic-ui.so
5
lib/audacity/lib-components.so
6
lib/audacity/lib-exceptions.so
7
lib/audacity/lib-ffmpeg-support.so
8
lib/audacity/lib-files.so
9
lib/audacity/lib-math.so
10
lib/audacity/lib-preferences.so
11
lib/audacity/lib-project-rate.so
12
lib/audacity/lib-project.so
13
lib/audacity/lib-registries.so
14
lib/audacity/lib-screen-geometry.so
3
lib/audacity/lib-string-utils.so
15
lib/audacity/lib-string-utils.so
4
lib/audacity/lib-strings.so
16
lib/audacity/lib-strings.so
17
lib/audacity/lib-theme.so
5
lib/audacity/lib-utility.so
18
lib/audacity/lib-utility.so
6
lib/audacity/lib-uuid.so
19
lib/audacity/lib-uuid.so
20
lib/audacity/lib-xml.so
7
lib/audacity/modules/mod-script-pipe.so
21
lib/audacity/modules/mod-script-pipe.so
8
man/man1/audacity.1.gz
22
man/man1/audacity.1.gz
9
share/applications/audacity.desktop
23
share/applications/audacity.desktop

Return to bug 259565