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

Collapse All | Expand All

(-)audacity3/Makefile (-1 / +1 lines)
Lines 2-8 Link Here
2
2
3
PORTNAME=	audacity
3
PORTNAME=	audacity
4
DISTVERSIONPREFIX=	minsrc-
4
DISTVERSIONPREFIX=	minsrc-
5
DISTVERSION=	3.0.0
5
DISTVERSION=	3.0.2
6
CATEGORIES=	audio
6
CATEGORIES=	audio
7
MASTER_SITES=	https://github.com/${PORTNAME}/${PORTNAME}/releases/download/Audacity-${PORTVERSION}/
7
MASTER_SITES=	https://github.com/${PORTNAME}/${PORTNAME}/releases/download/Audacity-${PORTVERSION}/
8
8
(-)audacity3/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1616886054
1
TIMESTAMP = 1619066304
2
SHA256 (audacity-minsrc-3.0.0.tar.xz) = d3bb1358b930ea4ef935ed83cc5a0f47006565762c5667c2fb376c6535876a6a
2
SHA256 (audacity-minsrc-3.0.2.tar.xz) = 728d6459931da006ed45a31e63b7fe6ca47a2547459a2aff3bf0880cef85c296
3
SIZE (audacity-minsrc-3.0.0.tar.xz) = 13308836
3
SIZE (audacity-minsrc-3.0.2.tar.xz) = 13330160
(-)audacity3/files/patch-lib-src_libnyquist_nyquist_xlisp_xlfio.c (-12 lines)
Lines 1-12 Link Here
1
--- lib-src/libnyquist/nyquist/xlisp/xlfio.c.orig	2021-02-04 18:52:51 UTC
2
+++ lib-src/libnyquist/nyquist/xlisp/xlfio.c
3
@@ -19,8 +19,7 @@
4
 /* do some sanity checking: */
5
 #ifndef XL_BIG_ENDIAN
6
 #ifndef XL_LITTLE_ENDIAN
7
-#error configuration error -- either XL_BIG_ or XL_LITTLE_ENDIAN must be defined
8
-in xlisp.h
9
+#error configuration error -- either XL_BIG_ or XL_LITTLE_ENDIAN must be defined in xlisp.h
10
 #endif
11
 #endif
12
 #ifdef XL_BIG_ENDIAN
(-)audacity3/files/patch-src_ProjectSerializer.cpp (-60 lines)
Lines 1-60 Link Here
1
--- src/ProjectSerializer.cpp.orig	2021-02-04 18:52:51 UTC
2
+++ src/ProjectSerializer.cpp
3
@@ -206,9 +206,9 @@ ProjectSerializer::ProjectSerializer(size_t allocSize)
4
    std::call_once(flag, []{
5
       // Just once per run, store header information in the unique static
6
       // dictionary that will be written into each project that is saved.
7
-      // Store the size of "wxChar" so we can convert during recovery in
8
-      // case the file is used on a system with a different character size.
9
-      char size = sizeof(wxChar);
10
+      // Store the size of "wxStringCharType" so we can convert during recovery
11
+      // in case the file is used on a system with a different character size.
12
+      char size = sizeof(wxStringCharType);
13
       mDict.AppendByte(FT_CharSize);
14
       mDict.AppendData(&size, 1);
15
    });
16
@@ -242,7 +242,7 @@ void ProjectSerializer::WriteAttr(const wxString & nam
17
    mBuffer.AppendByte(FT_String);
18
    WriteName(name);
19
 
20
-   const Length len = value.length() * sizeof(wxChar);
21
+   const Length len = value.length() * sizeof(wxStringCharType);
22
    WriteLength( mBuffer, len );
23
    mBuffer.AppendData(value.wx_str(), len);
24
 }
25
@@ -309,7 +309,7 @@ void ProjectSerializer::WriteData(const wxString & val
26
 {
27
    mBuffer.AppendByte(FT_Data);
28
 
29
-   Length len = value.length() * sizeof(wxChar);
30
+   Length len = value.length() * sizeof(wxStringCharType);
31
    WriteLength( mBuffer, len );
32
    mBuffer.AppendData(value.wx_str(), len);
33
 }
34
@@ -317,7 +317,7 @@ void ProjectSerializer::WriteData(const wxString & val
35
 void ProjectSerializer::Write(const wxString & value)
36
 {
37
    mBuffer.AppendByte(FT_Raw);
38
-   Length len = value.length() * sizeof(wxChar);
39
+   Length len = value.length() * sizeof(wxStringCharType);
40
    WriteLength( mBuffer, len );
41
    mBuffer.AppendData(value.wx_str(), len);
42
 }
43
@@ -334,7 +334,7 @@ void ProjectSerializer::WriteSubTree(const ProjectSeri
44
 
45
 void ProjectSerializer::WriteName(const wxString & name)
46
 {
47
-   wxASSERT(name.length() * sizeof(wxChar) <= SHRT_MAX);
48
+   wxASSERT(name.length() * sizeof(wxStringCharType) <= SHRT_MAX);
49
    UShort id;
50
 
51
    auto nameiter = mNames.find(name);
52
@@ -346,7 +346,7 @@ void ProjectSerializer::WriteName(const wxString & nam
53
    {
54
       // mNames is static.  This appends each name to static mDict only once
55
       // in each run.
56
-      UShort len = name.length() * sizeof(wxChar);
57
+      UShort len = name.length() * sizeof(wxStringCharType);
58
 
59
       id = mNames.size();
60
       mNames[name] = id;
(-)audacity3/files/patch-src_import_Import.cpp (-16 lines)
Lines 1-16 Link Here
1
--- src/import/Import.cpp.orig	2021-02-04 18:52:51 UTC
2
+++ src/import/Import.cpp
3
@@ -803,9 +803,11 @@ bool Importer::Import( AudacityProject &project,
4
 /* i18n-hint: %s will be the filename */
5
 "Audacity did not recognize the type of the file '%s'.\n\n%sFor uncompressed files, also try File > Import > Raw Data.")
6
          .Format( fName,
7
+#if defined(USE_FFMPEG)
8
                   !FFmpegLibsInst()
9
-                  ? XO("Try installing FFmpeg.\n\n")
10
-                  : XO("") );
11
+                  ? XO("Try installing FFmpeg.\n\n") :
12
+#endif
13
+		Verbatim("") );
14
    }
15
    else
16
    {
(-)audacity3/files/patch-src_widgets_FileConfig.cpp (-11 lines)
Lines 1-11 Link Here
1
--- src/widgets/FileConfig.cpp.orig	2021-02-04 18:52:51 UTC
2
+++ src/widgets/FileConfig.cpp
3
@@ -10,6 +10,8 @@
4
 
5
 #include "../Audacity.h"
6
 
7
+#include <errno.h>
8
+
9
 #include <wx/defs.h>
10
 #include <wx/app.h>
11
 #include <wx/bmpbuttn.h>

Return to bug 255236