From e412a87b1f6a68a2c0b9e1baad1c328fdccbd41d Mon Sep 17 00:00:00 2001 From: Pat Riehecky Date: Thu, 12 Mar 2015 14:33:10 -0500 Subject: [PATCH] redhat: separate debuginfo package for kmod rpm 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 Tested-by: BuildBot (cherry picked from commit 443dd5367e0cd9050ad39a6594c5be521271b4e9) Change-Id: I6a24bb08242ec34c123880e9cbca4580a3560cba Reviewed-on: https://gerrit.openafs.org/12822 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk --- src/packaging/RedHat/openafs.spec.in | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/packaging/RedHat/openafs.spec.in b/src/packaging/RedHat/openafs.spec.in index 904738c9f..900841bba 100644 --- a/src/packaging/RedHat/openafs.spec.in +++ b/src/packaging/RedHat/openafs.spec.in @@ -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 @@ -1404,6 +1415,11 @@ dkms remove -m %{name} -v %{dkms_version} --rpm_safe_upgrade --all ||: %{_mandir}/man8/asetkey.* %endif +%if %{build_modules} +%files -f kmod-debuginfo.list -n %{name}-kernel-debuginfo +%defattr(-,root,root) +%endif + %endif ############################################################################## ### -- 2.39.5