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 <faaland1@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes zfsonlinux/zfs#4224
This commit is contained in:
parent
16522ac290
commit
7323da1b2f
|
@ -152,6 +152,8 @@ for kernel_version in %{?kernel_versions}; do
|
||||||
INSTALL_MOD_DIR=%{kmodinstdir_postfix}
|
INSTALL_MOD_DIR=%{kmodinstdir_postfix}
|
||||||
cd ..
|
cd ..
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# find-debuginfo.sh only considers executables
|
||||||
chmod u+x ${RPM_BUILD_ROOT}%{kmodinstdir_prefix}/*/extra/*/*/*
|
chmod u+x ${RPM_BUILD_ROOT}%{kmodinstdir_prefix}/*/extra/*/*/*
|
||||||
%{?akmod_install}
|
%{?akmod_install}
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,6 @@ This package contains the kernel modules required to emulate
|
||||||
several interfaces provided by the Solaris kernel.
|
several interfaces provided by the Solaris kernel.
|
||||||
|
|
||||||
%define kmod_name spl
|
%define kmod_name spl
|
||||||
%define debug_package %{nil}
|
|
||||||
|
|
||||||
%kernel_module_package -n %{kmod_name} -p %{_sourcedir}/kmod-preamble
|
%kernel_module_package -n %{kmod_name} -p %{_sourcedir}/kmod-preamble
|
||||||
|
|
||||||
|
@ -96,6 +95,8 @@ make install \
|
||||||
DESTDIR=${RPM_BUILD_ROOT} \
|
DESTDIR=${RPM_BUILD_ROOT} \
|
||||||
INSTALL_MOD_DIR=extra/%{kmod_name}
|
INSTALL_MOD_DIR=extra/%{kmod_name}
|
||||||
%{__rm} -f %{buildroot}/lib/modules/%{kverrel}/modules.*
|
%{__rm} -f %{buildroot}/lib/modules/%{kverrel}/modules.*
|
||||||
|
# find-debuginfo.sh only considers executables
|
||||||
|
%{__chmod} u+x %{buildroot}/lib/modules/%{kverrel}/extra/*/*/*
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
Loading…
Reference in New Issue