[buildd-tools-devel] Bug#722012: sbuild-createchroot 'tempfile' can't be called as a method at /usr/sbin/sbuild-createchroot

Paul Elliott pelliott at blackpatchpanel.com
Thu Sep 19 19:24:10 UTC 2013



I have also experineced the 
'tempfile' can't be called as a method at /usr/sbin/sbuild-createchroot

problem.

Below is the patch for my debian testing system.
But it is only cargo cult programing.
##############cut here with a chain saw###########
--- sbuild-createchroot.orig	2013-09-19 12:27:43.000000000 -0500
+++ sbuild-createchroot	2013-09-19 13:22:30.000000000 -0500
@@ -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

##############cut here with a chain saw###########



-- 
Paul Elliott                               1(512)837-1096
pelliott at BlackPatchPanel.com               PMB 181, 11900 Metric Blvd Suite J
http://www.free.blackpatchpanel.com/pme/   Austin TX 78758-3117
---
"Encryption works. Properly implemented strong crypto systems are one
of the few things that you can rely on. Unfortunately, endpoint
security is so terrifically weak that NSA can frequently find ways
around it." Edward Snowden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20130919/4fa6d410/attachment.sig>


More information about the Buildd-tools-devel mailing list