summaryrefslogtreecommitdiff
path: root/dh_strip
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2017-08-26 09:12:00 +0000
committerNiels Thykier <niels@thykier.net>2017-08-26 09:12:11 +0000
commit268dc4a0951069a33c196ee19982205e4910f8ab (patch)
tree046dc9e7ec9138b8d3b9373edb1c5143ab888111 /dh_strip
parent13d2c1c6c0238e8bec6b958208604656502fdb47 (diff)
downloaddebhelper-268dc4a0951069a33c196ee19982205e4910f8ab.tar.gz
dh_strip: Make --dbg-package run in serial
Ideally, people would migrate to the automatic dbgsym packages, which do not seem trigger this problem. Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_strip')
-rwxr-xr-xdh_strip12
1 files changed, 10 insertions, 2 deletions
diff --git a/dh_strip b/dh_strip
index 4de68e8f..beca220c 100755
--- a/dh_strip
+++ b/dh_strip
@@ -297,7 +297,7 @@ sub attach_debug {
my %all_packages = map { $_ => 1 } getpackages();
-on_pkgs_in_parallel {
+sub process_packages {
foreach my $package (@_) {
my $tmp=tmpdir($package);
@@ -395,7 +395,15 @@ on_pkgs_in_parallel {
close($fd) or error("close $path failed: $!");
}
}
-};
+}
+
+if ($dh{DEBUGPACKAGE}) {
+ # Non-deterministic issues with --dbg-package and parallelism (see
+ # #872007). Analysis and patches welcome for this case.
+ process_packages(@{$dh{DOPACKAGES}});
+} else {
+ on_pkgs_in_parallel(\&process_packages);
+}
=head1 SEE ALSO