]> git.proxmox.com Git - mirror_spl.git/commitdiff
Create spl-kmod-debuginfo rpm with redhat spec file
authorOlaf Faaland <faaland1@llnl.gov>
Tue, 19 Jan 2016 18:15:24 +0000 (10:15 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 21 Jan 2016 19:22:02 +0000 (11:22 -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 zfsonlinux/zfs#4224

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

index 6cac9c5a4f7277c5513d65fe16f8c2b68764d151..11d23fbe82cde47fb1e81c298c0ce68a808ca329 100644 (file)
@@ -152,6 +152,8 @@ 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 3935285979e3847b8ce6ed0ba38ce393f883e4a1..6fcc4a898b55dcfe82ba1ad0bf3b43a546d77f57 100644 (file)
@@ -27,7 +27,6 @@ This package contains the kernel modules required to emulate
 several interfaces provided by the Solaris kernel.
 
 %define kmod_name spl
-%define debug_package %{nil}
 
 %kernel_module_package -n %{kmod_name} -p %{_sourcedir}/kmod-preamble
 
@@ -96,6 +95,8 @@ make install \
         DESTDIR=${RPM_BUILD_ROOT} \
         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