Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package sbt for openSUSE:Factory checked in at 2023-09-20 13:30:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/sbt (Old) and /work/SRC/openSUSE:Factory/.sbt.new.16627 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "sbt" Wed Sep 20 13:30:53 2023 rev:18 rq:1112367 version:0.13.18 Changes: -------- --- /work/SRC/openSUSE:Factory/sbt/sbt.changes 2023-09-06 19:04:29.497030083 +0200 +++ /work/SRC/openSUSE:Factory/.sbt.new.16627/sbt.changes 2023-09-20 13:34:39.602404301 +0200 @@ -1,0 +2,7 @@ +Tue Sep 19 19:06:25 UTC 2023 - Fridrich Strba <fst...@suse.com> + +- Added patch: + * reproducible-timestamp.patch + + use SOURCE_DATE_EPOCH for timestamps if it is set + +------------------------------------------------------------------- New: ---- reproducible-timestamp.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ sbt.spec ++++++ --- /var/tmp/diff_new_pack.6KdOJi/_old 2023-09-20 13:34:48.490722731 +0200 +++ /var/tmp/diff_new_pack.6KdOJi/_new 2023-09-20 13:34:48.490722731 +0200 @@ -103,6 +103,7 @@ Patch3: sbt-new-ivy.patch Patch4: sbt-0.13.13-sxr.patch Patch5: sbt-maven-resolver.patch +Patch6: reproducible-timestamp.patch BuildRequires: apache-ivy #Source650: https://oss.sonatype.org/service/local/repositories/releases/content/org/scala-sbt/sbt-giter8-resolver/sbt-giter8-resolver_%{scala_short_version}/0.1.0/sbt-giter8-resolver_%{scala_short_version}-0.1.0.jar #Source660: https://oss.sonatype.org/service/local/repositories/releases/content/org/foundweekends/giter8/giter8_%{scala_short_version}/0.7.1/giter8_%{scala_short_version}-0.7.1.jar @@ -332,6 +333,7 @@ %endif %patch5 -p1 +%patch6 -p1 sed -i -e '/% "test"/d' project/Util.scala ++++++ reproducible-timestamp.patch ++++++ --- sbt-0.13.18/ivy/src/main/scala/sbt/ProjectResolver.scala 2023-09-14 19:14:50.159288785 +0200 +++ sbt-0.13.18/ivy/src/main/scala/sbt/ProjectResolver.scala 2023-09-17 16:10:27.587598975 +0200 @@ -38,7 +38,9 @@ def report(revisionId: ModuleRevisionId): MetadataArtifactDownloadReport = { - val artifact = DefaultArtifact.newIvyArtifact(revisionId, new Date) + val sde = System.getenv("SOURCE_DATE_EPOCH") + val now = if (sde != null) (new Date(1000 * sde.toLong)) else (new Date) + val artifact = DefaultArtifact.newIvyArtifact(revisionId, now) val r = new MetadataArtifactDownloadReport(artifact) r.setSearched(false) r.setDownloadStatus(DownloadStatus.FAILED) --- sbt-0.13.18/project/Util.scala 2023-09-14 19:14:50.189288995 +0200 +++ sbt-0.13.18/project/Util.scala 2023-09-17 16:10:13.460829055 +0200 @@ -62,7 +62,9 @@ import java.util.{ Date, TimeZone } val formatter = new java.text.SimpleDateFormat("yyyyMMdd'T'HHmmss") formatter.setTimeZone(TimeZone.getTimeZone("GMT")) - val timestamp = formatter.format(new Date) + val sde = System.getenv("SOURCE_DATE_EPOCH") + val now = if (sde != null) (new Date(1000 * sde.toLong)) else (new Date) + val timestamp = formatter.format(now) val content = versionLine(version) + "\ntimestamp=" + timestamp val f = dir / "xsbt.version.properties" if (!f.exists || f.lastModified < lastCompilationTime(analysis) || !containsVersion(f, version)) {