Subject: | Win32::Console should not be a prereq on Linux |
Term::Title builds just fine on linux but will not install without force
because Win32::Console is listed as a prerequisite.
CPAN.pm: Building D/DA/DAGOLDEN/Term-Title-0.04.tar.gz
Checking if your kit is complete...
Looks good
Warning: prerequisite Win32::Console 0 not found.
Writing Makefile for Term::Title
Writing MYMETA.yml and MYMETA.json
... snip 8<
DAGOLDEN/Term-Title-0.04.tar.gz
Tests succeeded but one dependency not OK (Win32::Console)
DAGOLDEN/Term-Title-0.04.tar.gz
[dependencies] -- NA
Running make install
make test had returned bad status, won't install without force
Could not read metadata file. Falling back to other methods to determine
prerequisites
Failed during this command:
JDB/Win32-Console-0.09.tar.gz : writemakefile NO
'/opt/perl/bin/perl Makefile.PL' returned status 65280
DAGOLDEN/Term-Title-0.04.tar.gz : make_test NO one
dependency not OK (Win32::Console)
This can easily be fixed in Makefile.PL:
my %WriteMakefileArgs = (
"ABSTRACT" => "Portable API to set the terminal titlebar",
"AUTHOR" => "David Golden <dagolden\@cpan.org>",
"BUILD_REQUIRES" => {
"File::Find" => 0,
"File::Temp" => 0,
"Test::More" => 0
},
"CONFIGURE_REQUIRES" => {
"ExtUtils::MakeMaker" => "6.30"
},
"DISTNAME" => "Term-Title",
"EXE_FILES" => [],
"LICENSE" => "apache",
"NAME" => "Term::Title",
"PREREQ_PM" => {
"Exporter" => 0,
"strict" => 0,
"warnings" => 0
},
"VERSION" => "0.04",
"test" => {
"TESTS" => "t/*.t"
}
);
$WriteMakefileArgs{"PREREQ_PM"}{"Win32::Console"} = 0 if ( $^O =~
m/^MSWin32^/i );