+2007-11-22 Raphael Hertzog <hertzog@debian.org>
+
+ * scripts/dpkg-shlibdeps.pl: Add more debug messages.
+
2007-11-21 Raphael Hertzog <hertzog@debian.org>
* scripts/Dpkg/Shlibs/Objdump.pm: Fix the checks in is_executable() and
[ Raphael Hertzog ]
* dpkg-shlibdeps now correctly identify private libraries (avoid many
- warnings with perl/python modules).
+ warnings with perl/python modules). Closes: #452338
* Move capit() to a Dpkg::Fields module and use it in dpkg-shlibdeps.
Closes: #452262
+ * Add more debug messages to dpkg-shlibdeps to ease collecting information
+ in case of problems.
[ Updated man pages translations ]
* Swedish (Peter Karlsson)
failure(_g("couldn't find library %s (note: only packages with " .
"'shlibs' files are looked into)."), $soname)
unless defined($lib);
- $libfiles{$lib} = $soname if defined($lib);
+ $libfiles{$lib} = $soname;
+ print "Library $soname found in $lib\n" if $debug;
}
my $file2pkg = find_packages(keys %libfiles);
my $symfile = Dpkg::Shlibs::SymbolFile->new();
# Empty package name will lead to consideration of symbols
# file from the package being built only
$file2pkg->{$lib} = [""];
+ print "No associated package found for $lib\n" if $debug;
}
# Load symbols/shlibs files from packages providing libraries
sub add_shlibs_dep {
my ($soname, $pkg) = @_;
+ print "Looking up shlibs dependency of $soname provided by '$pkg'\n" if $debug;
foreach my $file ($shlibslocal, $shlibsoverride, @pkg_shlibs,
"$admindir/info/$pkg.shlibs",
$shlibsdefault)
next if not -e $file;
my $dep = extract_from_shlibs($soname, $file);
if (defined($dep)) {
+ print "Found $dep in $file\n" if $debug;
foreach (split(/,\s*/, $dep)) {
$dependencies{$cur_field}{$_} = 1;
}
return 1;
}
}
+ print "Found nothing\n" if $debug;
return 0;
}