* Paul Wise <[email protected]>, 2013-05-06, 13:13:
I setup the adequate hook and I got an error today, but this error
isn't helpful, it should print some information about what went wrong
so people can either report a bug on adequate or on the package that
caused the failure.
Agreed.
...
Setting up xmabacus (7.7.1-1) ...
Installing new version of config file /etc/X11/app-defaults/Abacus ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for menu ...
ldd -r: failed at /usr/bin/adequate line 440, <$ldd> line 10.
E: Problem executing scripts DPkg::Post-Invoke 'adequate --help >/dev/null 2>&1
|| exit 0; exec adequate --debconf --user nobody --pending'
E: Sub-process returned an error code
Unfortunately, I haven't found a way to reproduce this. :(
Can you test the attached patch?
--
Jakub Wilk
diff --git a/adequate b/adequate
--- a/adequate
+++ b/adequate
@@ -434,6 +434,12 @@
when (m/^\t(\S+) => not found$/) {
tag $pkg, 'library-not-found', $path, '=>', $1;
}
+ when (m/^\t(\S+) .*(?<= )[(]0x[0-9a-f]+[)]$/) {
+ # skip
+ }
+ default {
+ print STDERR "ldd -r $pkg: $_";
+ }
}
wait or die "$ldd -r: $!";
unless ($? == 0 or ($not_dynamic and $? == (1 << 8))) {