]> git.donarmstrong.com Git - debhelper.git/commitdiff
dh_strip: In v9, pass --compress-debug-sections to objcopy. Needs a new enough binuti...
authorJoey Hess <joey@kitenet.net>
Mon, 7 Nov 2011 17:52:00 +0000 (13:52 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 7 Nov 2011 17:52:00 +0000 (13:52 -0400)
debhelper.pod
debian/changelog
dh_strip

index b85bc1a578036e3a7ceb1dd749361962a4927c6f..98da7362868ed1d21ce85bc26bd4721203d9f0c3 100644 (file)
@@ -481,6 +481,11 @@ explicit binary target with explicit dependencies on the other targets.
 
 =item -
 
+B<dh_strip> compresses debugging symbol files to reduce the installed
+size of -dbg packages.
+
+=item -
+
 B<dh_auto_configure> does not include the source package name
 in --libexecdir when using autoconf.
 
index fdf03d19ca0588e1d4a1b402809e3f4b3a8ffa47..6ebb4d0dd24a1880a38f599864337e508c6a4424 100644 (file)
@@ -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 <joeyh@debian.org>  Mon, 07 Nov 2011 13:50:30 -0400
+
 debhelper (8.9.9) unstable; urgency=low
 
   * dh_auto_build: Use target architecture (not host architecture) 
index a38a66be30fb46494babc45bfa8490fc089b3725..aebc10096990b61374d80ccd4abc37bc74e1aba7 100755 (executable)
--- 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;