forked from pool/java-21-openjdk
This commit is contained in:
parent
1c32110baf
commit
437ef6518c
@ -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>
|
Tue Sep 19 10:46:38 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
@ -156,6 +156,7 @@ Patch5: multiple-pkcs11-library-init.patch
|
|||||||
Patch8: zero-ranges.patch
|
Patch8: zero-ranges.patch
|
||||||
# From icedtea: Increase default memory limits
|
# From icedtea: Increase default memory limits
|
||||||
Patch10: memory-limits.patch
|
Patch10: memory-limits.patch
|
||||||
|
Patch11: reproducible-properties.patch
|
||||||
# Fix use of unintialized memory in adlc parser
|
# Fix use of unintialized memory in adlc parser
|
||||||
Patch12: adlc-parser.patch
|
Patch12: adlc-parser.patch
|
||||||
# Fix: implicit-pointer-decl
|
# Fix: implicit-pointer-decl
|
||||||
@ -394,6 +395,7 @@ rm -rvf src/java.desktop/share/native/liblcms/lcms2*
|
|||||||
%patch5 -p1
|
%patch5 -p1
|
||||||
%patch8 -p1
|
%patch8 -p1
|
||||||
%patch10 -p1
|
%patch10 -p1
|
||||||
|
%patch11 -p1
|
||||||
%patch12 -p1
|
%patch12 -p1
|
||||||
%patch13 -p1
|
%patch13 -p1
|
||||||
|
|
||||||
|
11
reproducible-properties.patch
Normal file
11
reproducible-properties.patch
Normal 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();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user