public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Diego Herrera <dherrera@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/incus] main: Backport upstream patch to fix database generation for tests
Date: Mon, 28 Sep 2026 01:01:26 GMT	[thread overview]
Message-ID: <179055728688.1.8201087672396000209.rpms-incus-ab7e35cef822@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-09-28  1:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=179055728688.1.8201087672396000209.rpms-incus-ab7e35cef822@fedoraproject.org \
    --to=dherrera@fedoraproject.org \
    --cc=git-commits@fedoraproject.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