From: Don Zickus <dzickus(a)redhat.com>
ARK used to build against the RHEL-8 buildroots. Going forward,
it will build against the ELN buildroot (Fedora space). Adjust
the spec file to handle these changes.
Still try to support RHEL-8 where possible. That is why the
llvm-toolset is wrapped with el8. This is useful for internal
developers.
Signed-off-by: Don Zickus <dzickus(a)redhat.com>
---
redhat/kernel.spec.template | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template
index 579344b69485..21d2dca61366 100644
--- a/redhat/kernel.spec.template
+++ b/redhat/kernel.spec.template
@@ -506,10 +506,10 @@ BuildRequires: python3-docutils
BuildRequires: zlib-devel binutils-devel
%endif
%if %{with_selftests}
-%if 0%{?fedora}
-BuildRequires: clang llvm
-%else
+%if 0%{?el8}
BuildRequires: llvm-toolset
+%else
+BuildRequires: clang llvm
%endif
%ifnarch %{arm}
BuildRequires: numactl-devel
--
2.26.2