[SCM] mixxx/master: Fix FTBFS with -Werror=format-security enabled (Closes: #646348).

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Sun Oct 23 15:57:44 UTC 2011


The following commit has been merged in the master branch:
commit 4004f67fdde138c0b98cb59c7d8768b2d5082b29
Author: Alessio Treglia <alessio at debian.org>
Date:   Sun Oct 23 17:57:22 2011 +0200

    Fix FTBFS with -Werror=format-security enabled (Closes: #646348).

diff --git a/debian/patches/01-werror_format_security.patch b/debian/patches/01-werror_format_security.patch
new file mode 100644
index 0000000..c3f8920
--- /dev/null
+++ b/debian/patches/01-werror_format_security.patch
@@ -0,0 +1,28 @@
+Description: Fix build failure with -Werror=format-security enabled.
+Author: Alessio Treglia <alessio at debian.org>
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=646348
+Forwarded: no
+---
+ src/main.cpp |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- mixxx.orig/src/main.cpp
++++ mixxx/src/main.cpp
+@@ -185,7 +185,7 @@ int main(int argc, char * argv[])
+ 
+     // Construct a list of strings based on the command line arguments
+     struct CmdlineArgs args;
+-    args.bStartInFullscreen = false; //Initialize vars
++    args.bStartInFullscreen = false; //Initialize varsprintf
+ 
+     // Only match supported file types since command line options are also parsed elsewhere
+     QRegExp fileRx(SoundSourceProxy::supportedFileExtensionsRegex(), Qt::CaseInsensitive);
+@@ -203,7 +203,7 @@ int main(int argc, char * argv[])
+ 
+             QString fileExtensions = SoundSourceProxy::supportedFileExtensionsString();
+             QByteArray fileExtensionsBA = QString(fileExtensions).toUtf8();
+-            printf(fileExtensionsBA);
++            printf("%s", fileExtensionsBA.data());
+             printf("\n\n");
+             printf("\
+                             Each file you specify will be loaded into the\n\
diff --git a/debian/patches/series b/debian/patches/series
index c47d293..7ff06d9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@
 30-disable_soundsourcem4a.patch
 40-soundtouch.patch
 91-desktop_file.patch
+01-werror_format_security.patch
diff --git a/debian/patches/ubuntu.series b/debian/patches/ubuntu.series
index 650227e..d4729d6 100644
--- a/debian/patches/ubuntu.series
+++ b/debian/patches/ubuntu.series
@@ -3,3 +3,4 @@
 20_norpath.patch
 30-disable_soundsourcem4a.patch
 40-soundtouch.patch
+01-werror_format_security.patch

-- 
mixxx packaging



More information about the pkg-multimedia-commits mailing list