From 3b10f1b384a1c2f9ea55c28ad75dc91941326ae7 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 30 Nov 2021 11:02:04 +0000 Subject: [PATCH] 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 --- supermin.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/supermin.spec b/supermin.spec index 56900d6..7167f7a 100644 --- a/supermin.spec +++ b/supermin.spec @@ -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/ subdirectory (in Fedora >= 23). Read the