Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Commit

Permalink
Create spl-kmod-debuginfo rpm with redhat spec file
Browse files Browse the repository at this point in the history
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 openzfs/zfs#4224
  • Loading branch information
ofaaland authored and behlendorf committed Jan 21, 2016
1 parent 16522ac commit 7323da1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions rpm/generic/spl-kmod.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
3 changes: 2 additions & 1 deletion rpm/redhat/spl-kmod.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7323da1

Please sign in to comment.