[buildd-tools-devel] Bug#823993: sbuild: bad foreach when reading the list of foreign architectures
Adam Borowski
kilobyte at angband.pl
Wed May 11 03:32:57 UTC 2016
Package: sbuild
Version: 0.69.0-1
Severity: normal
When there's actually a foreign arch configured, I get:
[~]# sbuild-update -udcar unstable-arm64
Use of uninitialized value $_ in scalar chomp at /usr/share/perl5/Sbuild/ResolverBase.pm line 192.
unstable-arm64: Performing update.
(..., all ok, exit status 0)
[~]# chroot /srv/sbuild/unstable-arm64/
(unstable-arm64-sbuild)root at umbar:/# dpkg --print-foreign-architectures
amd64
(unstable-arm64-sbuild)root at umbar:/#
And the code in question is:
foreach my $arch (split /\s+/, $foreignarchs) {
chomp;
next unless $_;
$set{$_} = 1;
}
Note "my $arch" vs "$_".
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (150, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.6.0-rc7-debug+ (SMP w/6 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages sbuild depends on:
ii adduser 3.114
ii apt-utils 1.2.11
ii libsbuild-perl 0.69.0-1
ii perl 5.22.2-1
Versions of packages sbuild recommends:
ii debootstrap 1.0.81
ii fakeroot 1.20.2-1
Versions of packages sbuild suggests:
pn deborphan <none>
ii wget 1.17.1-2
-- no debconf information
More information about the Buildd-tools-devel
mailing list