From 79411de849c878b56c269b88a49c6b1ce15310d0 Mon Sep 17 00:00:00 2001 From: joey Date: Tue, 14 Oct 2003 19:35:06 +0000 Subject: r1614: * Patch from Andrew Suffield to make dh_strip support saving the debugging symbols with a --keep-debug flag and dh_shlibdeps skip /usr/lib/debug. Thanks! Closes: #215670 * Add --dbg-package flag to dh_strip, to list packages that have associated -dbg packages. dh_strip will then move the debug symbols over to the associated -dbg packages. --- Debian/Debhelper/Dh_Getopt.pm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Debian/Debhelper') diff --git a/Debian/Debhelper/Dh_Getopt.pm b/Debian/Debhelper/Dh_Getopt.pm index 7d82eea5..c610963b 100644 --- a/Debian/Debhelper/Dh_Getopt.pm +++ b/Debian/Debhelper/Dh_Getopt.pm @@ -48,6 +48,11 @@ sub AddPackage { my($option,$value)=@_; } } +# Adds packages to the list of debug packages. +sub AddDebugPackage { my($option,$value)=@_; + push @{$options{DEBUGPACKAGES}}, $value; +} + # Add a package to a list of packages that should not be acted on. sub ExcludePackage { my($option,$value)=@_; $exclude_package{$value}=1; @@ -80,6 +85,8 @@ sub parseopts { "p=s" => \&AddPackage, "package=s" => \&AddPackage, + "dbg-package=s" => \&AddDebugPackage, + "s" => \&AddPackage, "same-arch" => \&AddPackage, @@ -153,6 +160,8 @@ sub parseopts { "name=s" => \$options{NAME}, + "keep-debug" => \$options{KEEP_DEBUG}, + "<>" => \&NonOption, ); -- cgit v1.2.3