+2007-11-25 Raphael Hertzog <hertzog@debian.org>
+
+ * scripts/Dpkg/Shlibs.pm (find_library): Canonicalize paths before
+ returning them as bad RPATH can lead to non-canonical paths
+ causing us troubles in dpkg-shlibdeps.
+ * scripts/dpkg-gensymbols.pl: Some formatting fixes.
+ * scripts/dpkg-shlibdeps.pl: Likewise.
+
2007-11-24 Raphael Hertzog <hertzog@debian.org>
* scripts/dpkg-gensymbols.pl: Add a new -I<file> option to force
the usage of a specific file as basis for the generated symbols
file.
- * scripts/Dpkg/Shlibs.pm (find_library): Canonicalize paths before
- returning them as bad RPATH can lead to non-canonical paths
- causing us troubles in dpkg-shlibdeps.
2007-11-24 Guillem Jover <guillem@debian.org>
my @files;
while (@ARGV) {
- $_=shift(@ARGV);
+ $_ = shift(@ARGV);
if (m/^-p([-+0-9a-z.]+)$/) {
- $oppackage= $1;
+ $oppackage = $1;
} elsif (m/^-c(\d)?$/) {
$compare = defined($1) ? $1 : 1;
} elsif (m/^-d$/) {
$packagebuilddir = $1;
$packagebuilddir =~ s{/+$}{};
} elsif (m/^-O$/) {
- $stdout= 1;
+ $stdout = 1;
} elsif (m/^-I(.+)$/) {
$input = $1;
} elsif (m/^-O(.+)$/) {
- $output= $1;
+ $output = $1;
} elsif (m/^-(h|-help)$/) {
&usage; exit(0);
} elsif (m/^--version$/) {
if (not defined($oppackage)) {
parsecontrolfile($controlfile);
my @packages = grep(m/^C /, keys %p2i);
- @packages==1 ||
+ @packages == 1 ||
error(_g("must specify package since control info has many (%s)"),
"@packages");
$oppackage = $packages[0];
use Dpkg::Fields qw(capit);
# By increasing importance
-my @depfields= qw(Suggests Recommends Depends Pre-Depends);
-my $i=0; my %depstrength = map { $_ => $i++ } @depfields;
+my @depfields = qw(Suggests Recommends Depends Pre-Depends);
+my $i = 0; my %depstrength = map { $_ => $i++ } @depfields;
textdomain("dpkg-dev");
-my $shlibsoverride= '/etc/dpkg/shlibs.override';
-my $shlibsdefault= '/etc/dpkg/shlibs.default';
-my $shlibslocal= 'debian/shlibs.local';
-my $packagetype= 'deb';
-my $dependencyfield= 'Depends';
-my $varlistfile= 'debian/substvars';
-my $varnameprefix= 'shlibs';
-my $ignore_missing_info= 0;
-my $debug= 0;
+my $shlibsoverride = '/etc/dpkg/shlibs.override';
+my $shlibsdefault = '/etc/dpkg/shlibs.default';
+my $shlibslocal = 'debian/shlibs.local';
+my $packagetype = 'deb';
+my $dependencyfield = 'Depends';
+my $varlistfile = 'debian/substvars';
+my $varnameprefix = 'shlibs';
+my $ignore_missing_info = 0;
+my $debug = 0;
my @exclude = ();
my $host_arch = get_host_arch();
my ($stdout, %exec);
foreach (@ARGV) {
if (m/^-T(.*)$/) {
- $varlistfile= $1;
+ $varlistfile = $1;
} elsif (m/^-p(\w[-:0-9A-Za-z]*)$/) {
- $varnameprefix= $1;
+ $varnameprefix = $1;
} elsif (m/^-L(.*)$/) {
- $shlibslocal= $1;
+ $shlibslocal = $1;
} elsif (m/^-O$/) {
- $stdout= 1;
+ $stdout = 1;
} elsif (m/^-(h|-help)$/) {
usage(); exit(0);
} elsif (m/^--version$/) {
-d $admindir ||
error(_g("administrative directory '%s' does not exist"), $admindir);
} elsif (m/^-d(.*)$/) {
- $dependencyfield= capit($1);
+ $dependencyfield = capit($1);
defined($depstrength{$dependencyfield}) ||
warning(_g("unrecognised dependency field \`%s'"), $dependencyfield);
} elsif (m/^-e(.*)$/) {