From 9a816d87d546057f77cafda179345f1200c4106d Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Fri, 15 Aug 2025 18:00:12 -0500 Subject: [PATCH 1/7] Rebuild for golang-1.25.0 --- incus.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/incus.spec b/incus.spec index 8d5da77..cc932df 100644 --- a/incus.spec +++ b/incus.spec @@ -18,7 +18,7 @@ Version: 6.15 %global golicenses COPYING Name: incus -Release: 1%{?dist} +Release: 2%{?dist} Summary: Powerful system container and virtual machine manager License: Apache-2.0 URL: https://linuxcontainers.org/incus @@ -456,6 +456,9 @@ export CGO_LDFLAGS_ALLOW="(-Wl,-wrap,pthread_create)|(-Wl,-z,now)" %endif %changelog +* Fri Aug 15 2025 Maxwell G - 6.15-2 +- Rebuild for golang-1.25.0 + * Sun Aug 03 2025 Robby Callicotte - 6.15-1 - Updated to incus-6.15 From 95877ff3c19a45a1860abc28a573df8e64d4c78c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20S=C3=A1ez?= Date: Fri, 10 Oct 2025 14:40:53 +0200 Subject: [PATCH 2/7] rebuild --- incus.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/incus.spec b/incus.spec index cc932df..dbcc770 100644 --- a/incus.spec +++ b/incus.spec @@ -18,7 +18,7 @@ Version: 6.15 %global golicenses COPYING Name: incus -Release: 2%{?dist} +Release: 3%{?dist} Summary: Powerful system container and virtual machine manager License: Apache-2.0 URL: https://linuxcontainers.org/incus @@ -456,6 +456,9 @@ export CGO_LDFLAGS_ALLOW="(-Wl,-wrap,pthread_create)|(-Wl,-z,now)" %endif %changelog +* Fri Oct 10 2025 Alejandro Sáez - 6.15-3 +- rebuild + * Fri Aug 15 2025 Maxwell G - 6.15-2 - Rebuild for golang-1.25.0 From 72e134919904d9636c402eb0eaf8363feeeff1ea Mon Sep 17 00:00:00 2001 From: Robby Callicotte Date: Sun, 2 Nov 2025 21:22:51 -0600 Subject: [PATCH 3/7] Updated to new version 6.18 --- incus.spec | 7 +++++-- sources | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/incus.spec b/incus.spec index dbcc770..0b2c63d 100644 --- a/incus.spec +++ b/incus.spec @@ -10,7 +10,7 @@ # https://github.com/lxc/incus %global goipath github.com/lxc/incus -Version: 6.15 +Version: 6.18 %gometa @@ -18,7 +18,7 @@ Version: 6.15 %global golicenses COPYING Name: incus -Release: 3%{?dist} +Release: 1%{?dist} Summary: Powerful system container and virtual machine manager License: Apache-2.0 URL: https://linuxcontainers.org/incus @@ -456,6 +456,9 @@ export CGO_LDFLAGS_ALLOW="(-Wl,-wrap,pthread_create)|(-Wl,-z,now)" %endif %changelog +* Mon Nov 03 2025 Robby Callicotte - 6.18-1 +- Updated to incus-6.18 + * Fri Oct 10 2025 Alejandro Sáez - 6.15-3 - rebuild diff --git a/sources b/sources index aa2b2fe..76f54f1 100644 --- a/sources +++ b/sources @@ -1,4 +1,4 @@ -SHA512 (incus-6.15.tar.xz) = 7561abce8eb9c01764aca9bb5477028439c05f6c1c20637f288028be93f4bc0d74a36af76f7ad0e35028dfe40e2a0bb2d7b4a363d1da35fe657072f5d847c78e +SHA512 (incus-6.18.tar.xz) = 619fb28dbcfbd7fca93a5941b77c6106f8489f277167e44f131a2816ba3cab6519a7103cf92714fcd9c78ff06105bc1999982c6b6dcb4e8478646aac9c83fbec SHA512 (swagger-ui-5.21.0-bundle.js) = 984d79438a77a60d2cfc380985adb9b43f629bac8615c3049016795c3caccbb7a326158850db5c0019810fb884ef6f14f423e62aceb9abb5743c2717f25d1cc8 SHA512 (swagger-ui-5.21.0.css) = b7d6bf72e589b35c64545ca5c5dd6486a31b4e5ac76263b86b24b2550219afe55e565b6b3bd8dd2c06fdcdbe13fd4935d96bc8653426681d7bb13aa8c71b203d SHA512 (swagger-ui-5.21.0-standalone-preset.js) = 3a97d1c95a309da4d97c52f250cbf026c340e39071d259b221c447a90aeaeca25f1e85522c11a9a2d18b49f911172152eac79e15f13224591516d60d6bd5e346 From ae99518c770c1c869d5a7da59d735b8585ed350b Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Sat, 6 Dec 2025 07:27:44 -0500 Subject: [PATCH 4/7] Build incus-agent as a fully statically linked binary (rhbz#2419661) --- incus.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/incus.spec b/incus.spec index 0b2c63d..944b6e1 100644 --- a/incus.spec +++ b/incus.spec @@ -18,7 +18,7 @@ Version: 6.18 %global golicenses COPYING Name: incus -Release: 1%{?dist} +Release: 2%{?dist} Summary: Powerful system container and virtual machine manager License: Apache-2.0 URL: https://linuxcontainers.org/incus @@ -64,6 +64,7 @@ Patch1002: incus-0.2-doc-Remove-downloads-from-sphinx-build.patch %global selinuxtype targeted BuildRequires: gettext +BuildRequires: glibc-static BuildRequires: help2man BuildRequires: pkgconfig(bash-completion) BuildRequires: pkgconfig(cowsql) @@ -348,7 +349,11 @@ done #export CGO_ENABLED=0 BUILDTAGS="netgo" %gobuild -o %{gobuilddir}/bin/incus-migrate %{goipath}/cmd/incus-migrate + +# Build incus-agent statically (cf. rhbz#2419661) +%define __golang_extldflags -static BUILDTAGS="agent netgo" %gobuild -o %{gobuilddir}/bin/incus-agent %{goipath}/cmd/incus-agent +%undefine __golang_extldflags #unset CGO_ENABLED # build shell completions @@ -456,6 +461,9 @@ export CGO_LDFLAGS_ALLOW="(-Wl,-wrap,pthread_create)|(-Wl,-z,now)" %endif %changelog +* Sat Dec 06 2025 Neal Gompa - 6.18-2 +- Build incus-agent as a fully statically linked binary (rhbz#2419661) + * Mon Nov 03 2025 Robby Callicotte - 6.18-1 - Updated to incus-6.18 From 57752fe4999640add4fb37b70159dfc3972ccc95 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Sun, 7 Dec 2025 06:55:11 -0500 Subject: [PATCH 5/7] Build incus-migrate and incus-migrate with cgo disabled --- incus.spec | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/incus.spec b/incus.spec index 944b6e1..60bff39 100644 --- a/incus.spec +++ b/incus.spec @@ -17,8 +17,18 @@ Version: 6.18 %global godocs AUTHORS CODE_OF_CONDUCT.md CONTRIBUTING.md README.md SECURITY.md %global golicenses COPYING + +# Set build macro for static builds +%define gobuild_ldflags_static ${GO_LDFLAGS-${LDFLAGS-}} %{?currentgoldflags} -B 0x$(echo "%{name}-%{version}-%{release}-${SOURCE_DATE_EPOCH:-}" | sha1sum | cut -d ' ' -f1) -compressdwarf=false +%define gobuildflags_static() %{expand:%{gobuild_baseflags} -ldflags "%{gobuild_ldflags_static}"} +%define gobuild_static(-) %{expand: + %{?gobuilddir:GOPATH="%{gobuilddir}:${GOPATH:+${GOPATH}:}%{?gopath}"} %{?gomodulesmode} \\ + CGO_ENABLED=0 go build %{gobuildflags_static} %{?**}; +} + + Name: incus -Release: 2%{?dist} +Release: 3%{?dist} Summary: Powerful system container and virtual machine manager License: Apache-2.0 URL: https://linuxcontainers.org/incus @@ -347,14 +357,9 @@ for cmd in incus fuidshift incus-benchmark lxc-to-incus lxd-to-incus; do BUILDTAGS="libsqlite3" %gobuild -o %{gobuilddir}/bin/$cmd %{goipath}/cmd/$cmd done -#export CGO_ENABLED=0 -BUILDTAGS="netgo" %gobuild -o %{gobuilddir}/bin/incus-migrate %{goipath}/cmd/incus-migrate - -# Build incus-agent statically (cf. rhbz#2419661) -%define __golang_extldflags -static -BUILDTAGS="agent netgo" %gobuild -o %{gobuilddir}/bin/incus-agent %{goipath}/cmd/incus-agent -%undefine __golang_extldflags -#unset CGO_ENABLED +# Build incus-migrate and incus-agent statically (cf. rhbz#2419661) +BUILDTAGS="netgo" %gobuild_static -o %{gobuilddir}/bin/incus-migrate %{goipath}/cmd/incus-migrate +BUILDTAGS="agent netgo" %gobuild_static -o %{gobuilddir}/bin/incus-agent %{goipath}/cmd/incus-agent # build shell completions mkdir %{gobuilddir}/completions @@ -461,6 +466,9 @@ export CGO_LDFLAGS_ALLOW="(-Wl,-wrap,pthread_create)|(-Wl,-z,now)" %endif %changelog +* Sun Dec 07 2025 Neal Gompa - 6.18-3 +- Build incus-migrate and incus-migrate with cgo disabled + * Sat Dec 06 2025 Neal Gompa - 6.18-2 - Build incus-agent as a fully statically linked binary (rhbz#2419661) From 51df6dfcd6b0a7cb16d7bab929bc3a9141841525 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Sun, 7 Dec 2025 07:58:57 -0500 Subject: [PATCH 6/7] Fix gobuild_static for s390x --- incus.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/incus.spec b/incus.spec index 60bff39..f468d43 100644 --- a/incus.spec +++ b/incus.spec @@ -19,8 +19,10 @@ Version: 6.18 # Set build macro for static builds +%define gocompilerflags_static -compiler gc +%define gobuild_baseflags_static %{gocompilerflags_static} -tags="rpm_crashtraceback ${GO_BUILDTAGS-${BUILDTAGS-}}" -a -v %define gobuild_ldflags_static ${GO_LDFLAGS-${LDFLAGS-}} %{?currentgoldflags} -B 0x$(echo "%{name}-%{version}-%{release}-${SOURCE_DATE_EPOCH:-}" | sha1sum | cut -d ' ' -f1) -compressdwarf=false -%define gobuildflags_static() %{expand:%{gobuild_baseflags} -ldflags "%{gobuild_ldflags_static}"} +%define gobuildflags_static() %{expand:%{gobuild_baseflags_static} -ldflags "%{gobuild_ldflags_static}"} %define gobuild_static(-) %{expand: %{?gobuilddir:GOPATH="%{gobuilddir}:${GOPATH:+${GOPATH}:}%{?gopath}"} %{?gomodulesmode} \\ CGO_ENABLED=0 go build %{gobuildflags_static} %{?**}; From 67cf7cd28a676cbeb1d4c928bc967f49a9f41feb Mon Sep 17 00:00:00 2001 From: Robby Callicotte Date: Wed, 10 Dec 2025 16:10:32 -0600 Subject: [PATCH 7/7] Update to 6.19.1 --- incus.spec | 7 +++++-- sources | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/incus.spec b/incus.spec index f468d43..1d850c9 100644 --- a/incus.spec +++ b/incus.spec @@ -10,7 +10,7 @@ # https://github.com/lxc/incus %global goipath github.com/lxc/incus -Version: 6.18 +Version: 6.19.1 %gometa @@ -30,7 +30,7 @@ Version: 6.18 Name: incus -Release: 3%{?dist} +Release: 1%{?dist} Summary: Powerful system container and virtual machine manager License: Apache-2.0 URL: https://linuxcontainers.org/incus @@ -468,6 +468,9 @@ export CGO_LDFLAGS_ALLOW="(-Wl,-wrap,pthread_create)|(-Wl,-z,now)" %endif %changelog +* Wed Dec 10 2025 Robby Callicotte - 6.19.1-1 +- Update to 6.19.1 + * Sun Dec 07 2025 Neal Gompa - 6.18-3 - Build incus-migrate and incus-migrate with cgo disabled diff --git a/sources b/sources index 76f54f1..de5add8 100644 --- a/sources +++ b/sources @@ -1,4 +1,4 @@ -SHA512 (incus-6.18.tar.xz) = 619fb28dbcfbd7fca93a5941b77c6106f8489f277167e44f131a2816ba3cab6519a7103cf92714fcd9c78ff06105bc1999982c6b6dcb4e8478646aac9c83fbec +SHA512 (incus-6.19.1.tar.xz) = ad674c2da425deb5c59847b688e3aa053b1a401920caa25a775795b3cb36d1e30b74f790c719187d1b37dd5c12e4b1cb56f17b6fac946fd3ec83ea5b1000e157 SHA512 (swagger-ui-5.21.0-bundle.js) = 984d79438a77a60d2cfc380985adb9b43f629bac8615c3049016795c3caccbb7a326158850db5c0019810fb884ef6f14f423e62aceb9abb5743c2717f25d1cc8 SHA512 (swagger-ui-5.21.0.css) = b7d6bf72e589b35c64545ca5c5dd6486a31b4e5ac76263b86b24b2550219afe55e565b6b3bd8dd2c06fdcdbe13fd4935d96bc8653426681d7bb13aa8c71b203d SHA512 (swagger-ui-5.21.0-standalone-preset.js) = 3a97d1c95a309da4d97c52f250cbf026c340e39071d259b221c447a90aeaeca25f1e85522c11a9a2d18b49f911172152eac79e15f13224591516d60d6bd5e346