[Git][java-team/jaxb][master] 3 commits: Clamp the timestamp in the header of the files generated by XJC to...

Emmanuel Bourg gitlab at salsa.debian.org
Fri Aug 16 23:55:43 BST 2019



Emmanuel Bourg pushed to branch master at Debian Java Maintainers / jaxb


Commits:
81ce4d71 by Emmanuel Bourg at 2019-08-16T22:46:47Z
Clamp the timestamp in the header of the files generated by XJC to SOURCE_DATE_EPOCH to improve the reproducibility

- - - - -
f0d8b0bf by Emmanuel Bourg at 2019-08-16T22:47:03Z
Standards-Version updated to 4.4.0

- - - - -
524c7cae by Emmanuel Bourg at 2019-08-16T22:47:37Z
Upload to unstable

- - - - -


4 changed files:

- debian/changelog
- debian/control
- + debian/patches/10-reproducible-prolog-comment.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+jaxb (2.3.0.1-9) unstable; urgency=medium
+
+  * Team upload.
+  * Clamp the timestamp in the header of the files generated by XJC
+    to SOURCE_DATE_EPOCH to improve the reproducibility
+  * Standards-Version updated to 4.4.0
+
+ -- Emmanuel Bourg <ebourg at apache.org>  Sat, 17 Aug 2019 00:47:25 +0200
+
 jaxb (2.3.0.1-8) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/control
=====================================
@@ -18,7 +18,7 @@ Build-Depends:
  librelaxng-datatype-java,
  libxml-commons-resolver1.1-java,
  maven-debian-helper (>= 2.2)
-Standards-Version: 4.2.1
+Standards-Version: 4.4.0
 Vcs-Git: https://salsa.debian.org/java-team/jaxb.git
 Vcs-Browser: https://salsa.debian.org/java-team/jaxb
 Homepage: https://javaee.github.io/jaxb-v2/


=====================================
debian/patches/10-reproducible-prolog-comment.patch
=====================================
@@ -0,0 +1,18 @@
+Description: Makes the header of the files generated by XJC reproducible
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: no
+--- a/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/Options.java
++++ b/jaxb-ri/xjc/src/main/java/com/sun/tools/xjc/Options.java
+@@ -983,10 +983,11 @@
+                 + "' "
+                 + Messages.format(Messages.TIME_FORMAT);
+         SimpleDateFormat dateFormat = new SimpleDateFormat(format, Locale.ENGLISH);
++        dateFormat.setTimeZone(java.util.TimeZone.getTimeZone("UTC"));
+ 
+         return Messages.format(
+             Messages.FILE_PROLOG_COMMENT,
+-            dateFormat.format(new Date()));
++            dateFormat.format(System.getenv("SOURCE_DATE_EPOCH") != null ? new Date(1000 * Long.valueOf(System.getenv("SOURCE_DATE_EPOCH"))) : new Date()));
+     }
+ 
+     /**


=====================================
debian/patches/series
=====================================
@@ -6,3 +6,4 @@
 07-fix-xjc-task.patch
 08-java10-compatibility.patch
 09-remove-reflective-access-warning.patch
+10-reproducible-prolog-comment.patch



View it on GitLab: https://salsa.debian.org/java-team/jaxb/compare/623a8c3eb7898b314291aadb882904be8ade513f...524c7cae5ca01ca43f8ebcd1549ebf82af15b539

-- 
View it on GitLab: https://salsa.debian.org/java-team/jaxb/compare/623a8c3eb7898b314291aadb882904be8ade513f...524c7cae5ca01ca43f8ebcd1549ebf82af15b539
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20190816/ee39683f/attachment.html>


More information about the pkg-java-commits mailing list