Allow setting of DATE in about-dialog
authorIOhannes m zmölnig <zmoelnig@umlautQ.umlaeute.mur.at>
Fri, 6 Nov 2015 20:38:27 +0000 (21:38 +0100)
committerIOhannes m zmölnig <zmoelnig@umlautQ.umlaeute.mur.at>
Fri, 6 Nov 2015 20:38:27 +0000 (21:38 +0100)
debian/patches/0001-reproducible.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0001-reproducible.patch b/debian/patches/0001-reproducible.patch
new file mode 100644 (file)
index 0000000..02e133e
--- /dev/null
@@ -0,0 +1,27 @@
+Description: allow setting of the displayed build-date
+ so we can make builds reproducible
+Author: IOhannes m zmölnig
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- giada.orig/src/gui/dialogs/gd_about.cpp
++++ giada/src/gui/dialogs/gd_about.cpp
+@@ -39,6 +39,10 @@
+ extern Conf G_Conf;
++#ifndef BUILD_DATE
++# define BUILD_DATE __DATE__
++#endif
++
+ gdAbout::gdAbout()
+ #ifdef WITH_VST
+@@ -67,7 +71,7 @@
+       char message[512];
+       sprintf(
+         message,
+-        "Version " VERSIONE " (" __DATE__ ")\n\n"
++        "Version " VERSIONE " (" BUILD_DATE ")\n\n"
+               "Developed by Monocasual\n"
+               "Based on FLTK (%d.%d.%d), RtAudio (%s),\n"
+               "RtMidi (%s), libsamplerate and libsndfile\n\n"
index dd6a7252ae4bc6b9062eb8c95d8b0a10ab8dd33c..944e3d125e7e7507cc5194ac020ab5585220cda6 100644 (file)
@@ -1 +1,2 @@
+0001-reproducible.patch
 0002-spelling.patch