Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't bother with IO::Tty on Cygwin.

average_drifter on freenode #perl-cats pointed out that IO::Tty fails
to install on contemporary Cygwin.  This change skips that requirement
when $^O eq 'cygwin'.

After investigating, I found and reported two problems.  These must be
resolved before undoing this work-around:

IO::Tty compile failure:
https://rt.cpan.org/Ticket/Display.html?id=80477

App::cpanminus conrigure timeout is too short:
https://rt.cpan.org/Ticket/Display.html?id=80478
  • Loading branch information...
commit 513999b229c682a25773be4199f93685223957ee 1 parent ec43fcd
Rocco Caputo authored
Showing with 22 additions and 15 deletions.
  1. +22 −15 mylib/PoeBuildInfo.pm
37 mylib/PoeBuildInfo.pm
View
@@ -30,7 +30,7 @@ sub CONFIG_REQUIREMENTS () {
}
sub CORE_REQUIREMENTS () {
- (
+ my @core_requirements = (
"Carp" => 0,
"Errno" => 1.09,
"Exporter" => 0,
@@ -42,21 +42,28 @@ sub CORE_REQUIREMENTS () {
"Storable" => 2.16,
"Test::Harness" => 2.26,
"Time::HiRes" => 1.59,
- (
- ($^O eq "MSWin32")
- ? (
- "Win32::Console" => 0.031,
- "Win32API::File" => 0.05,
- "Win32::Job" => 0.03,
- "Win32::Process" => 0,
- "Win32" => 0,
- )
- : (
- "IO::Tty" => 1.08, # avoids crashes on fbsd
- )
- ),
CONFIG_REQUIREMENTS,
- )
+ );
+
+ if ($^O eq "MSWin32") {
+ push @core_requirements, (
+ "Win32::Console" => 0.031,
+ "Win32API::File" => 0.05,
+ "Win32::Job" => 0.03,
+ "Win32::Process" => 0,
+ "Win32" => 0,
+ );
+ }
+ elsif ($^O eq 'cygwin') {
+ # Skip IO::Tty. It has trouble building as of this writing.
+ }
+ else {
+ push @core_requirements, (
+ "IO::Tty" => 1.08, # avoids crashes on fbsd
+ );
+ }
+
+ return @core_requirements;
}
sub DIST_AUTHOR () {
Please sign in to comment.
Something went wrong with that request. Please try again.