Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
libvirt
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Libvirt Packaging Team
libvirt
Commits
12ebaf78
You need to sign in or sign up before continuing.
Commit
12ebaf78
authored
3 months ago
by
Andrea Bolognani
Browse files
Options
Downloads
Patches
Plain Diff
patches: Add backport/virsysinfo-fix-RISC-V-detection.patch
Closes: #1093823
parent
06d80446
No related branches found
No related tags found
1 merge request
!253
Prepare 11.0.0-2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/patches/backport/virsysinfo-fix-RISC-V-detection.patch
+32
-0
32 additions, 0 deletions
...an/patches/backport/virsysinfo-fix-RISC-V-detection.patch
debian/patches/series
+1
-0
1 addition, 0 deletions
debian/patches/series
with
33 additions
and
0 deletions
debian/patches/backport/virsysinfo-fix-RISC-V-detection.patch
0 → 100644
+
32
−
0
View file @
12ebaf78
From: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Date: Wed, 22 Jan 2025 12:20:08 +0100
Subject: virsysinfo: fix RISC-V detection
The correct compiler define to detect the RISC-V architecture is __riscv.
Fixes: b902cfece0db ("virsysinfo: Try reading DMI table")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
(cherry picked from commit 3e9440dbcb39846c96ada55bd29ff6ae9fff6d93)
Bug-Debian: https://bugs.debian.org/1093823
Forwarded: not-needed
Origin: https://gitlab.com/libvirt/libvirt/-/commit/3e9440dbcb39846c96ada55bd29ff6ae9fff6d93
---
src/util/virsysinfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/virsysinfo.c b/src/util/virsysinfo.c
index d9b2b5e..b7413c3 100644
--- a/src/util/virsysinfo.c
+++ b/src/util/virsysinfo.c
@@ -1254,7 +1254,7 @@
virSysinfoRead(void)
(defined(__x86_64__) || \
defined(__i386__) || \
defined(__amd64__) || \
- defined(__riscv__) || \
+ defined(__riscv) || \
defined(__mips__) || \
defined(__loongarch__))
return virSysinfoReadDMI();
This diff is collapsed.
Click to expand it.
debian/patches/series
+
1
−
0
View file @
12ebaf78
backport/virsysinfo-fix-RISC-V-detection.patch
debian/Debianize-libvirt-guests.patch
debian/apparmor_profiles_local_include.patch
debian/Use-sensible-editor-by-default.patch
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment