tag 640676 + patch
thanks
On Tue, 06 Sep 2011, Mathieu Malaterre wrote:
> I am getting this bizarre message:
>
> Can't call method "isa" on an undefined value at /usr/bin/dpkg-shlibdeps line
> 567.
>From a quick analysis, this means that your Build-Depends line is somehow
broken. And your log should give your a hint with a warning
"can't parse dependency".
Can you attach your debian/control file ?
If my analysis is correct, I would suggest to fail earlier with a clearer
error message like in the attached patch.
Cheers,
--
Raphaël Hertzog ◈ Debian Developer
Follow my Debian News ▶ http://RaphaelHertzog.com (English)
▶ http://RaphaelHertzog.fr (Français)
diff --git a/scripts/dpkg-shlibdeps.pl b/scripts/dpkg-shlibdeps.pl
index c91dc8c..e28e6c1 100755
--- a/scripts/dpkg-shlibdeps.pl
+++ b/scripts/dpkg-shlibdeps.pl
@@ -136,6 +136,7 @@ my $fields = $control->get_source();
my $build_depends = defined($fields->{"Build-Depends"}) ?
$fields->{"Build-Depends"} : "";
my $build_deps = deps_parse($build_depends, reduce_arch => 1);
+error(_("failed to parse the Build-Depends field")) unless defined $build_deps;
my %dependencies;
my %shlibs;