Bug#863071: debconf: POSIX::tmpnam() is deprecated in Perl 5.24 and will be removed in 5.26

Niko Tyni ntyni at debian.org
Sun May 21 10:48:54 UTC 2017


Control: tag -1 patch

On Sun, May 21, 2017 at 12:49:25PM +0300, Niko Tyni wrote:
> Package: debconf
> Version: 1.5.60
> Severity: important
> User: debian-perl at lists.debian.org
> Usertags: perl-5.24-transition perl-5.26-transition bcn2017
> 
> 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.
-- 
Niko Tyni   ntyni at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-File-Temp-instead-of-the-deprecated-POSIX-tmpnam.patch
Type: text/x-diff
Size: 1034 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/perl-maintainers/attachments/20170521/8ef33da3/attachment.patch>


More information about the Perl-maintainers mailing list