From a6f258f335f6e724839b5ce7fb3354166c81d161 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Mon, 29 Jan 2024 12:06:31 -0500 Subject: [PATCH] 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 b779aacd123264ca1bd2576bd02f564891123f79. --- srcpkgs/prometheus/template | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/srcpkgs/prometheus/template b/srcpkgs/prometheus/template index bfdc6cd09c4..2f49e3e620d 100644 --- a/srcpkgs/prometheus/template +++ b/srcpkgs/prometheus/template @@ -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() {