Skip to content

Commit

Permalink
zfs-dkms rpm: Fix scriptlets dependencies
Browse files Browse the repository at this point in the history
To ensure that the necessary packages are available during the %post and
%preun scriptlets, require them properly.

Fixes openzfs#12822

Signed-off-by: Till Maas <opensource@till.name>
  • Loading branch information
tyll committed Dec 10, 2021
1 parent 510885a commit 1c819e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rpm/generic/zfs-dkms.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch

Requires: dkms >= 2.2.0.3
Requires(post): dkms >= 2.2.0.3
Requires(preun): dkms >= 2.2.0.3
Requires: gcc, make, perl, diffutils
Requires(post): gcc, make, perl, diffutils
%if 0%{?rhel}%{?fedora}%{?mageia}%{?suse_version}
Requires: kernel-devel >= @ZFS_META_KVER_MIN@, kernel-devel <= @ZFS_META_KVER_MAX@.999
Requires(post): kernel-devel >= @ZFS_META_KVER_MIN@, kernel-devel <= @ZFS_META_KVER_MAX@.999
Obsoletes: spl-dkms
%endif
Provides: %{module}-kmod = %{version}
Expand Down

0 comments on commit 1c819e6

Please sign in to comment.