From: IOhannes m zmölnig Date: Mon, 30 Oct 2017 08:49:22 +0000 (+0100) Subject: Added patch to fix compilation with g++-7 X-Git-Tag: archive/raspbian/0.15.4+ds1-1+rpi1^2~80 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e9ecd16c568b5053e9ad75c7dda7c1ac25d1846b;p=giada.git Added patch to fix compilation with g++-7 Closes: #853418 --- diff --git a/debian/patches/03-gcc7.patch b/debian/patches/03-gcc7.patch new file mode 100644 index 0000000..dd073a8 --- /dev/null +++ b/debian/patches/03-gcc7.patch @@ -0,0 +1,17 @@ +Description: Fixed g++-7 build errors +Author: IOhannes m zmölnig +Forwarded: no +Last-Update: 2017-10-30 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- giada.orig/src/gui/elems/mainWindow/mainTimer.cpp ++++ giada/src/gui/elems/mainWindow/mainTimer.cpp +@@ -60,7 +60,7 @@ + + resizable(nullptr); // don't resize any widget + +- char buf[6]; snprintf(buf, 6, "%f", clock::getBpm()); ++ char buf[320]; snprintf(buf, 320, "%f", clock::getBpm()); + bpm->copy_label(buf); + + bpm->callback(cb_bpm, (void*)this); diff --git a/debian/patches/series b/debian/patches/series index f1d1d9b..c8a9a4e 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ +01-rtaudio5.patch 02-rtmidi-pkgconfig.patch +03-gcc7.patch 04-catch.patch -01-rtaudio5.patch