diff options
author | Olaf Faaland <[email protected]> | 2016-01-19 10:15:24 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-01-21 11:22:02 -0800 |
commit | 7323da1b2f337f5dab52452e7b765f4a0bc99b78 (patch) | |
tree | 1fee21768ffbe3de649efe27ed60f24e4695b735 /rpm | |
parent | 16522ac29023d94bc29e97761b01b252117cbbfe (diff) |
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 <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes zfsonlinux/zfs#4224
Diffstat (limited to 'rpm')
-rw-r--r-- | rpm/generic/spl-kmod.spec.in | 2 | ||||
-rw-r--r-- | rpm/redhat/spl-kmod.spec.in | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/rpm/generic/spl-kmod.spec.in b/rpm/generic/spl-kmod.spec.in index 6cac9c5a4..11d23fbe8 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 393528597..6fcc4a898 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 |