From e9ecd16c568b5053e9ad75c7dda7c1ac25d1846b Mon Sep 17 00:00:00 2001 From: =?utf8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Mon, 30 Oct 2017 09:49:22 +0100 Subject: [PATCH] Added patch to fix compilation with g++-7 Closes: #853418 --- debian/patches/03-gcc7.patch | 17 +++++++++++++++++ debian/patches/series | 3 ++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 debian/patches/03-gcc7.patch 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 -- 2.30.2