From 2721b2c520bc800372a19c8fc923e832c1142dc0 Mon Sep 17 00:00:00 2001 From: Josh Boyer Date: Wed, 30 Apr 2014 14:34:42 -0400 Subject: [PATCH] Add kernel-debug metapackage when debugbuildsenabled is set Without that, we wind up with kernel, kernel-core, kernel-drivers, kernel-debug-core, and kernel-debug-drivers. So there's no kernel-debug meta-package to take the place of the previously created kernel-debug package. Not sure how I missed that. --- kernel.spec | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/kernel.spec b/kernel.spec index eb86d6b13..267d3a407 100644 --- a/kernel.spec +++ b/kernel.spec @@ -34,7 +34,7 @@ Summary: The Linux kernel # For non-released -rc kernels, this will be appended after the rcX and # gitX tags, so a 3 here would become part of release "0.rcX.gitX.3" # -%global baserelease 1 +%global baserelease 4 %global fedora_build %{baserelease} # base_sublevel is the kernel version we're starting with and patching @@ -665,6 +665,16 @@ Requires(preun): systemd >= 200\ AutoReqProv: no\ %{nil} +%if %{debugbuildsenabled} +%package debug +Summary: A debug version of the Linux kernel +Group: System Environment/Kernel +Requires: kernel-debug-%{?variant:%{variant}-}core-uname-r = %{KVERREL}%{?variant} +Requires: kernel-debug-%{?variant:%{variant}-}drivers-uname-r = %{KVERREL}%{?variant} +%description debug +The kernel debug meta package +%endif + %package headers Summary: Header files for the Linux kernel for use by glibc Group: Development/System @@ -2115,6 +2125,11 @@ fi %files %defattr(-,root,root) +%if %{debugbuildsenabled} +%files debug +%defattr(-,root,root) +%endif + # This is %%{image_install_path} on an arch where that includes ELF files, # or empty otherwise. %define elf_image_install_path %{?kernel_image_elf:%{image_install_path}} @@ -2187,6 +2202,9 @@ fi # ||----w | # || || %changelog +* Wed Apr 30 2014 Josh Boyer +- Add kernel-debug metapackage when debugbuildsenabled is set + * Wed Apr 30 2014 Josh Boyer - 3.15.0-0.rc3.git2.1 - Linux v3.15-rc3-62-ged8c37e158cb - Drop noarch from ExclusiveArch. Nothing is built as noarch