From 7b8b4bd6dd7d26a4d9fbe62490cc7b2c722cc603 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 7 Nov 2011 13:52:00 -0400 Subject: [PATCH] dh_strip: In v9, pass --compress-debug-sections to objcopy. Needs a new enough binutils and gdb; debhelper backport may need to disable this. Thanks, Aurelien Jarno and Bastien ROUCARIES. Closes: #631985 --- debhelper.pod | 5 +++++ debian/changelog | 9 +++++++++ dh_strip | 7 ++++++- 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/debhelper.pod b/debhelper.pod index b85bc1a..98da736 100644 --- a/debhelper.pod +++ b/debhelper.pod @@ -481,6 +481,11 @@ explicit binary target with explicit dependencies on the other targets. =item - +B compresses debugging symbol files to reduce the installed +size of -dbg packages. + +=item - + B does not include the source package name in --libexecdir when using autoconf. diff --git a/debian/changelog b/debian/changelog index fdf03d1..6ebb4d0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +debhelper (8.9.10) UNRELEASED; urgency=low + + * dh_strip: In v9, pass --compress-debug-sections to objcopy. + Needs a new enough binutils and gdb; debhelper backport + may need to disable this. + Thanks, Aurelien Jarno and Bastien ROUCARIES. Closes: #631985 + + -- Joey Hess Mon, 07 Nov 2011 13:50:30 -0400 + debhelper (8.9.9) unstable; urgency=low * dh_auto_build: Use target architecture (not host architecture) diff --git a/dh_strip b/dh_strip index a38a66b..aebc100 100755 --- a/dh_strip +++ b/dh_strip @@ -166,7 +166,12 @@ sub make_debug { if (! -d $debug_dir) { doit("install", "-d", $debug_dir); } - doit($objcopy, "--only-keep-debug", $file, $debug_path); + if(compat(8)) { + doit($objcopy, "--only-keep-debug", $file, $debug_path); + } + else { + doit($objcopy, "--only-keep-debug --compress-debug-sections", $file, $debug_path); + } # No reason for this to be executable. doit("chmod", 644, $debug_path); return $debug_path; -- 2.39.5