[buildd-tools-devel] Bug#722012: another Perl problem in sbuild-createchroot
Václav Ovsík
vaclav.ovsik at i.cz
Sun Sep 8 12:02:34 UTC 2013
Hi,
I'm not certain to start another bug report...
bobek:~# sbuild-createchroot --make-sbuild-tarball=/var/lib/sbuild/sid-amd64.tar.gz sid `mktemp -d` http://br0.localdomain:9999/debian
...
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
'tempfile' can't be called as a method at /usr/sbin/sbuild-createchroot line 395.
To fix:
--- sbuild-createchroot~ 2013-05-18 00:36:09.000000000 +0200
+++ sbuild-createchroot 2013-09-08 13:37:08.919671295 +0200
@@ -137,7 +137,7 @@
use Sbuild::Sysconfig;
use Sbuild::Conf qw();
use File::Path qw(mkpath rmtree);
-use File::Temp ();
+use File::Temp qw(tempfile);
use File::Copy;
use Cwd qw(abs_path);
@@ -392,7 +392,7 @@
# the sbuild chroot directory created, unless it's been requested to keep the
# directory.
if ($conf->get('MAKE_SBUILD_TARBALL')) {
- my ($tmpfh, $tmpfile) = File::Temp->tempfile("XXXXXX");
+ my ($tmpfh, $tmpfile) = tempfile("XXXXXX");
my @program_list;
# Change program arguments accordingly
result is:
bobek:~# sbuild-createchroot --make-sbuild-tarball=/var/lib/sbuild/sid-amd64.tar.gz sid `mktemp -d` http://br0.localdomain:9999/debian
...
Building dependency tree... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I: chroot /tmp/tmp.97dJrCDdo3 has been removed.
I: Successfully set up sid chroot.
I: Run "sbuild-adduser" to add new sbuild users.
Maybe, more Perl related problems will appear...
Cheers
--
Zito
More information about the Buildd-tools-devel
mailing list