diff options
author | Niels Thykier <niels@thykier.net> | 2017-08-26 09:12:00 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2017-08-26 09:12:11 +0000 |
commit | 268dc4a0951069a33c196ee19982205e4910f8ab (patch) | |
tree | 046dc9e7ec9138b8d3b9373edb1c5143ab888111 /dh_strip | |
parent | 13d2c1c6c0238e8bec6b958208604656502fdb47 (diff) | |
download | debhelper-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-x | dh_strip | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 |