[arch-commits] Commit in prometheus/trunk (PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Sun Apr 18 15:52:08 UTC 2021


    Date: Sunday, April 18, 2021 @ 15:52:08
  Author: jelle
Revision: 412863

Fix build date to make it reproducible

Modified:
  prometheus/trunk/PKGBUILD

----------+
 PKGBUILD |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-04-18 14:24:30 UTC (rev 412862)
+++ PKGBUILD	2021-04-18 15:52:08 UTC (rev 412863)
@@ -2,7 +2,7 @@
 
 pkgname=prometheus
 pkgver=2.26.0
-pkgrel=1
+pkgrel=2
 
 pkgdesc='An open-source systems monitoring and alerting toolkit'
 url='https://prometheus.io'
@@ -32,7 +32,7 @@
     -X github.com/prometheus/common/version.Revision=$pkgver \
     -X github.com/prometheus/common/version.Branch=tarball \
     -X github.com/prometheus/common/version.BuildUser=someone at builder \
-    -X github.com/prometheus/common/version.BuildDate=$(date -d@"$SOURCE_DATE_EPOCH" +%Y%m%d-%H:%M:%S)"
+    -X github.com/prometheus/common/version.BuildDate=$(date -u '+%Y%m%d-%H:%M:%S' --date=@${SOURCE_DATE_EPOCH})"
 
   make assets
   go build \



More information about the arch-commits mailing list