Github messages for voidlinux
 help / color / mirror / Atom feed
From: edganiukov <edganiukov@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] runc: add go_ldflags with the version
Date: Wed, 04 Jan 2023 10:26:06 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41433@inbox.vuxu.org> (raw)

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

There is a new pull request by edganiukov against master on the void-packages repository

https://github.com/edganiukov/void-packages feature/runc-set-binary-version
https://github.com/void-linux/void-packages/pull/41433

runc: add go_ldflags with the version
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

#### Note:
See https://github.com/opencontainers/runc/blob/main/main.go#L20

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-feature/runc-set-binary-version-41433.patch --]
[-- Type: text/x-diff, Size: 716 bytes --]

From 7fa6cc2579102f399e2ff53926639ed7af6b959b Mon Sep 17 00:00:00 2001
From: Ed Ganiukov <ed@gnkv.io>
Date: Wed, 4 Jan 2023 10:20:13 +0100
Subject: [PATCH] runc: add go_ldflags with the version

---
 srcpkgs/runc/template | 1 +
 1 file changed, 1 insertion(+)

diff --git a/srcpkgs/runc/template b/srcpkgs/runc/template
index 2072901d6181..b72dc5d3eefb 100644
--- a/srcpkgs/runc/template
+++ b/srcpkgs/runc/template
@@ -5,6 +5,7 @@ revision=1
 build_style=go
 go_import_path=github.com/opencontainers/runc
 go_build_tags="seccomp apparmor"
+go_ldflags="-X main.version=${version}"
 hostmakedepends="pkg-config go-md2man"
 makedepends="libseccomp-devel"
 short_desc="CLI tool for spawning and running OCI containers"

             reply	other threads:[~2023-01-04  9:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-04  9:26 edganiukov [this message]
2023-01-05 21:36 ` [PR PATCH] [Merged]: " leahneukirchen

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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41433@inbox.vuxu.org \
    --to=edganiukov@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).