Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package hppc for openSUSE:Factory checked in 
at 2023-09-15 22:05:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/hppc (Old)
 and      /work/SRC/openSUSE:Factory/.hppc.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "hppc"

Fri Sep 15 22:05:09 2023 rev:4 rq:1111421 version:0.7.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/hppc/hppc.changes        2022-03-30 
20:36:24.429339814 +0200
+++ /work/SRC/openSUSE:Factory/.hppc.new.1766/hppc.changes      2023-09-15 
22:10:25.847766434 +0200
@@ -1,0 +2,12 @@
+Thu Sep 14 15:27:47 UTC 2023 - Fridrich Strba <fst...@suse.com>
+
+- Added patch:
+  * hppc-timestamp.patch
+    + use SOURCE_DATE_EPOCH for timestamp in generated files
+
+-------------------------------------------------------------------
+Wed Sep 13 06:30:04 UTC 2023 - Fridrich Strba <fst...@suse.com>
+
+- Reproducible builds: use SOURCE_DATE_EPOCH for timestamp
+
+-------------------------------------------------------------------

New:
----
  hppc-timestamp.patch

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

Other differences:
------------------
++++++ hppc.spec ++++++
--- /var/tmp/diff_new_pack.9AVcfG/_old  2023-09-15 22:10:26.903804192 +0200
+++ /var/tmp/diff_new_pack.9AVcfG/_new  2023-09-15 22:10:26.903804192 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package hppc
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,6 +24,7 @@
 Group:          Development/Libraries/Java
 URL:            https://labs.carrotsearch.com/hppc.html
 Source0:        https://github.com/carrotsearch/hppc/archive/%{version}.tar.gz
+Patch0:         hppc-timestamp.patch
 BuildRequires:  fdupes
 BuildRequires:  maven-local
 BuildRequires:  mvn(com.google.guava:guava)
@@ -63,6 +64,8 @@
 
 %prep
 %setup -q
+%patch0 -p1
+
 find . -name "*.class" -print -delete
 find . -name "*.jar" -print -delete
 
@@ -89,7 +92,9 @@
 %{mvn_package} :%{name}-template-processor %{name}-templateprocessor
 
 %build
-%{mvn_build} -f -- -Dsource=8
+%{mvn_build} -f -- \
+    -Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date 
+%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
+    -Dsource=8
 
 %install
 %mvn_install

++++++ hppc-timestamp.patch ++++++
--- 
hppc-0.7.1/hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java
       2015-05-07 09:32:26.000000000 +0200
+++ 
hppc-0.7.1/hppc-template-processor/src/main/java/com/carrotsearch/hppc/generator/TemplateOptions.java
       2023-09-14 16:19:35.996103476 +0200
@@ -88,7 +88,11 @@
    */
   public String getTimeNow() {
     SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ", 
Locale.ROOT);
-    return format.format(new Date());
+    Date now = new Date();
+    if (System.getenv("SOURCE_DATE_EPOCH") != null) {
+      now = new Date(1000 * 
Long.parseLong(System.getenv("SOURCE_DATE_EPOCH")));
+    }
+    return format.format(now);
   }
 
   public String getTemplateFile() {

Reply via email to