summaryrefslogtreecommitdiff
path: root/Debian/Debhelper
diff options
context:
space:
mode:
authorjoey <joey>2003-10-14 19:35:06 +0000
committerjoey <joey>2003-10-14 19:35:06 +0000
commit79411de849c878b56c269b88a49c6b1ce15310d0 (patch)
tree1aef6c6bdeaf8fb649382937b4e3898c35acd9d9 /Debian/Debhelper
parent347a3114eb65088dd8213634eb207d68dbf2aa6d (diff)
r1614: * Patch from Andrew Suffield <asuffield@debian.org> 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.
Diffstat (limited to 'Debian/Debhelper')
-rw-r--r--Debian/Debhelper/Dh_Getopt.pm9
1 files changed, 9 insertions, 0 deletions
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,
);