Disable libblkio on i686 (RHBZ#2229372)

This commit is contained in:
Richard W.M. Jones 2023-08-05 12:25:38 +01:00
parent 192bd7dee0
commit cba3facac0

View File

@ -21,6 +21,14 @@
%global have_ocaml 1 %global have_ocaml 1
%endif %endif
# We don't yet have libblkio on RHEL.
# libblkio is broken on i686: https://bugzilla.redhat.com/2229372
%if !0%{?rhel}
%ifnarch %{ix86}
%global have_blkio 1
%endif
%endif
# Architectures where we run the complete test suite including # Architectures where we run the complete test suite including
# the libguestfs tests. # the libguestfs tests.
# #
@ -101,6 +109,8 @@ BuildRequires: e2fsprogs, e2fsprogs-devel
%if !0%{?rhel} %if !0%{?rhel}
BuildRequires: xorriso BuildRequires: xorriso
BuildRequires: rb_libtorrent-devel BuildRequires: rb_libtorrent-devel
%endif
%if 0%{?have_blkio}
BuildRequires: libblkio-devel BuildRequires: libblkio-devel
%endif %endif
BuildRequires: bash-completion BuildRequires: bash-completion
@ -259,7 +269,7 @@ This package contains example plugins for %{name}.
# The plugins below have non-trivial dependencies are so are # The plugins below have non-trivial dependencies are so are
# packaged separately. # packaged separately.
%if !0%{?rhel} %if 0%{?have_blkio}
%package blkio-plugin %package blkio-plugin
Summary: libblkio NVMe, vhost-user, vDPA, VFIO plugin for %{name} Summary: libblkio NVMe, vhost-user, vDPA, VFIO plugin for %{name}
Requires: %{name}-server%{?_isa} = %{version}-%{release} Requires: %{name}-server%{?_isa} = %{version}-%{release}
@ -695,7 +705,6 @@ export PYTHON=%{__python3}
--enable-ruby \ --enable-ruby \
--enable-tcl \ --enable-tcl \
--enable-torrent \ --enable-torrent \
--with-libblkio \
--with-ext2 \ --with-ext2 \
--with-iso \ --with-iso \
--with-libvirt \ --with-libvirt \
@ -705,11 +714,15 @@ export PYTHON=%{__python3}
--disable-ruby \ --disable-ruby \
--disable-tcl \ --disable-tcl \
--disable-torrent \ --disable-torrent \
--without-libblkio \
--without-ext2 \ --without-ext2 \
--without-iso \ --without-iso \
--without-libvirt \ --without-libvirt \
%endif %endif
%if 0%{?have_blkio}
--with-libblkio \
%else
--without-libblkio \
%endif
%ifarch x86_64 %ifarch x86_64
--enable-vddk \ --enable-vddk \
%else %else
@ -887,7 +900,7 @@ export LIBGUESTFS_TRACE=1
%{_mandir}/man1/nbdkit-example*-plugin.1* %{_mandir}/man1/nbdkit-example*-plugin.1*
%if !0%{?rhel} %if 0%{?have_blkio}
%files blkio-plugin %files blkio-plugin
%doc README.md %doc README.md
%license LICENSE %license LICENSE
@ -1231,6 +1244,7 @@ export LIBGUESTFS_TRACE=1
%changelog %changelog
* Sat Aug 05 2023 Richard W.M. Jones <rjones@redhat.com> - 1.35.9-1 * Sat Aug 05 2023 Richard W.M. Jones <rjones@redhat.com> - 1.35.9-1
- New upstream development version 1.35.9 - New upstream development version 1.35.9
- Disable libblkio on i686 (RHBZ#2229372)
* Tue Aug 01 2023 Richard W.M. Jones <rjones@redhat.com> - 1.35.8-1 * Tue Aug 01 2023 Richard W.M. Jones <rjones@redhat.com> - 1.35.8-1
- New upstream development version 1.35.8 - New upstream development version 1.35.8