Github messages for voidlinux
 help / color / mirror / Atom feed
From: zdykstra <zdykstra@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] prometheus: update to 2.48.1.
Date: Mon, 15 Jan 2024 17:09:18 +0100	[thread overview]
Message-ID: <20240115160918.D234126880@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-47935@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 833 bytes --]

There is an updated pull request by zdykstra against master on the void-packages repository

https://github.com/zdykstra/void-packages prometheus-2.48.1
https://github.com/void-linux/void-packages/pull/47935

prometheus: update to 2.48.1.
#### Testing the changes
- I tested the changes in this PR: **YES**

The current package of Prometheus in the repos has missing version information. Pointing Version flags to github.com/prometheus/common sets things correctly:

```
# prometheus --version
prometheus, version 2.48.1 (branch: 2.48.1, revision: 2.48.1)
  build user:       VoidLinux
  build date:       20231228-02:47:53
  go version:       go1.21.5
  platform:         linux/amd64
  tags:             netgo,builtinassets
```

A patch file from https://github.com/void-linux/void-packages/pull/47935.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-prometheus-2.48.1-47935.patch --]
[-- Type: text/x-diff, Size: 1910 bytes --]

From 0a916c841d06618be231e6a1fc8822818cc090de Mon Sep 17 00:00:00 2001
From: Zach Dykstra <dykstra.zachary@gmail.com>
Date: Wed, 27 Dec 2023 20:47:53 -0600
Subject: [PATCH] prometheus: update to 2.49.0.

---
 srcpkgs/prometheus/template | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/srcpkgs/prometheus/template b/srcpkgs/prometheus/template
index ca5a48fcee0c4..a9959fc44cdff 100644
--- a/srcpkgs/prometheus/template
+++ b/srcpkgs/prometheus/template
@@ -1,14 +1,15 @@
 # Template file for 'prometheus'
 pkgname=prometheus
-version=2.43.0
-revision=3
+version=2.49.0
+revision=1
 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"
@@ -18,7 +19,7 @@ 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=ce401ebfa25d2aa5caf4a54f4633f4abe5c3687f2975beb15c3512f7d6cb5ca4
 
 system_accounts="_prometheus"
 

  parent reply	other threads:[~2024-01-15 16:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-28  3:19 [PR PATCH] " zdykstra
2024-01-03 16:36 ` [PR REVIEW] " Duncaen
2024-01-03 16:57 ` zdykstra
2024-01-03 16:57 ` [PR PATCH] [Updated] " zdykstra
2024-01-15 16:09 ` zdykstra [this message]
2024-01-15 18:13 ` [PR PATCH] [Updated] prometheus: update to 2.49.0 zdykstra
2024-01-29 15:24 ` [PR PATCH] [Merged]: " ahesford

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240115160918.D234126880@inbox.vuxu.org \
    --to=zdykstra@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).