From 7323da1b2f337f5dab52452e7b765f4a0bc99b78 Mon Sep 17 00:00:00 2001 From: Olaf Faaland Date: Tue, 19 Jan 2016 10:15:24 -0800 Subject: [PATCH] Create spl-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 zfsonlinux/zfs#4224 --- rpm/generic/spl-kmod.spec.in | 2 ++ rpm/redhat/spl-kmod.spec.in | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/rpm/generic/spl-kmod.spec.in b/rpm/generic/spl-kmod.spec.in index 6cac9c5..11d23fb 100644 --- a/rpm/generic/spl-kmod.spec.in +++ b/rpm/generic/spl-kmod.spec.in @@ -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} diff --git a/rpm/redhat/spl-kmod.spec.in b/rpm/redhat/spl-kmod.spec.in index 3935285..6fcc4a8 100644 --- a/rpm/redhat/spl-kmod.spec.in +++ b/rpm/redhat/spl-kmod.spec.in @@ -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 -- 2.40.0