]> granicus.if.org Git - zfs/commitdiff
Create zfs-kmod-debuginfo rpm with redhat spec file
authorOlaf Faaland <faaland1@llnl.gov>
Wed, 20 Jan 2016 01:48:17 +0000 (17:48 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 21 Jan 2016 19:20:06 +0000 (11:20 -0800)
Correct the redhat specfile so that working debuginfo rpms are created
for the kernel modules.  The generic specfile already does the right
thing.

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

rpm/generic/zfs-kmod.spec.in
rpm/redhat/zfs-kmod.spec.in

index e7d2bd1e098861a0dd6a6fa478c8f141687774c2..9d10e6075801e736fbf013ef65d140616922d34a 100644 (file)
@@ -177,6 +177,7 @@ for kernel_version in %{?kernel_versions}; do
         INSTALL_MOD_DIR=%{kmodinstdir_postfix}
     cd ..
 done
+# find-debuginfo.sh only considers executables
 chmod u+x ${RPM_BUILD_ROOT}%{kmodinstdir_prefix}/*/extra/*/*/*
 %{?akmod_install}
 
index ecc809bc6520fae762cadcfe89de2d2ce9ca86ec..fa0c1108e08977f6460574a352d676b62266c9e0 100644 (file)
@@ -25,7 +25,6 @@ Conflicts:      @PACKAGE@-dkms\n\n" > %{_sourcedir}/kmod-preamble)
 This package contains the ZFS kernel modules.
 
 %define kmod_name @PACKAGE@
-%define debug_package %{nil}
 
 %kernel_module_package -n %{kmod_name} -p %{_sourcedir}/kmod-preamble
 
@@ -79,6 +78,9 @@ make install \
         INSTALL_MOD_DIR=extra/%{kmod_name}
 %{__rm} -f %{buildroot}/lib/modules/%{kverrel}/modules.*
 
+# find-debuginfo.sh only considers executables
+%{__chmod} u+x  %{buildroot}/lib/modules/%{kverrel}/extra/*/*/*
+
 %clean
 rm -rf $RPM_BUILD_ROOT