[openjfx] 01/05: Use SOURCE_DATE_EPOCH for the BUILD_TIMESTAMP

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Tue Jul 26 09:21:40 UTC 2016


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository openjfx.

commit f41328c765249c660c53cff78a795ac541d1d721
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Mon Jul 25 22:37:08 2016 +0200

    Use SOURCE_DATE_EPOCH for the BUILD_TIMESTAMP
---
 debian/changelog                                     |  2 ++
 debian/patches/16-reproducible-build-timestamp.patch | 14 ++++++++++++++
 debian/patches/series                                |  1 +
 3 files changed, 17 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 922dd7f..efbb03a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ openjfx (8u91-b14-2) UNRELEASED; urgency=medium
   * Team upload.
   * Fixed the build failure when building only the arch indep packages
     (Closes: #825276)
+  * Improved the reproducibility:
+    - Use SOURCE_DATE_EPOCH for the BUILD_TIMESTAMP
 
  -- Emmanuel Bourg <ebourg at apache.org>  Wed, 25 May 2016 22:50:36 +0200
 
diff --git a/debian/patches/16-reproducible-build-timestamp.patch b/debian/patches/16-reproducible-build-timestamp.patch
new file mode 100644
index 0000000..2106565
--- /dev/null
+++ b/debian/patches/16-reproducible-build-timestamp.patch
@@ -0,0 +1,14 @@
+Description: Use SOURCE_DATE_EPOCH for the BUILD_TIMESTAMP
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: no
+--- a/build.gradle
++++ b/build.gradle
+@@ -1245,7 +1245,7 @@
+     // We need to take the VersionInfo.java file and replace the various
+     // properties within it
+     def replacements = [
+-        "BUILD_TIMESTAMP": new java.util.Date(),
++        "BUILD_TIMESTAMP": new java.util.Date(1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH"))),
+         "HUDSON_JOB_NAME": HUDSON_JOB_NAME,
+         "HUDSON_BUILD_NUMBER": HUDSON_BUILD_NUMBER,
+         "PROMOTED_BUILD_NUMBER": PROMOTED_BUILD_NUMBER,
diff --git a/debian/patches/series b/debian/patches/series
index 8116310..de1c28b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -12,3 +12,4 @@
 fix-arm64-build.patch
 fix-arm32-build.patch
 15-fix-javadoc-refererences.diff
+16-reproducible-build-timestamp.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/openjfx.git



More information about the pkg-java-commits mailing list