1
0
Fridrich Strba 2023-09-21 11:15:46 +00:00 committed by Git OBS Bridge
parent 1c32110baf
commit 437ef6518c
3 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Sep 21 11:14:41 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Added patch:
* reproducible-properties.patch
+ use SOURCE_DATE_EPOCH for timestamp in properties files if
it is set
-------------------------------------------------------------------
Tue Sep 19 10:46:38 UTC 2023 - Fridrich Strba <fstrba@suse.com>

View File

@ -156,6 +156,7 @@ Patch5: multiple-pkcs11-library-init.patch
Patch8: zero-ranges.patch
# From icedtea: Increase default memory limits
Patch10: memory-limits.patch
Patch11: reproducible-properties.patch
# Fix use of unintialized memory in adlc parser
Patch12: adlc-parser.patch
# Fix: implicit-pointer-decl
@ -394,6 +395,7 @@ rm -rvf src/java.desktop/share/native/liblcms/lcms2*
%patch5 -p1
%patch8 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1

View File

@ -0,0 +1,11 @@
--- a/src/java.base/share/classes/java/util/Properties.java
+++ b/src/java.base/share/classes/java/util/Properties.java
@@ -955,7 +955,7 @@ public class Properties extends Hashtable<Object,Object> {
if (sysPropVal != null && !sysPropVal.isEmpty()) {
writeComments(bw, sysPropVal);
} else {
- bw.write("#" + new Date());
+ bw.write("#" + (System.getenv("SOURCE_DATE_EPOCH") != null ? new Date(1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH"))) : new Date());
bw.newLine();
}
}