From: Jaromír Mikeš Date: Wed, 17 Jan 2018 17:45:42 +0000 (+0100) Subject: Add patch to fix build on some archs. X-Git-Tag: archive/raspbian/0.15.4+ds1-1+rpi1^2~62 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d50a55bb509347bbfd56057bf4f5fe6245d8c2ff;p=giada.git 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@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