zfs-kmod: fix empty rpm requires/conflicts #16121
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix an error in zfs-kmod.spec that causes kmod-zfs packages not to include the correct RPM requires/conflicts relationships.
Motivation and Context
Building zfs 2.2.x (or current master) results in kmod-zfs packages with empty requires/conflicts, as well as the following (non-fatal) error message from
rpmbuild
:This bug will incorrectly allow kmod-zfs & zfs-dkms packages to coexist on the same machine, potentially causing issues:
With this change applied, RPM correctly no longer allows kmod-zfs & zfs-dkms packages to be installed together:
Description
Fix a script syntax error in the rpm specfile and put the generated output in the preamble file expected by the
%kernel_module_package
macro elsewhere in the specfile.How Has This Been Tested?
Tested Environments:
Rocky 9.3 aarch64
Rocky 9.3 x86_64
Centos 7.9 x86_64
Build/install process:
Types of changes
Checklist:
Signed-off-by
.