blob d4c8a97f3c57356ed315953cfe6e6ae15d2f4a54 1098 bytes (raw)
name: gnu/packages/patches/icedtea-6-javadoc-reproducibility.patch # note: path name is non-authoritative(*)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| | # HG changeset patch
# User Gábor Boskovits <boskovits@gmail.com>
# Date 1539456874 -7200
# Sat Oct 13 20:54:34 2018 +0200
# Node ID 6e5f716a659247888c104f66c58bf40fb959c8a4
# Parent 06656286f572cbf716397b9d983f8dee7d94f913
Make javadoc respect SOURCE_DATE_EPOCH.
diff -r 06656286f572 -r 6e5f716a6592 src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlDocWriter.java
--- a/src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlDocWriter.java Mon Aug 22 10:53:55 2016 -0700
+++ b/src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlDocWriter.java Sat Oct 13 20:54:34 2018 +0200
@@ -396,6 +396,13 @@
*/
public String today() {
Calendar calendar = new GregorianCalendar(TimeZone.getDefault());
- return calendar.getTime().toString();
+ Date date=calendar.getTime();
+ Map<String,String> env = System.getenv();
+ if(env.containsKey("SOURCE_DATE_EPOCH")) {
+ String epoch=env.get("SOURCE_DATE_EPOCH");
+ long unixtime=Long.parseLong(epoch);
+ date=new Date(unixtime*1000L);
+ }
+ return date.toString();
}
}
|
debug log:
solving d4c8a97f3 ...
found d4c8a97f3 in https://yhetil.org/guix/20181014190655.23754-1-boskovits@gmail.com/
applying [1/1] https://yhetil.org/guix/20181014190655.23754-1-boskovits@gmail.com/
diff --git a/gnu/packages/patches/icedtea-6-javadoc-reproducibility.patch b/gnu/packages/patches/icedtea-6-javadoc-reproducibility.patch
new file mode 100644
index 000000000..d4c8a97f3
Checking patch gnu/packages/patches/icedtea-6-javadoc-reproducibility.patch...
Applied patch gnu/packages/patches/icedtea-6-javadoc-reproducibility.patch cleanly.
index at:
100644 d4c8a97f3c57356ed315953cfe6e6ae15d2f4a54 gnu/packages/patches/icedtea-6-javadoc-reproducibility.patch
(*) Git path names are given by the tree(s) the blob belongs to.
Blobs themselves have no identifier aside from the hash of its contents.^
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.