public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/pack] epel10.3: Inject package version via LDFLAGS
@ 2026-09-16 13:45 LuK1337
0 siblings, 0 replies; only message in thread
From: LuK1337 @ 2026-09-16 13:45 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/pack
Branch : epel10.3
Commit : a4d33d2f8cf6fd87a123e84a312f202e47ff6494
Author : LuK1337 <priv.luk@gmail.com>
Date : 2026-09-15T20:58:11+02:00
Stats : +2/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/pack/c/a4d33d2f8cf6fd87a123e84a312f202e47ff6494?branch=epel10.3
Log:
Inject package version via LDFLAGS
Test: Run `pack version`
---
diff --git a/pack.spec b/pack.spec
index f03b9c2..e1e472e 100644
--- a/pack.spec
+++ b/pack.spec
@@ -45,7 +45,8 @@ export CGO_CFLAGS=$CFLAGS
CGO_CFLAGS=$(echo $CGO_CFLAGS | sed 's/-flto=auto//g')
CGO_CFLAGS=$(echo $CGO_CFLAGS | sed 's/-Wp,D_GLIBCXX_ASSERTIONS//g')
CGO_CFLAGS=$(echo $CGO_CFLAGS | sed 's/-specs=\/usr\/lib\/rpm\/redhat\/redhat-annobin-cc1//g')
-export LDFLAGS=''
+# As seen at https://github.com/buildpacks/pack/blob/9321d2c/Makefile#L61
+export LDFLAGS='-X github.com/buildpacks/pack/pkg/client.Version=%{version}'
%ifarch x86_64
export CGO_CFLAGS+=" -m64 -mtune=generic -fcf-protection=full"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-16 13:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-16 13:45 [rpms/pack] epel10.3: Inject package version via LDFLAGS LuK1337
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox