Reapply "prometheus: update to 2.49.1."

The "too many open files" issue affects the reverted version anyway, so
we'll try just increasing the ulimit.

This reverts commit b779aacd12.
This commit is contained in:
Andrew J. Hesford 2024-01-29 12:06:31 -05:00
parent b779aacd12
commit a6f258f335

View file

@ -1,16 +1,15 @@
# Template file for 'prometheus'
pkgname=prometheus
# https://build.voidlinux.org/builders/x86_64_builder/builds/46045/steps/shell_3/logs/stdio
reverts="2.49.1_1"
version=2.43.0
revision=4
version=2.49.1
revision=2
build_style=go
go_import_path="github.com/prometheus/prometheus"
go_package="github.com/prometheus/prometheus/cmd/prometheus github.com/prometheus/prometheus/cmd/promtool"
go_ldflags="-X ${go_import_path}/version.Version=${version}
-X ${go_import_path}/version.Revision=${version}
-X ${go_import_path}/version.Branch=${version}
-X ${go_import_path}/version.BuildUser=VoidLinux"
go_ldflags="-X github.com/prometheus/common/version.Version=${version}
-X github.com/prometheus/common/version.Revision=${version}
-X github.com/prometheus/common/version.Branch=${version}
-X github.com/prometheus/common/version.BuildDate=$(date --date "@$SOURCE_DATE_EPOCH" "+%Y%m%d-%H:%M:%S")
-X github.com/prometheus/common/version.BuildUser=VoidLinux"
go_build_tags="netgo,builtinassets"
hostmakedepends="yarn"
conf_files="/etc/prometheus/prometheus.yml"
@ -20,14 +19,14 @@ license="Apache-2.0, MIT"
homepage="https://prometheus.io/"
changelog="https://raw.githubusercontent.com/prometheus/prometheus/master/CHANGELOG.md"
distfiles="https://github.com/prometheus/prometheus/archive/v${version}.tar.gz"
checksum=0cd8860e5f10d0ecb35d20d23252ddc459e8319882dc163bf71b723e3bcafd71
checksum=985d7f45ed3d16e23a30eae490c17911518fae96cba0245d493eb07097a10b3b
system_accounts="_prometheus"
make_dirs="/var/lib/prometheus 700 _prometheus _prometheus"
pre_build() {
CGO_ENABLED=0 GOARCH= make assets assets-compress
( ulimit -n 4096 && CGO_ENABLED=0 GOARCH= make assets assets-compress )
}
post_install() {