redhat: separate debuginfo package for kmod rpm 67/11867/4
authorPat Riehecky <riehecky@fnal.gov>
Thu, 12 Mar 2015 19:33:10 +0000 (14:33 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Wed, 20 Dec 2017 16:28:31 +0000 (11:28 -0500)
Place the debuginfo for the kmod into its own rpm so that
it doesn't have to track against the userspace packages.

FIXES 132034

Change-Id: I60a753275d896a89c1f6896c653d78a4e1fe7e2c
Reviewed-on: https://gerrit.openafs.org/11867
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>

src/packaging/RedHat/openafs.spec.in

index 34b2f46..6209505 100644 (file)
@@ -403,6 +403,17 @@ krb4 lookalike services.
 ##############################################################################
 %if %{build_modules}
 
+# 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)}
 
 %endif
@@ -1441,6 +1452,11 @@ dkms remove -m %{name} -v %{dkms_version} --rpm_safe_upgrade --all ||:
 %{_mandir}/man8/asetkey.8.gz
 %endif
 
+%if %{build_modules}
+%files -f kmod-debuginfo.list -n %{name}-kernel-debuginfo
+%defattr(-,root,root)
+%endif
+
 %endif
 ##############################################################################
 ###