From: tsndqst <tsndqst@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] pgmetrics: update to 1.16.0.
Date: Thu, 04 Jan 2024 03:37:12 +0100 [thread overview]
Message-ID: <20240104023712.7abXNLqLbd40zmBIp3HbTNFqbnN3z1UPbWP2MlON65w@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-46445@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 749 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages pgmetrics-ldflags
https://github.com/void-linux/void-packages/pull/46445
pgmetrics: update to 1.16.0.
I changed the template so now pgmetrics shows the version string.
```
$ pgmetrics -V
pgmetrics 1.16.0
```
#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/46445.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pgmetrics-ldflags-46445.patch --]
[-- Type: text/x-diff, Size: 886 bytes --]
From c5921d22ef88aadc9cb12327e49a69cfe7eaca95 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Thu, 9 Mar 2023 20:35:48 -0600
Subject: [PATCH] pgmetrics: set version via go_ldflags
---
srcpkgs/pgmetrics/template | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/srcpkgs/pgmetrics/template b/srcpkgs/pgmetrics/template
index fcd6f02711209..47fc91c8f4177 100644
--- a/srcpkgs/pgmetrics/template
+++ b/srcpkgs/pgmetrics/template
@@ -1,10 +1,11 @@
# Template file for 'pgmetrics'
pkgname=pgmetrics
version=1.16.0
-revision=1
+revision=2
build_style=go
go_import_path="github.com/rapidloop/pgmetrics"
go_package="./cmd/pgmetrics"
+go_ldflags="-X main.version=${version} -extldflags '-static'"
short_desc="Collect and display statistics from running Postgresql"
maintainer="Gerardo Di iorio <arete74@gmail.com>"
license="Apache-2.0"
next prev parent reply other threads:[~2024-01-04 2:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-05 13:12 [PR PATCH] " tsndqst
2024-01-04 1:46 ` github-actions
2024-01-04 2:37 ` tsndqst [this message]
2024-04-05 1:45 ` github-actions
2024-04-19 1:45 ` [PR PATCH] [Closed]: " github-actions
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=20240104023712.7abXNLqLbd40zmBIp3HbTNFqbnN3z1UPbWP2MlON65w@z \
--to=tsndqst@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).