public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/incus] main: Backport upstream patch to fix database generation for tests
@ 2026-09-28 1:01 Diego Herrera
0 siblings, 0 replies; only message in thread
From: Diego Herrera @ 2026-09-28 1:01 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/incus
Branch : main
Commit : ab7e35cef8228463b1d641451db1d5ff76efe93d
Author : Diego Herrera <dherrera@fedoraproject.org>
Date : 2026-09-27T21:56:12-03:00
Stats : +34/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/incus/c/ab7e35cef8228463b1d641451db1d5ff76efe93d?branch=main
Log:
Backport upstream patch to fix database generation for tests
---
diff --git a/incus-7.0.0-fix-db-test.patch b/incus-7.0.0-fix-db-test.patch
new file mode 100644
index 0000000..5df4bab
--- /dev/null
+++ b/incus-7.0.0-fix-db-test.patch
@@ -0,0 +1,26 @@
+From dd5f6d3880fefffdd2e24f9bfd51e6c209826812 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber@stgraber.org>
+Date: Thu, 20 Aug 2026 01:33:00 -0400
+Subject: [PATCH] generate-database: Fix test on Go 1.27
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
+---
+ cmd/generate-database/db/parse_test.go | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/cmd/generate-database/db/parse_test.go b/cmd/generate-database/db/parse_test.go
+index 521fe80855e..ee4d7a7869d 100644
+--- a/cmd/generate-database/db/parse_test.go
++++ b/cmd/generate-database/db/parse_test.go
+@@ -34,7 +34,7 @@ func TestParse(t *testing.T) {
+ pkg, err := packages.Load(&packages.Config{
+ Mode: packages.LoadTypes | packages.NeedTypesInfo,
+ Tests: true,
+- }, "")
++ }, ".")
+ require.NoError(t, err)
+
+ m, err := db.Parse(pkg[1].PkgPath, []*types.Package{pkg[1].Types}, "Teacher", "objects")
diff --git a/incus.spec b/incus.spec
index 1fd1c35..2dec787 100644
--- a/incus.spec
+++ b/incus.spec
@@ -31,7 +31,7 @@ Version: 7.0.0
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,10 @@ Source201: %{swaggerui_source_baseurl}/swagger-ui-bundle.js#/swagger-ui-%{s
Source202: %{swaggerui_source_baseurl}/swagger-ui-standalone-preset.js#/swagger-ui-%{swaggerui_version}-standalone-preset.js
Source203: %{swaggerui_source_baseurl}/swagger-ui.css#/swagger-ui-%{swaggerui_version}.css
+# Upstream fix dd5f6d3880fefffdd2e24f9bfd51e6c209826812
+# generate-database: Fix test on Go 1.27
+Patch0001: incus-7.0.0-fix-db-test.patch
+
# Downstream only patches
## Allow offline builds
Patch1002: incus-0.2-doc-Remove-downloads-from-sphinx-build.patch
@@ -420,6 +424,9 @@ export CGO_LDFLAGS_ALLOW="(-Wl,-wrap,pthread_create)|(-Wl,-z,now)"
%endif
%changelog
+* Sun Sep 27 2026 Diego Herrera <dherrera@fedoraproject.org> - 7.0.0-2
+- Backport upstream patch to fix tests
+
* Sat May 02 2026 Fabian Mettler <fabian@mettler.cc> - 7.0.0-1
- Update to 7.0.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-28 1:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-28 1:01 [rpms/incus] main: Backport upstream patch to fix database generation for tests Diego Herrera
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox