Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages /
prometheus-elasticsearch-exporter
Commits:
61946657 by Jelle van der Waa at 2024-11-11T21:28:01+01:00
Fix failing build on not quoting LDFLAGS
- - - - -
e7bf4f09 by Jelle van der Waa at 2024-11-11T21:31:44+01:00
upgpkg: 1.7.0-2: Make reproducible by setting SOURCE_DATE_EPOCH correctly
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = prometheus-elasticsearch-exporter
pkgdesc = Elasticsearch stats exporter for Prometheus
pkgver = 1.7.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/prometheus-community/elasticsearch_exporter
arch = x86_64
license = Apache
=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
pkgname=prometheus-elasticsearch-exporter
pkgver=1.7.0
-pkgrel=1
+pkgrel=2
pkgdesc='Elasticsearch stats exporter for Prometheus'
url='https://github.com/prometheus-community/elasticsearch_exporter'
@@ -33,12 +33,12 @@ build() {
-buildmode=pie \
-mod=readonly \
-modcacherw \
- -ldflags "-linkmode external -extldflags ${LDFLAGS} \
+ -ldflags "-linkmode external -extldflags \"${LDFLAGS}\" \
-X github.com/prometheus/common/version.Version=$pkgver \
-X github.com/prometheus/common/version.Revision=$pkgver \
-X github.com/prometheus/common/version.Branch=tarball \
-X github.com/prometheus/common/version.BuildUser=someone@builder \
- -X github.com/prometheus/common/version.BuildDate=$(date
--date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%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})" \
.
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/prometheus-elasticsearch-exporter/-/compare/0878f7f996c8b40e0572d10c0fc755dad813b97b...e7bf4f09cb4d89f9bcc6dfc9440875b7efd7569d
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/prometheus-elasticsearch-exporter/-/compare/0878f7f996c8b40e0572d10c0fc755dad813b97b...e7bf4f09cb4d89f9bcc6dfc9440875b7efd7569d
You're receiving this email because of your account on gitlab.archlinux.org.