summaryrefslogtreecommitdiffstats
path: root/kernel.spec
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2012-03-05 09:09:48 -0500
committerJosh Boyer <jwboyer@redhat.com>2012-03-05 09:10:31 -0500
commitec9ad688ad79b354ae8223a58b96203b2d1116a8 (patch)
treeae9f636d2b9a30f6c622d4d3eb7e02e726cfe03a /kernel.spec
parent77c4837f0f440071d4df225afb164839af4537f8 (diff)
downloadkernel-ec9ad688ad79b354ae8223a58b96203b2d1116a8.tar.gz
kernel-ec9ad688ad79b354ae8223a58b96203b2d1116a8.tar.xz
kernel-ec9ad688ad79b354ae8223a58b96203b2d1116a8.zip
Add -r to debuginfo_args to invoke eu-strip --reloc-debug-sections.
The -r flag to find-debuginfo.sh to invoke eu-strip --reloc-debug-sections reduces the number of unnecessary relocations in kernel module .ko.debug files. This saves ~500MB on the installed size of the kernel-debuginfo package and makes the rpm file ~30MB smaller.
Diffstat (limited to 'kernel.spec')
-rw-r--r--kernel.spec12
1 files changed, 9 insertions, 3 deletions
diff --git a/kernel.spec b/kernel.spec
index 8020c7d81..f557632b0 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -54,7 +54,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 2
%global fedora_build %{baserelease}
# base_sublevel is the kernel version we're starting with and patching
@@ -566,8 +566,11 @@ BuildRequires: pciutils-devel gettext
BuildConflicts: rhbuildsys(DiskFree) < 500Mb
%if %{with_debuginfo}
# Fancy new debuginfo generation introduced in Fedora 8/RHEL 6.
-BuildRequires: rpm-build >= 4.4.2.1-4
-%define debuginfo_args --strict-build-id
+# The -r flag to find-debuginfo.sh to invoke eu-strip --reloc-debug-sections
+# reduces the number of relocations in kernel module .ko.debug files and was
+# introduced with rpm 4.9 and elfutils 0.153.
+BuildRequires: rpm-build >= 4.9.0-1, elfutils >= elfutils-0.153-1
+%define debuginfo_args --strict-build-id -r
%endif
Source0: ftp://ftp.kernel.org/pub/linux/kernel/v3.0/linux-%{kversion}.tar.xz
@@ -2388,6 +2391,9 @@ fi
# ||----w |
# || ||
%changelog
+* Mon Mar 05 2012 Mark Wielaard <mark@klomp.org>
+- Add -r to debuginfo_args to invoke eu-strip --reloc-debug-sections.
+
* Fri Mar 02 2012 Justin M. Forbes <jforbes@redhat.com>
- Disable threading in hibernate compression/decompression