[packages/lxd] Rel 2: no PIE for static CGO_ENABLED=0 binaries, fixes i686 build

arekm arekm at pld-linux.org
Sat Nov 21 03:17:03 CET 2026


commit 6d1df40e9382c934d4cb6ebcc947d05f1b654d8a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Nov 21 00:56:00 2026 +0100

    Rel 2: no PIE for static CGO_ENABLED=0 binaries, fixes i686 build

 lxd.spec | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lxd.spec b/lxd.spec
index 6a81d09..3e5565c 100644
--- a/lxd.spec
+++ b/lxd.spec
@@ -1,7 +1,7 @@
 Summary:	Fast, dense and secure container and virtual machine management
 Name:		lxd
 Version:	6.10.1
-Release:	1
+Release:	2
 License:	AGPL v3.0
 Group:		Applications/System
 Source0:	https://github.com/canonical/lxd/archive/refs/tags/%{name}-%{version}.tar.gz
@@ -134,7 +134,7 @@ export CGO_LDFLAGS_ALLOW="-Wl,-z,now"
 # cgo and tags as in upstream Makefile
 %goinstall -tags libsqlite3 ./lxd
 %goinstall ./lxc ./fuidshift
-CGO_ENABLED=0 %goinstall -tags netgo ./lxd-user ./lxd-benchmark
+CGO_ENABLED=0 GOFLAGS="-trimpath -mod=vendor" %goinstall -tags netgo ./lxd-user ./lxd-benchmark
 # lxd-agent runs in VM guests and lxd-convert on migration sources of any
 # distribution: fully static, and PIE would add an ld.so interpreter
 CGO_ENABLED=0 GOFLAGS="-trimpath -mod=vendor" %goinstall -tags netgo ./lxd-convert
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lxd.git/commitdiff/6d1df40e9382c934d4cb6ebcc947d05f1b654d8a



More information about the pld-cvs-commit mailing list