[SCM] giada/master: Add patch to fix build on some archs.

mira-guest at users.alioth.debian.org mira-guest at users.alioth.debian.org
Wed Jan 17 17:53:39 UTC 2018


The following commit has been merged in the master branch:
commit d50a55bb509347bbfd56057bf4f5fe6245d8c2ff
Author: Jaromír Mikeš <mira.mikes at seznam.cz>
Date:   Wed Jan 17 18:45:42 2018 +0100

    Add patch to fix build on some archs.

diff --git a/debian/patches/05-fix_FTBS_on_some_archs.patch b/debian/patches/05-fix_FTBS_on_some_archs.patch
new file mode 100644
index 0000000..bf2e12c
--- /dev/null
+++ b/debian/patches/05-fix_FTBS_on_some_archs.patch
@@ -0,0 +1,20 @@
+Description: Fix FTBFS on some archs.
+Author: James Cowgill <jcowgill at debian.org>
+jcowgill at debian.org
+Forwarded: no
+
+Index: giada/src/utils/string.cpp
+===================================================================
+--- giada.orig/src/utils/string.cpp
++++ giada/src/utils/string.cpp
+@@ -108,7 +108,9 @@ std::string gu_format(const char* format
+ 	/* Compute the size of the new expanded string (i.e. with replacement taken
+ 	into account). */
+ 
+-	size_t size = vsnprintf(nullptr, 0, format, args);
++  va_start(args, format);
++	size_t size = vsnprintf(nullptr, 0, format, args) + 1;
++  va_end(args);
+ 
+ 	/* Create a new temporary char array to hold the new expanded string. */
+ 
diff --git a/debian/patches/series b/debian/patches/series
index a09bfd0..4560b8d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 01-rtaudio5.patch
 02-rtmidi-pkgconfig.patch
 04-catch.patch
+05-fix_FTBS_on_some_archs.patch

-- 
giada packaging



More information about the pkg-multimedia-commits mailing list