From d50a55bb509347bbfd56057bf4f5fe6245d8c2ff Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jarom=C3=ADr=20Mike=C5=A1?= Date: Wed, 17 Jan 2018 18:45:42 +0100 Subject: [PATCH] Add patch to fix build on some archs. --- .../patches/05-fix_FTBS_on_some_archs.patch | 20 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 21 insertions(+) create mode 100644 debian/patches/05-fix_FTBS_on_some_archs.patch 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@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 -- 2.30.2