[Debconf-devel] Bug#863071: Bug#863071: debconf: POSIX::tmpnam() is deprecated in Perl 5.24 and will be removed in 5.26

Colin Watson cjwatson at debian.org
Sun May 21 17:21:55 UTC 2017


On Sun, May 21, 2017 at 01:48:54PM +0300, Niko Tyni wrote:
> On Sun, May 21, 2017 at 12:49:25PM +0300, Niko Tyni wrote:
> > Debconf::TmpFile uses POSIX::tmpnam(), which was deprecated
> > in Perl 5.24:
> 
> > I've confirmed that debconf crashes with this on Perl 5.26 when
> > dpkg-reconfiguring console-setup on a small enough terminal that the
> > textboxes need scrolling. It only happens with the dialog frontend,
> > not whiptail.
> 
> The 5.24 warning can be seen with the 'editor' backend, and the issue
> makes that one break totally on 5.26, regardless of the terminal size:
> 
>   # dpkg-reconfigure -plow debconf
>   Unimplemented: POSIX::tmpnam(): use File::Temp instead at /usr/share/perl5/Debconf/TmpFile.pm line 16.
>   # echo $?
>   255
> 
> Proposed, lightly tested patch attached. Niels said on IRC
> that it would be good to fix this for stretch, so presumably
> it's OK for an unblock by the release team.

Thanks; applied in 1.5.61, with the amendment that I bumped the
Pre-Depends on perl-base to 5.20.1-3~ to account for this.

Please do also add the appropriate Breaks (or Conflicts if necessary,
but I suspect that's overkill and it may be harmful) to perl-base 5.26;
it isn't uncommon for people to try skip upgrades which mostly work even
if they're unsupported, and I wouldn't want to see them broken due to
something we could have avoided.

I think Debconf::TmpFile should in fact just be replaced entirely by
File::Temp at this point, but let's stick with the minimal patch for
now.

-- 
Colin Watson                                       [cjwatson at debian.org]



More information about the Debconf-devel mailing list