From a44ed04ae3613100b201aa83ca339e7dd5000108 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 4 Dec 2023 13:35:36 -0500 Subject: [PATCH] Disable composefs on rhel9 for now Hopefully we'll get it there soon. --- ostree.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ostree.spec b/ostree.spec index 62606bb..dd709a3 100644 --- a/ostree.spec +++ b/ostree.spec @@ -4,6 +4,11 @@ %else %bcond_without tests %endif +%if 0%{?rhel} < 10 + %bcond_with composefs +%else + %bcond_without composefs +%endif Summary: Tool for managing bootable, immutable filesystem trees Name: ostree @@ -46,7 +51,9 @@ BuildRequires: pkgconfig(libsystemd) BuildRequires: /usr/bin/g-ir-scanner BuildRequires: dracut BuildRequires: bison +%if %{with composefs} BuildRequires: pkgconfig(composefs) +%endif # Runtime requirements Requires: dracut @@ -55,7 +62,9 @@ Requires: systemd-units Requires: %{name}-libs%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} # Strictly speaking, this is not a current hard requirement, but it will # be in the future. +%if %{with composefs} Requires: composefs +%endif %description libostree is a shared library designed primarily for @@ -110,7 +119,7 @@ env NOCONFIGURE=1 ./autogen.sh --with-selinux \ --with-curl \ --with-openssl \ - --with-composefs \ + %{?with_composefs:--with-composefs} \ %{?with_tests:--with-soup3} \ %{?with_tests:--enable-installed-tests=exclusive} \ --with-dracut=yesbutnoconf