Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package java-11-openjdk for openSUSE:Factory checked in at 2023-09-25 20:00:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/java-11-openjdk (Old) and /work/SRC/openSUSE:Factory/.java-11-openjdk.new.1770 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "java-11-openjdk" Mon Sep 25 20:00:48 2023 rev:66 rq:1112713 version:11.0.20.1 Changes: -------- --- /work/SRC/openSUSE:Factory/java-11-openjdk/java-11-openjdk.changes 2023-08-28 17:10:54.675377296 +0200 +++ /work/SRC/openSUSE:Factory/.java-11-openjdk.new.1770/java-11-openjdk.changes 2023-09-25 20:01:20.646138985 +0200 @@ -1,0 +2,8 @@ +Thu Sep 14 07:58:44 UTC 2023 - Fridrich Strba <fst...@suse.com> + +- Added patch: + * reproducible-properties.patch + + use SOURCE_DATE_EPOCH for timestamp in the generated + properties files + +------------------------------------------------------------------- New: ---- reproducible-properties.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ java-11-openjdk.spec ++++++ --- /var/tmp/diff_new_pack.e2LwqQ/_old 2023-09-25 20:01:25.178302382 +0200 +++ /var/tmp/diff_new_pack.e2LwqQ/_new 2023-09-25 20:01:25.178302382 +0200 @@ -210,7 +210,8 @@ Patch12: adlc-parser.patch # Fix: implicit-pointer-decl Patch13: implicit-pointer-decl.patch -# +# Use SOURCE_DATE_EPOCH in timestamp when writing properties +Patch14: reproducible-properties.patch Patch15: system-pcsclite.patch Patch16: missing-return.patch Patch17: nss-security-provider.patch @@ -490,6 +491,7 @@ %patch10 -p1 %patch12 -p1 %patch13 -p1 +%patch14 -p1 %if %{with_system_pcsc} %patch15 -p1 ++++++ reproducible-properties.patch ++++++ --- a/src/java.base/share/classes/java/util/Properties.java +++ b/src/java.base/share/classes/java/util/Properties.java @@ -929,7 +929,11 @@ class Properties extends Hashtable<Object,Object> { if (comments != null) { writeComments(bw, comments); } - bw.write("#" + new Date().toString()); + Date now = new Date(); + if (System.getenv("SOURCE_DATE_EPOCH") != null) { + now = new Date(1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH"))); + } + bw.write("#" + now.toString()); bw.newLine(); synchronized (this) { for (Map.Entry<Object, Object> e : entrySet()) {