redhat: separate debuginfo package for kmod rpm 18/12818/5
authorPat Riehecky <riehecky@fnal.gov>
Thu, 12 Mar 2015 19:33:10 +0000 (14:33 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Fri, 10 Aug 2018 11:47:33 +0000 (07:47 -0400)
Place the debuginfo for the kmod into its own rpm so that
it doesn't have to track against the userspace packages.

FIXES 132034

Reviewed-on: https://gerrit.openafs.org/11867
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit 443dd5367e0cd9050ad39a6594c5be521271b4e9)

Change-Id: I4b0783b2279cd3c295a92fcac1d0b2ad06e89376
Reviewed-on: https://gerrit.openafs.org/12818
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Tested-by: Stephan Wiesand <stephan.wiesand@desy.de>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>

src/packaging/RedHat/openafs.spec.in

index 7f3d9de..1ca10c0 100644 (file)
@@ -547,6 +547,18 @@ krb4 lookalike services.
 %if %{build_modules}
 
 %if %{fedorakmod}
+
+# Make debuginfo for the kernel components into their own package
+# so we can upgrade kernel and userspace seperately and still debug each
+%package -n %{name}-kernel-debuginfo
+Summary: Debug information for %{name} kernel modules
+Group: Development/Debug
+AutoReqProv: no
+%description -n %{name}-kernel-debuginfo
+This package provides debug information for %{name} kernel modules.
+
+%{expand:%%global _find_debuginfo_opts %{?_find_debuginfo_opts} -p '.*openafs.ko(\.debug)?' -o kmod-debuginfo.list}
+
 %{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{depmod} %{kvariants} 2>/dev/null)}
 
 %else
@@ -1750,6 +1762,11 @@ dkms remove -m %{name} -v %{dkms_version} --rpm_safe_upgrade --all ||:
 
 %if %{build_modules}
 
+%if %{fedorakmod}
+%files -f kmod-debuginfo.list -n %{name}-kernel-debuginfo
+%defattr(-,root,root)
+%endif
+
 %if !%{fedorakmod}
 %if %{up_package}
 %files kernel