[SCM] juce/master: Set BUILD_TIME for reproducible builds
umlaeute at users.alioth.debian.org
umlaeute at users.alioth.debian.org
Thu Apr 28 22:20:22 UTC 2016
The following commit has been merged in the master branch:
commit 0535d296a69c2724652330c1c51662d06859508b
Author: IOhannes m zmölnig <zmoelnig at umlautQ.umlaeute.mur.at>
Date: Thu Apr 28 17:33:53 2016 +0200
Set BUILD_TIME for reproducible builds
diff --git a/debian/patches/reproducible-date.patch b/debian/patches/reproducible-date.patch
index 6dc3052..557e1e4 100644
--- a/debian/patches/reproducible-date.patch
+++ b/debian/patches/reproducible-date.patch
@@ -7,13 +7,16 @@ 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()
{
StringArray dateTokens, timeTokens;
@@ -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 @@
--
juce packaging
More information about the pkg-multimedia-commits
mailing list