From: IOhannes m zmölnig Date: Thu, 28 Apr 2016 15:33:53 +0000 (+0200) Subject: Set BUILD_TIME for reproducible builds X-Git-Tag: archive/raspbian/5.4.5_ds0-1+rpi1~1^2~227 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0535d296a69c2724652330c1c51662d06859508b;p=juce.git Set BUILD_TIME for reproducible builds --- diff --git a/debian/patches/reproducible-date.patch b/debian/patches/reproducible-date.patch index 6dc30521..557e1e46 100644 --- a/debian/patches/reproducible-date.patch +++ b/debian/patches/reproducible-date.patch @@ -7,12 +7,15 @@ Last-Update: 2015-01-21 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- juce.orig/modules/juce_core/time/juce_Time.cpp +++ juce/modules/juce_core/time/juce_Time.cpp -@@ -598,11 +598,14 @@ +@@ -598,14 +598,20 @@ return 0; } +#ifndef BUILD_DATE +# define BUILD_DATE __DATE__ ++#endif ++#ifndef BUILD_TIME ++# define BUILD_TIME __TIME__ +#endif Time Time::getCompilationDate() { @@ -22,7 +25,11 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ + dateTokens.addTokens (BUILD_DATE, true); dateTokens.removeEmptyStrings (true); - timeTokens.addTokens (__TIME__, ":", StringRef()); +- timeTokens.addTokens (__TIME__, ":", StringRef()); ++ timeTokens.addTokens (BUILD_TIME, ":", StringRef()); + + return Time (dateTokens[2].getIntValue(), + getMonthNumberForCompileDate (dateTokens[0]), --- juce.orig/extras/Projucer/Source/Application/jucer_Application.cpp +++ juce/extras/Projucer/Source/Application/jucer_Application.cpp @@ -130,6 +130,9 @@