]> git.proxmox.com Git - mirror_zfs.git/commitdiff
fix misplaced quotes in kmod-preamble
authorOlaf Faaland <faaland1@llnl.gov>
Wed, 7 Apr 2021 17:10:34 +0000 (10:10 -0700)
committerGitHub <noreply@github.com>
Wed, 7 Apr 2021 17:10:34 +0000 (10:10 -0700)
rpm/redhat/zfs-kmod.spec.in has a typo in the shell code that
creates the kmod-preamble file.  This typo results in the
preamble file having the wrong name,

./SOURCES/kmod-preamblenObsoletes

and missing the Obsoletes clause that has become part of the name.

Because the filename is incorrect, the built package does not have
"obsoletes" or "conflicts" set.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
Closes #11851

rpm/redhat/zfs-kmod.spec.in

index 9bc756c5aae69e656320a4afbffdc6e8ae77d8df..eb626e3f4a842e084d4d648a435153b508603c94 100644 (file)
@@ -17,8 +17,8 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 # by generating a preamble text file which kmodtool can append to the spec file.
 %(/bin/echo -e "\
 Requires:       @PACKAGE@ = %{version}\n\
-Conflicts:      @PACKAGE@-dkms\n\n" > %{_sourcedir}/kmod-preamble\n\
-Obsoletes:      spl-kmod)
+Conflicts:      @PACKAGE@-dkms\n\
+Obsoletes:      spl-kmod\n\n" > %{_sourcedir}/kmod-preamble)
 
 # LDFLAGS are not sanitized by arch/*/Makefile for these architectures.
 %ifarch ppc ppc64 ppc64le aarch64