Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package icedtea-web for openSUSE:Factory 
checked in at 2023-10-12 23:40:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/icedtea-web (Old)
 and      /work/SRC/openSUSE:Factory/.icedtea-web.new.1807 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "icedtea-web"

Thu Oct 12 23:40:52 2023 rev:36 rq:1117051 version:1.8.8

Changes:
--------
--- /work/SRC/openSUSE:Factory/icedtea-web/icedtea-web.changes  2023-10-10 
21:02:42.043305256 +0200
+++ /work/SRC/openSUSE:Factory/.icedtea-web.new.1807/icedtea-web.changes        
2023-10-12 23:42:09.441002264 +0200
@@ -1,0 +2,7 @@
+Wed Oct 11 14:56:42 UTC 2023 - Fridrich Strba <[email protected]>
+
+- Added patch:
+  * reproducible-timestamps.patch
+    + use SOURCE_DATE_EPOCH for timestamp in html files
+
+-------------------------------------------------------------------

New:
----
  reproducible-timestamps.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ icedtea-web.spec ++++++
--- /var/tmp/diff_new_pack.dwWnwu/_old  2023-10-12 23:42:10.297033250 +0200
+++ /var/tmp/diff_new_pack.dwWnwu/_new  2023-10-12 23:42:10.301033395 +0200
@@ -32,6 +32,7 @@
 Source0:        %{name}-%{version}.tar.xz
 Patch0:         icedtea-web-suse-desktop-files.patch
 Patch1:         more-java-versions.patch
+Patch2:         reproducible-timestamps.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  bc
@@ -88,6 +89,7 @@
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 rm -rf netx/net/sourceforge/jnlp/NetxPanel.java netx/sun
 

++++++ reproducible-timestamps.patch ++++++
diff --git 
a/netx/net/sourceforge/jnlp/util/docprovider/formatters/formatters/HtmlFormatter.java
 
b/netx/net/sourceforge/jnlp/util/docprovider/formatters/formatters/HtmlFormatter.java
index 643fcfd..c0a082c 100644
--- 
a/netx/net/sourceforge/jnlp/util/docprovider/formatters/formatters/HtmlFormatter.java
+++ 
b/netx/net/sourceforge/jnlp/util/docprovider/formatters/formatters/HtmlFormatter.java
@@ -95,6 +95,10 @@ public class HtmlFormatter extends ReplacingTextFormatter {
         if (includeXmlHeader) {
             xml = "<?xml version=\"1.0\" encoding=\"" + encoding + "\"?>\n";
         }
+        Date now = new Date();
+        if (System.getenv("SOURCE_DATE_EPOCH") != null) {
+            now = new Date(1000 * 
Long.parseLong(System.getenv("SOURCE_DATE_EPOCH")));
+        }
         return xml + "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" 
\"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\";>\n"
                 + "<html xmlns=\"http://www.w3.org/1999/xhtml\"; 
xml:lang=\"en\">\n"
                 + "  <head>\n"
@@ -102,7 +106,7 @@ public class HtmlFormatter extends ReplacingTextFormatter {
                 + "    <meta http-equiv=\"content-type\" 
content=\"application/xhtml+xml; charset=" + encoding + "\" />\n"
                 + "  </head>\n"
                 + "  <body>\n"
-                + "    <H5  align=\"right\">" + id + ": " + getVersion() + ", 
" + JNLPRuntime.getLocalisedTimeStamp(new Date()) + "</H5>";
+                + "    <H5  align=\"right\">" + id + ": " + getVersion() + ", 
" + JNLPRuntime.getLocalisedTimeStamp(now) + "</H5>";
     }
 
     @Override
diff --git 
a/netx/net/sourceforge/jnlp/util/docprovider/formatters/formatters/ManFormatter.java
 
b/netx/net/sourceforge/jnlp/util/docprovider/formatters/formatters/ManFormatter.java
index 9e2d1ae..9c0e595 100644
--- 
a/netx/net/sourceforge/jnlp/util/docprovider/formatters/formatters/ManFormatter.java
+++ 
b/netx/net/sourceforge/jnlp/util/docprovider/formatters/formatters/ManFormatter.java
@@ -118,6 +118,9 @@ public class ManFormatter extends ReplacingTextFormatter {
 
     private String getManPageDate(boolean localize) {
         Date now = new Date();
+        if (System.getenv("SOURCE_DATE_EPOCH") != null) {
+            now = new Date(1000 * 
Long.parseLong(System.getenv("SOURCE_DATE_EPOCH")));
+        }
         Calendar c = Calendar.getInstance();
         c.setTime(now);
         int day = c.get(Calendar.DAY_OF_MONTH);

Reply via email to