summaryrefslogtreecommitdiff
path: root/dh_makeshlibs
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2014-01-30 15:01:07 -0400
committerJoey Hess <joey@kitenet.net>2014-01-30 15:01:07 -0400
commitb4ad930ad2d7f9d94e9cc3395e6f000c4094886e (patch)
tree36869ca9813f57083d3c97165d0d2a5b79b5d8da /dh_makeshlibs
parentf7324fa4c4fd41f8727e74bc0d5ef40b624ce878 (diff)
dh_makeshlibs: Defer propigating dpkg-gensymbols error until all packages have been processed. Closes: #736640
Diffstat (limited to 'dh_makeshlibs')
-rwxr-xr-xdh_makeshlibs10
1 files changed, 8 insertions, 2 deletions
diff --git a/dh_makeshlibs b/dh_makeshlibs
index 66e8b96..7aa52e4 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<debhelper(7)>