Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package glassfish-hk2 for openSUSE:Factory checked in at 2023-09-13 20:44:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/glassfish-hk2 (Old) and /work/SRC/openSUSE:Factory/.glassfish-hk2.new.1766 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "glassfish-hk2" Wed Sep 13 20:44:06 2023 rev:6 rq:1110690 version:2.5.0 Changes: -------- --- /work/SRC/openSUSE:Factory/glassfish-hk2/glassfish-hk2.changes 2023-09-10 13:11:16.936809572 +0200 +++ /work/SRC/openSUSE:Factory/.glassfish-hk2.new.1766/glassfish-hk2.changes 2023-09-13 20:44:49.746645969 +0200 @@ -1,0 +2,7 @@ +Tue Sep 12 15:38:18 UTC 2023 - Fridrich Strba <fst...@suse.com> + +- Added patch: + * reproducible-now.patch + + use SOURCE_DATE_EPOCH also for timestamp in generated files + +------------------------------------------------------------------- New: ---- reproducible-now.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ glassfish-hk2.spec ++++++ --- /var/tmp/diff_new_pack.Z9w8fN/_old 2023-09-13 20:44:51.034691760 +0200 +++ /var/tmp/diff_new_pack.Z9w8fN/_new 2023-09-13 20:44:51.034691760 +0200 @@ -34,6 +34,8 @@ Patch1: 0002-Fixed-tests.patch # Module ambiguous in java 11 Patch2: hk2-jdk11.patch +# Reproducible timestamps +Patch3: reproducible-now.patch BuildRequires: maven-local BuildRequires: mvn(aopalliance:aopalliance) BuildRequires: mvn(javax.annotation:javax.annotation-api) @@ -251,6 +253,8 @@ %pom_add_parent "org.glassfish.hk2:hk2-parent:%{version}" $mod done +%patch3 -p1 + # Do not remove test resources find . -name '*.jar' ! -name "gendir.jar" -type f -print -delete find . -name '*.class' -print -delete ++++++ reproducible-now.patch ++++++ --- glassfish-hk2-2.5.0-RELEASE/maven-plugins/hk2-inhabitant-generator/src/main/java/org/jvnet/hk2/generator/internal/GeneratorRunner.java 2023-09-12 17:24:07.673254218 +0200 +++ glassfish-hk2-2.5.0-RELEASE/maven-plugins/hk2-inhabitant-generator/src/main/java/org/jvnet/hk2/generator/internal/GeneratorRunner.java 2023-09-12 17:26:20.997518588 +0200 @@ -378,7 +378,11 @@ private void writeHeader(PrintWriter writer) { writer.println("#"); if (includeDate) { - writer.println("# Generated on " + new Date() + " by hk2-inhabitant-generator"); + Date now = new Date(); + if (System.getenv("SOURCE_DATE_EPOCH") != null) { + now = new Date(1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH"))); + } + writer.println("# Generated on " + now + " by hk2-inhabitant-generator"); } else { writer.println("# Generated by hk2-inhabitant-generator"); --- glassfish-hk2-2.5.0-RELEASE/dependency-visualizer/src/main/java/com/sun/enterprise/tools/visualizer/hk2/DotGenerator.java 2023-09-12 17:28:53.991920312 +0200 +++ glassfish-hk2-2.5.0-RELEASE/dependency-visualizer/src/main/java/com/sun/enterprise/tools/visualizer/hk2/DotGenerator.java 2023-09-12 17:30:06.552427028 +0200 @@ -202,8 +202,12 @@ this.wireOut.println("digraph wiring {"); this.wireOut.println("node [color=grey, style=filled];"); this.wireOut.println("node [fontname=\"Verdana\", size=\"30,30\"];"); + Date now = new Date(); + if (System.getenv("SOURCE_DATE_EPOCH") != null) { + now = new Date(1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH"))); + } String date = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, - DateFormat.SHORT).format(new Date()); + DateFormat.SHORT).format(now); StringBuffer footer = new StringBuffer(); footer.append("graph [ fontname = \"Arial\", fontsize = 26,style = \"bold\", "); footer.append("label = \"\\nGlassFish v3 OSGi bundle wiring relationship diagram");