Bug#694537: libio-prompt-perl: Version of IO::Prompt in wheezy dies if you call prompt() in non-"main" package
Michael Howe
michael.howe at it.ox.ac.uk
Tue Nov 27 12:23:29 UTC 2012
Package: libio-prompt-perl
Version: 0.997001-1
Severity: important
Hello,
The version of IO::Prompt in wheezy (0.997001-1) is affected by
https://rt.cpan.org/Public/Bug/Display.html?id=69084 which makes it
unusable for any code that calls prompt() that isn't in the "main"
package (hence the severity of this bug report).
A very basic script to demonstrate this issue:
---------------------------8<-----------------------------------
#!/usr/bin/perl
use strict;
use warnings;
package Test;
use IO::Prompt;
sub testprompt {
prompt "This is a test";
}
package main;
use Test;
Test::testprompt;
---------------------------8<-----------------------------------
Which dies with the error 'Can't call method "opened" without a package
or object reference at /usr/share/perl5/IO/Prompt.pm line 188.'.
The version in unstable (0.997002-1) appears to contain the fix for this
issue, but as far as I can tell there's no pending unblock request
(apologies for the noise if there is and I've just missed it).
I'm aware that upstream recommend moving to libio-prompter-perl instead,
but that will first appear in wheezy, which doesn't give much overlap
time in which to convert scripts.
Many thanks,
Michael
-- System Information:
Debian Release: wheezy/sid
APT prefers testing-updates
APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libio-prompt-perl depends on:
ii libterm-readkey-perl 2.30-4+b2
ii libwant-perl 0.21-1
ii perl 5.14.2-15
ii perl-modules [libversion-perl] 5.14.2-15
libio-prompt-perl recommends no packages.
libio-prompt-perl suggests no packages.
-- no debconf information
More information about the pkg-perl-maintainers
mailing list