From dfe0d027344b8534c69cc902c71ae912d8759e12 Mon Sep 17 00:00:00 2001 From: Olaf Faaland Date: Tue, 19 Jan 2016 17:48:17 -0800 Subject: [PATCH] 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 Signed-off-by: Brian Behlendorf Closes #4224 --- rpm/generic/zfs-kmod.spec.in | 1 + rpm/redhat/zfs-kmod.spec.in | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/rpm/generic/zfs-kmod.spec.in b/rpm/generic/zfs-kmod.spec.in index e7d2bd1e0..9d10e6075 100644 --- a/rpm/generic/zfs-kmod.spec.in +++ b/rpm/generic/zfs-kmod.spec.in @@ -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} 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