[PATCH] rpm: disable zfs on Fedora >= 43

Daniel P. Berrangé via Devel posted 1 patch 4 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20250508102020.444836-1-berrange@redhat.com
libvirt.spec.in | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
[PATCH] rpm: disable zfs on Fedora >= 43
Posted by Daniel P. Berrangé via Devel 4 months ago
From: Daniel P. Berrangé <berrange@redhat.com>

The zfs-fuse package has been dead upstream for a long time and is
now retired in Fedora rawhide.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
 libvirt.spec.in | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/libvirt.spec.in b/libvirt.spec.in
index 9217820137..e12bec18d5 100644
--- a/libvirt.spec.in
+++ b/libvirt.spec.in
@@ -85,8 +85,8 @@
     %endif
 %endif
 
-# Fedora has zfs-fuse
-%if 0%{?fedora}
+# Fedora had zfs-fuse until F43
+%if 0%{?fedora} && 0%{?fedora} < 43
     %define with_storage_zfs      0%{!?_without_storage_zfs:1}
 %else
     %define with_storage_zfs      0
@@ -700,6 +700,9 @@ Requires: /usr/bin/qemu-img
 Obsoletes: libvirt-daemon-driver-storage-rbd < 5.2.0
     %endif
 Obsoletes: libvirt-daemon-driver-storage-sheepdog < 8.8.0
+    %if !%{with_storage_zfs}
+Obsoletes: libvirt-daemon-driver-storage-zfs < 11.4.0
+    %endif
 
 %description daemon-driver-storage-core
 The storage driver plugin for the libvirtd daemon, providing
-- 
2.49.0
Re: [PATCH] rpm: disable zfs on Fedora >= 43
Posted by Michal Prívozník via Devel 4 months ago
On 5/8/25 12:20, Daniel P. Berrangé via Devel wrote:
> From: Daniel P. Berrangé <berrange@redhat.com>
> 
> The zfs-fuse package has been dead upstream for a long time and is
> now retired in Fedora rawhide.
> 
> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
> ---
>  libvirt.spec.in | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>

Michal