unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob dd472a9c66a394fb10432d5d899a347725af2ffc 1045 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
 
# 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 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	Wed Dec 09 21:40:00 2020 -0500
@@ -396,6 +396,12 @@
      */
     public String today() {
         Calendar calendar = new GregorianCalendar(TimeZone.getDefault());
-        return calendar.getTime().toString();
+        Date date=calendar.getTime();
+        String epoch=System.getenv("SOURCE_DATE_EPOCH");
+        if(epoch != null) {
+            long unixtime=Long.parseLong(epoch);
+            date=new Date(unixtime*1000L);
+	}
+	return date.toString();
     }
 }

debug log:

solving dd472a9c66 ...
found dd472a9c66 in https://yhetil.org/guix-patches/87o8j1xs96.fsf@posteo.net/

applying [1/1] https://yhetil.org/guix-patches/87o8j1xs96.fsf@posteo.net/
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 0000000000..dd472a9c66

Checking patch gnu/packages/patches/icedtea-6-javadoc-reproducibility.patch...
Applied patch gnu/packages/patches/icedtea-6-javadoc-reproducibility.patch cleanly.

index at:
100644 dd472a9c66a394fb10432d5d899a347725af2ffc	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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).