Skip to content

redhat: make kernel-zfcpdump-core to not provide kernel-core/kernel

redhat: make kernel-zfcpdump-core to not provide kernel-core/kernel

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2027654 Upstream Status: RHEL only

As reported on the bug above, when doing dnf install kernel on s390x it might pull kernel-zfcpdump-core which should not be a choice for a generic kernel. Adjust the kernel_variant_package macro to add an option allowing adding provides or not and use it for the zfcpdump variant.

v2: - fix if condition to not hide kernel--core-uname-r which is required by the kernel- meta package. - wrap kernel provides in kernel_reqprovconf macro as well - rename the macro option from -p to -o as suggested by Daniel Horak v3: - fix kernel_reqprovconf expansion as noted by Bruno Goncalves/Jan Stancek v4: - do not wrap installonlypkg since that should be only a hint to yum/dnf to allow multiple versions of same packages installed

Signed-off-by: Herton R. Krzesinski herton@redhat.com

Edited by Herton R. Krzesinski

Merge request reports