--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: Fails if apt-cross is not installed
- From: Goswin von Brederlow <goswin-v-b@web.de>
- Date: Sun, 24 Jan 2010 23:36:10 +0100
- Message-id: <20100124223610.18847.49321.reportbug@frosties.localdomain>
Package: libdebian-dpkgcross-perl
Version: 2.5.5
Severity: normal
Tags: patch
Hi,
if apt-cross is not installed then it fails to parse the non-existant
config. Patch attached.
MfG
Goswin
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (499, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.29.4-frosties-2 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages libdebian-dpkgcross-perl depends on:
ii dpkg-dev 1.15.5.6 Debian package development tools
ii file 5.03-5 Determines file type using "magic"
ii libconfig-auto-perl 0.20-2 Magical config file parser
ii libfile-homedir-perl 0.86-1 Get the home directory for yoursel
ii libfile-temp-perl 0.22-1 Perl module to create a temporary
ii perl 5.10.1-9 Larry Wall's Practical Extraction
ii perl-modules [libfile-temp-pe 5.10.1-9 Core Perl modules
libdebian-dpkgcross-perl recommends no packages.
libdebian-dpkgcross-perl suggests no packages.
-- no debconf information
--- /usr/share/perl5/Debian/DpkgCross.pm 2010-01-17 16:42:57.000000000 +0100
+++ DpkgCross.pm 2010-01-24 23:32:41.000000000 +0100
@@ -572,16 +572,17 @@
}
}
# /var/lib/apt-cross/multiarch.list
- $cfile = "/var/lib/apt-cross/multiarch.list"
- if (-d "/var/lib/apt-cross/");
- $config = Config::Auto::parse("$cfile", format => "list");
- die "ERROR: Multiarch config file '$cfile' is not a simple list!\n"
- if (ref($config) ne 'ARRAY');
- foreach my $line (sort @$config)
- {
- chomp ($line);
- next if ($line =~ /^#/);
- $malist{$line}++;
+ if (-d "/var/lib/apt-cross/") {
+ $cfile = "/var/lib/apt-cross/multiarch.list";
+ $config = Config::Auto::parse("$cfile", format => "list");
+ die "ERROR: Multiarch config file '$cfile' is not a simple list!\n"
+ if (ref($config) ne 'ARRAY');
+ foreach my $line (sort @$config)
+ {
+ chomp ($line);
+ next if ($line =~ /^#/);
+ $malist{$line}++;
+ }
}
my @ret = sort keys (%malist);
return \@ret;
--- End Message ---
--- Begin Message ---
Source: dpkg-cross
Source-Version: 2.5.6
We believe that the bug you reported is fixed in the latest version of
dpkg-cross, which is due to be installed in the Debian FTP archive:
dpkg-cross_2.5.6.dsc
to main/d/dpkg-cross/dpkg-cross_2.5.6.dsc
dpkg-cross_2.5.6.tar.gz
to main/d/dpkg-cross/dpkg-cross_2.5.6.tar.gz
dpkg-cross_2.5.6_all.deb
to main/d/dpkg-cross/dpkg-cross_2.5.6_all.deb
libdebian-dpkgcross-perl_2.5.6_all.deb
to main/d/dpkg-cross/libdebian-dpkgcross-perl_2.5.6_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 566744@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Neil Williams <codehelp@debian.org> (supplier of updated dpkg-cross package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Tue, 09 Feb 2010 20:55:35 +0000
Source: dpkg-cross
Binary: dpkg-cross libdebian-dpkgcross-perl
Architecture: source all
Version: 2.5.6
Distribution: unstable
Urgency: low
Maintainer: Debian Embedded Group <debian-embedded@lists.debian.org>
Changed-By: Neil Williams <codehelp@debian.org>
Description:
dpkg-cross - tools for cross compiling Debian packages
libdebian-dpkgcross-perl - functions to aid cross-compiling Debian packages
Closes: 545464 566744
Changes:
dpkg-cross (2.5.6) unstable; urgency=low
.
* Implement transitionary support for Multi-Arch (Closes: #545464)
* Allow for apt-cross to not be installed when checking list of
multiarch packages (Closes: #566744)
Checksums-Sha1:
1db653b47725c8fe0662bc56c711d76a5238d042 1209 dpkg-cross_2.5.6.dsc
0612428e0c2c61c887f8e38030e6f87ccf52dd5e 72328 dpkg-cross_2.5.6.tar.gz
45327b833107c6ac5561777a89d899d13427705a 52656 dpkg-cross_2.5.6_all.deb
741e8692be635ab111c5d113ffbe255bac759e61 28844 libdebian-dpkgcross-perl_2.5.6_all.deb
Checksums-Sha256:
25219636161a95da629311793b3a2b523e548c01e49d298cd85bc66dee94f9e1 1209 dpkg-cross_2.5.6.dsc
a29a2638d22b6357da2e5eb542436dc7a03acb0ebb4a80c71ef5a81d076dc489 72328 dpkg-cross_2.5.6.tar.gz
6fca1145792f8abb7027c2f12c2d924ade7aea8a2a9451a1b009f7b5d380725d 52656 dpkg-cross_2.5.6_all.deb
0888a55f6255cff34c075efada6fa318262791b54852ee3c5512d2b1336c2750 28844 libdebian-dpkgcross-perl_2.5.6_all.deb
Files:
5eccbb08bfa40939b9683ec0a1132118 1209 utils extra dpkg-cross_2.5.6.dsc
31f756a3e3c846a7c7a1ce7a77c450a6 72328 utils extra dpkg-cross_2.5.6.tar.gz
5a36d5bef5f631fbe578a0e8f19f8d22 52656 utils extra dpkg-cross_2.5.6_all.deb
10c5e64fa2fc73679384841dae57500e 28844 perl extra libdebian-dpkgcross-perl_2.5.6_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAkuJd0UACgkQiAEJSii8s+PeawCgqKpf2ARqzzcTcJzohq6PG6hr
OhoAoOYxBfVbVOLJiw0yr2I2Sxr1EKi5
=IM2c
-----END PGP SIGNATURE-----
--- End Message ---