Subject: | IO::Tty::Constant needs $VERSION to prevent downgrade |
CPAN::Shell->upgrade() tries to install an ancient version of IO-Tty because the auto-generated IO::Tty::Constant in v1.12 does not have a $VERSION.
CPAN: Module::CoreList loaded ok (v5.20141002)
CPAN: CPAN::SQLite loaded ok (v0.204)
Package namespace installed latest in CPAN file
IO::Tty::Constant undef 0.04 GBARR/IO-Tty-0.04.tar.gz
Luckily, version 0.04 cannot be installed in an updated perl because Config.pm does exports "config_sh" not old-timey "&config_sh".
The following patch works to keep CPAN from doing this. Thank you.
--- Makefile.PL.orig 2014-10-02 15:04:56.000000000 -0700
+++ Makefile.PL 2014-10-02 15:05:56.000000000 -0700
@@ -359,6 +359,8 @@
package IO::Tty::Constant;
+our \$VERSION = '$Package_Version';
+
use vars qw(\@ISA \@EXPORT_OK);
require Exporter;