pushgateway currently fails to build with:
flag provided but not defined: -Wl,--sort-common
This is caused by the flag parser being more strict.
The official package guidelines have been updated for this behaviour
[1].
[1]: https://wiki.archlinux.org/title/Go_package_guidelines
---
pushgateway/PKGBUILD | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pushgateway/PKGBUILD b/pushgateway/PKGBUILD
index f796f6f..cab51ef 100644
--- a/pushgateway/PKGBUILD+++ b/pushgateway/PKGBUILD
@@ -17,7 +17,7 @@ source=("https://github.com/prometheus/pushgateway/archive/v${pkgver}.tar.gz"
build() {
cd $pkgname-$pkgver
- LDFLAGS="-extldflags $LDFLAGS \+ LDFLAGS="-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 \
base-commit: 730cbf2815884f03a750652ce2d19804f1cfb07a
--
2.45.2