summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdh_strip7
-rwxr-xr-xt/size.t2
2 files changed, 8 insertions, 1 deletions
diff --git a/dh_strip b/dh_strip
index 40062513..d345c696 100755
--- a/dh_strip
+++ b/dh_strip
@@ -374,6 +374,13 @@ sub process_packages {
doit($strip, '--strip-debug', '--remove-section=.comment',
'--remove-section=.note', '--enable-deterministic-archives', $_);
}
+ if (-d "$tmp/usr/lib/debug/.dwz" and ($use_build_id > 1 or $dh{DEBUGPACKAGE})) {
+ my @files = glob_expand(["$tmp/usr/lib/debug/.dwz"], \&glob_expand_error_handler_reject, '*');
+ install_dir("$debugtmp/usr/lib/debug/.dwz");
+ xargs(\@files, 'cp', '--reflink=auto', "-a", XARGS_INSERT_PARAMS_HERE, "$debugtmp/usr/lib/debug/.dwz");
+ doit('rm', '-fr', "$tmp/usr/lib/debug/.dwz");
+ }
+
if ($no_auto_dbgsym and $use_build_id > 1) {
# When DEB_BUILD_OPTIONS contains noautodbgsym, remove the
# dbgsym dir and clear the build-ids.
diff --git a/t/size.t b/t/size.t
index 5a16db43..e759a474 100755
--- a/t/size.t
+++ b/t/size.t
@@ -21,7 +21,7 @@ foreach my $file (@progs) {
while (<$fd>) {
$cutting=1 if /^=/;
$cutting=0 if /^=cut/;
- next if $cutting || /^(?:=|\s*(?:\#.*)?$)/;
+ next if $cutting || /^(?:=|\s*(?:\#.*|[}]\s*)?$)/;
$lines++;
$maxlength=length($_) if length($_) > $maxlength;
}