Fridrich Strba 2024-09-17 15:44:18 +00:00 committed by Git OBS Bridge
parent a8447f7dfb
commit 86ed3cf666
5 changed files with 30 additions and 2 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Sep 17 15:42:27 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Modified patch:
* reproducible-jar-mtime.patch
+ try different approach to get bit-reproducible builds
-------------------------------------------------------------------
Tue Aug 13 14:43:30 UTC 2024 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Sep 17 15:42:27 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Modified patch:
* reproducible-jar-mtime.patch
+ try different approach to get bit-reproducible builds
-------------------------------------------------------------------
Tue Aug 13 14:43:30 UTC 2024 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Sep 17 15:42:27 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Modified patch:
* reproducible-jar-mtime.patch
+ try different approach to get bit-reproducible builds
-------------------------------------------------------------------
Tue Aug 13 14:43:30 UTC 2024 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Sep 17 15:42:27 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Modified patch:
* reproducible-jar-mtime.patch
+ try different approach to get bit-reproducible builds
-------------------------------------------------------------------
Tue Aug 13 14:43:30 UTC 2024 - Fridrich Strba <fstrba@suse.com>

View File

@ -54,7 +54,7 @@
}
}
--- apache-ant-1.10.14/src/main/org/apache/tools/ant/taskdefs/Zip.java 2024-09-17 17:05:56.243025784 +0200
+++ apache-ant-1.10.14/src/main/org/apache/tools/ant/taskdefs/Zip.java 2024-09-17 17:22:09.676446716 +0200
+++ apache-ant-1.10.14/src/main/org/apache/tools/ant/taskdefs/Zip.java 2024-09-17 17:30:54.736814738 +0200
@@ -682,6 +682,7 @@
"Failed to create missing parent directory for %s",
zipFile);
@ -92,7 +92,7 @@
final ZipEntry ze = new ZipEntry(vPath);
+ if ( System.getenv("SOURCE_DATE_EPOCH") != null && fixedModTime == null) {
+ fixedModTime = System.getenv("SOURCE_DATE_EPOCH");
+ modTimeMillis = 1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH"));
+ modTimeMillis = 1000 * Long.parseLong(fixedModTime);
+ }
ze.setTime(fixedModTime != null ? modTimeMillis : lastModified);
ze.setMethod(doCompress ? ZipEntry.DEFLATED : ZipEntry.STORED);