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
pelli...@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

Attachment: signature.asc
Description: Digital signature

Reply via email to