-2006-04-04 Branden Robinson <branden@debian.org>,
+2006-04-09 Guillem Jover <guillem@debian.org>
+
+ * scripts/dpkg-shlibdeps.pl: Support system library directories
+ symlinked from '/lib/ldconfig/'.
+
+2006-04-09 Branden Robinson <branden@debian.org>,
Guillem Jover <guillem@debian.org>
* src/main.c (execbackend): Pass '--admindir' over to dpkg-query
* Pass '--admindir' option over to dpkg-query when passing '--admindir' or
'--root' to dpkg (initial patch by Branden Robinson).
Closes: #153305, #271041, #282853, #307715, #355915
+ * Support system library directories in dpkg-shlibdeps symlinked from
+ '/lib/ldconfig'. Closes: #356452
[ Christian Perrier ]
*
}
}
+# Support system library directories.
+my $ldconfigdir = '/lib/ldconfig';
+if (opendir(DIR, $ldconfigdir)) {
+ my @dirents = readdir(DIR);
+ closedir(DIR);
+
+ for (@dirents) {
+ next if /^\./;
+ my $d = `readlink -f $ldconfigdir/$_`;
+ chomp $d;
+ unless (exists $librarypaths{$d}) {
+ $librarypaths{$d} = 'ldconfig';
+ push @librarypaths, $d;
+ }
+ }
+}
+
open CONF, '</etc/ld.so.conf' or
warn( "couldn't open /etc/ld.so.conf: $!" );
while( <CONF> ) {