aboutsummaryrefslogtreecommitdiffstats
path: root/rpm/redhat
diff options
context:
space:
mode:
authorOlaf Faaland <[email protected]>2016-01-19 17:48:17 -0800
committerBrian Behlendorf <[email protected]>2016-01-21 11:20:06 -0800
commitdfe0d027344b8534c69cc902c71ae912d8759e12 (patch)
tree06c2b011501ab61531701847d7c59a7b64040645 /rpm/redhat
parent37c56346cca55f60e36bb584e00966bba24af327 (diff)
Create zfs-kmod-debuginfo rpm with redhat spec file
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 <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #4224
Diffstat (limited to 'rpm/redhat')
-rw-r--r--rpm/redhat/zfs-kmod.spec.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/rpm/redhat/zfs-kmod.spec.in b/rpm/redhat/zfs-kmod.spec.in
index ecc809bc6..fa0c1108e 100644
--- a/rpm/redhat/zfs-kmod.spec.in
+++ b/rpm/redhat/zfs-kmod.spec.in
@@ -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