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

Jelle van der Waa jelle at archlinux.org
Mon May 25 14:35:05 UTC 2020


    Date: Monday, May 25, 2020 @ 14:35:04
  Author: jelle
Revision: 387517

upgpkg: prometheus 2.18.1-2

Make prometheus reproducible again, by applying trimpath

Modified:
  prometheus/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-25 11:58:21 UTC (rev 387516)
+++ PKGBUILD	2020-05-25 14:35:04 UTC (rev 387517)
@@ -2,7 +2,7 @@
 
 pkgname=prometheus
 pkgver=2.18.1
-pkgrel=1
+pkgrel=2
 
 pkgdesc='An open-source systems monitoring and alerting toolkit'
 url='https://prometheus.io'
@@ -10,7 +10,7 @@
 license=('Apache')
 
 depends=('glibc')
-makedepends=('go-pie' 'git' 'bzr' 'yarn')
+makedepends=('go' 'git' 'bzr' 'yarn')
 
 backup=('etc/prometheus/prometheus.yml')
 
@@ -34,13 +34,17 @@
 
   make assets
   go build \
-    -gcflags "all=-trimpath=$PWD" \
-    -asmflags "all=-trimpath=$PWD" \
+    -trimpath \
+    -buildmode=pie \
+    -mod=readonly \
+    -modcacherw \
     -ldflags "$LDFLAGS" \
     ./cmd/prometheus
   go build \
-    -gcflags "all=-trimpath=$PWD" \
-    -asmflags "all=-trimpath=$PWD" \
+    -trimpath \
+    -buildmode=pie \
+    -mod=readonly \
+    -modcacherw \
     -ldflags "$LDFLAGS" \
     ./cmd/promtool
 }



More information about the arch-commits mailing list