From b4ad930ad2d7f9d94e9cc3395e6f000c4094886e Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 30 Jan 2014 15:01:07 -0400 Subject: dh_makeshlibs: Defer propigating dpkg-gensymbols error until all packages have been processed. Closes: #736640 --- dh_makeshlibs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'dh_makeshlibs') diff --git a/dh_makeshlibs b/dh_makeshlibs index 66e8b961..7aa52e49 100755 --- a/dh_makeshlibs +++ b/dh_makeshlibs @@ -129,6 +129,8 @@ init(options => { my $objdump=cross_command("objdump"); my $multiarch=dpkg_architecture_value("DEB_HOST_MULTIARCH"); +my $ok=1; + foreach my $package (@{$dh{DOPACKAGES}}) { next if is_udeb($package); @@ -242,8 +244,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) { # own search for symbols files, since that search # is not 100% compatible with debhelper. (For example, # this supports --ignore being used.) - doit("dpkg-gensymbols", "-p$package", "-I$symbols", - "-P$tmp", + $ok = $ok && doit_noerror("dpkg-gensymbols", + "-p$package", "-I$symbols", "-P$tmp", @liblist, @{$dh{U_PARAMS}}); if (-s "$tmp/DEBIAN/symbols" == 0) { @@ -255,6 +257,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) { } } +unless ($ok) { + error "failing due to earlier errors"; +} + =head1 SEE ALSO L -- cgit v1.2.3