Work around incorrect kernel provides on RHEL 9 s390x

On RHEL 9 s390x, kernel incorrectly pulls in kernel-zfcpdump-core
https://bugzilla.redhat.com/show_bug.cgi?id=2027654

(cherry picked from commit 87c3622fef06d383714da9c45a8f46d6289dfb20)

related: rhbz#2027375
This commit is contained in:
Richard W.M. Jones 2021-11-30 11:02:04 +00:00
parent 382616de66
commit 3b10f1b384
1 changed files with 8 additions and 0 deletions

View File

@ -75,6 +75,14 @@ BuildRequires: gnupg2
# tests to not require these packages.
BuildRequires: augeas hivex kernel tar
%if 0%{?rhel}
%ifarch s390x
# On RHEL 9 s390x, kernel incorrectly pulls in kernel-zfcpdump-core
# https://bugzilla.redhat.com/show_bug.cgi?id=2027654
BuildRequires: kernel-core
%endif
%endif
# For complicated reasons, this is required so that
# /bin/kernel-install puts the kernel directly into /boot, instead of
# into a /boot/<machine-id> subdirectory (in Fedora >= 23). Read the