Skip Menu |

This queue is for tickets about the Module-Build-Tiny CPAN distribution.

Report information
The Basics
Id: 97464
Status: resolved
Priority: 0/
Queue: Module-Build-Tiny

People
Owner: Nobody in particular
Requestors: ether [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: 0.037



Subject: failing tests on darwin
Here's what I've figured out so far: tests pass on 5.18.2: : [ether@tequila git/Module-Build-Tiny].9$; which perl /Users/ether/perl5/perlbrew/perls/18.2/bin/perl : [ether@tequila git/Module-Build-Tiny].9$; perl -Ilib t/simple.t Creating new 'Build' script for 'Foo-Bar' version '0.001' ok 1 - Ran Build.PL ok 2 - Build created ok 3 - Build is executable ok 4 - Build has shebang line with $^X ok 5 - _build_params created ok 6 - Could run Build # got output: cp share/file.txt blib/lib/auto/share/dist/Foo-Bar/file.txt # cp lib/Foo/Bar.pm blib/lib/Foo/Bar.pm # cp script/simple blib/script/simple # cc -I. -Ilib -I/Users/ether/perl5/perlbrew/perls/18.2/lib/5.18.2/darwin-2level/CORE -DVERSION="0.001" -DXS_VERSION="0.001" -c -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/opt/local/include -O3 -o temp/Simple.o temp/Simple.c # env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib -L/opt/local/lib -fstack-protector -o blib/arch/auto/Simple/Simple.bundle temp/Simple.o ok 7 - Build output looks correctly ok 8 - created blib ok 9 - created blib/lib ok 10 - created blib/script ok 11 - Foo::Bar copied to blib ok 12 - pm contents are correct ok 13 - pm file in blib is readonly ok 14 - bin/simple copied to blib ok 15 - blib/script/simple contents are correct ok 16 - blib/script/simple is executable ok 17 - script in blib is readonly ok 18 - blib/script/simple has shebang line with $^X ok 19 - sharedir has been made ok 20 - sharedir file has been made ok 21 - sharedir has been made ok 22 - sharedir file has been made ok 23 - Can run XSub Simple::foo ok 24 - Could run Build install ok 25 - Build install output looks correctly ok 26 - Module is installed ok 27 - Script is installed 1..27 but fail on 5.20.0 and 5.21.*: : [ether@tequila git/Module-Build-Tiny].9$; which perl /Users/ether/perl5/perlbrew/perls/20.0/bin/perl : [ether@tequila git/Module-Build-Tiny].9$; perl -Ilib t/simple.t Creating new 'Build' script for 'Foo-Bar' version '0.001' ok 1 - Ran Build.PL ok 2 - Build created ok 3 - Build is executable ok 4 - Build has shebang line with $^X ok 5 - _build_params created ok 6 - Could run Build # got output: cc -I. -Ilib -I/Users/ether/perl5/perlbrew/perls/20.0/lib/5.20.0/darwin-2level/CORE -DVERSION="0.001" -DXS_VERSION="0.001" -c -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/opt/local/include -O3 -o temp/Simple.o temp/Simple.c # env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib -L/opt/local/lib -fstack-protector -o blib/arch/auto/Simple/Simple.bundle temp/Simple.o not ok 7 - Build output looks correctly # Failed test 'Build output looks correctly' # at t/simple.t line 83. # 'cc -I. -Ilib -I/Users/ether/perl5/perlbrew/perls/20.0/lib/5.20.0/darwin-2level/CORE -DVERSION="0.001" -DXS_VERSION="0.001" -c -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/opt/local/include -O3 -o temp/Simple.o temp/Simple.c # env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib -L/opt/local/lib -fstack-protector -o blib/arch/auto/Simple/Simple.bundle temp/Simple.o # ' # doesn't match '(?^:lib/Foo/Bar\.pm)' ok 8 - created blib ok 9 - created blib/lib ok 10 - created blib/script ok 11 - Foo::Bar copied to blib ok 12 - pm contents are correct ok 13 - pm file in blib is readonly ok 14 - bin/simple copied to blib ok 15 - blib/script/simple contents are correct ok 16 - blib/script/simple is executable ok 17 - script in blib is readonly ok 18 - blib/script/simple has shebang line with $^X ok 19 - sharedir has been made ok 20 - sharedir file has been made ok 21 - sharedir has been made ok 22 - sharedir file has been made ok 23 - Can run XSub Simple::foo ok 24 - Could run Build install ok 25 - Build install output looks correctly ok 26 - Module is installed ok 27 - Script is installed 1..27 # Looks like you failed 1 test of 27. : [ether@tequila git/Module-Build-Tiny].9$; which perl /Users/ether/perl5/perlbrew/perls/21.1/bin/perl : [ether@tequila git/Module-Build-Tiny].9$; perl -Ilib t/simple.t Creating new 'Build' script for 'Foo-Bar' version '0.001' ok 1 - Ran Build.PL ok 2 - Build created ok 3 - Build is executable ok 4 - Build has shebang line with $^X ok 5 - _build_params created ok 6 - Could run Build # got output: cc -I. -Ilib -I/Users/ether/perl5/perlbrew/perls/21.1/lib/5.21.1/darwin-2level/CORE -DVERSION="0.001" -DXS_VERSION="0.001" -c -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/opt/local/include -O3 -o temp/Simple.o temp/Simple.c # env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib -L/opt/local/lib -fstack-protector -o blib/arch/auto/Simple/Simple.bundle temp/Simple.o not ok 7 - Build output looks correctly # Failed test 'Build output looks correctly' # at t/simple.t line 83. # 'cc -I. -Ilib -I/Users/ether/perl5/perlbrew/perls/21.1/lib/5.21.1/darwin-2level/CORE -DVERSION="0.001" -DXS_VERSION="0.001" -c -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/opt/local/include -O3 -o temp/Simple.o temp/Simple.c # env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib -L/opt/local/lib -fstack-protector -o blib/arch/auto/Simple/Simple.bundle temp/Simple.o # ' # doesn't match '(?^:lib/Foo/Bar\.pm)' ok 8 - created blib ok 9 - created blib/lib ok 10 - created blib/script ok 11 - Foo::Bar copied to blib ok 12 - pm contents are correct ok 13 - pm file in blib is readonly ok 14 - bin/simple copied to blib ok 15 - blib/script/simple contents are correct ok 16 - blib/script/simple is executable ok 17 - script in blib is readonly ok 18 - blib/script/simple has shebang line with $^X ok 19 - sharedir has been made ok 20 - sharedir file has been made ok 21 - sharedir has been made ok 22 - sharedir file has been made ok 23 - Can run XSub Simple::foo ok 24 - Could run Build install ok 25 - Build install output looks correctly ok 26 - Module is installed ok 27 - Script is installed 1..27 # Looks like you failed 1 test of 27. : [ether@tequila git/Module-Build-Tiny].9$; which perl /Users/ether/perl5/perlbrew/perls/21.2/bin/perl : [ether@tequila git/Module-Build-Tiny].9$; perl -Ilib t/simple.t Can't locate Module/Build/Tiny.pm in @INC (you may need to install the Module::Build::Tiny module) (@INC contains: inc /Users/ether/.perlbrew/libs/21.2@std/lib/perl5/darwin-2level /Users/ether/.perlbrew/libs/21.2@std/lib/perl5 /Users/ether/perl5/perlbrew/perls/21.2/lib/site_perl/5.21.2/darwin-2level /Users/ether/perl5/perlbrew/perls/21.2/lib/site_perl/5.21.2 /Users/ether/perl5/perlbrew/perls/21.2/lib/5.21.2/darwin-2level /Users/ether/perl5/perlbrew/perls/21.2/lib/5.21.2 .) at Build.PL line 1. BEGIN failed--compilation aborted at Build.PL line 1. not ok 1 - Ran Build.PL # Failed test 'Ran Build.PL' # at t/simple.t line 59. # got: '512' # expected: '0' not ok 2 - Build created # Failed test 'Build created' # at t/simple.t line 60. not ok 3 - Build is executable # Failed test 'Build is executable' # at t/simple.t line 65. readline() on closed filehandle $fh at t/simple.t line 69. not ok 4 - Build has shebang line with $^X # Failed test 'Build has shebang line with $^X' # at t/simple.t line 71. # undef # doesn't match '(?^:\A(?^:(?:#!\/Users\/ether\/perl5\/perlbrew\/perls\/21\.2\/bin\/perl5\.21\.2|\#\!\/Users\/ether\/perl5\/perlbrew\/perls\/21\.2\/bin\/perl5\.21\.2)))' not ok 5 - _build_params created # Failed test '_build_params created' # at t/simple.t line 72. Can't open perl script "Build": No such file or directory ok 6 - Could run Build # got output: not ok 7 - Build output looks correctly # Failed test 'Build output looks correctly' # at t/simple.t line 83. # '' # doesn't match '(?^:lib/Foo/Bar\.pm)' not ok 8 - created blib # Failed test 'created blib' # at t/simple.t line 84. not ok 9 - created blib/lib # Failed test 'created blib/lib' # at t/simple.t line 85. not ok 10 - created blib/script # Failed test 'created blib/script' # at t/simple.t line 86. not ok 11 - Foo::Bar copied to blib # Failed test 'Foo::Bar copied to blib' # at t/simple.t line 90. Can't open blib/lib/Foo/Bar.pm: No such file or directory at t/simple.t line 52, <> chunk 1. not ok 12 - pm contents are correct # Failed test 'pm contents are correct' # at t/simple.t line 91. # got: 'package Foo::Bar; # # use vars qw( $VERSION ); # $VERSION = '0.01'; # # use strict; # # use Carp 0 (); # # 1; # # __END__ # # =head1 NAME # # Foo::Bar - Perl extension for blah blah blah # # =head1 DESCRIPTION # # Stub documentation for Foo::Bar. # # =head1 AUTHOR # # A. U. Thor, a.u.thor@a.galaxy.far.far.away # # =cut # ' # expected: undef Use of uninitialized value in bitwise and (&) at t/simple.t line 92, <> line 1. ok 13 - pm file in blib is readonly not ok 14 - bin/simple copied to blib # Failed test 'bin/simple copied to blib' # at t/simple.t line 95. Can't open blib/script/simple: No such file or directory at t/simple.t line 52. Can't open blib/script/simple: No such file or directory at t/simple.t line 52. Use of uninitialized value in quotemeta at t/simple.t line 96. ok 15 - blib/script/simple contents are correct not ok 16 - blib/script/simple is executable # Failed test 'blib/script/simple is executable' # at t/simple.t line 101. Use of uninitialized value in bitwise and (&) at t/simple.t line 103. ok 17 - script in blib is readonly readline() on closed filehandle $fh at t/simple.t line 106. not ok 18 - blib/script/simple has shebang line with $^X # Failed test 'blib/script/simple has shebang line with $^X' # at t/simple.t line 107. # undef # doesn't match '(?^:\A(?^:(?:#!\/Users\/ether\/perl5\/perlbrew\/perls\/21\.2\/bin\/perl5\.21\.2|\#\!\/Users\/ether\/perl5\/perlbrew\/perls\/21\.2\/bin\/perl5\.21\.2)))' Cannot find blib even in /Users/ether/git/Module-Build-Tiny/sg7y8cpZ4E/Foo-Bar/../../../../.. # Tests were run but no plan was declared and done_testing() was not seen. # Looks like your test exited with 2 just after 18.
A ha! I figured it out after staring at the output... https://metacpan.org/changes/distribution/ExtUtils-Install When I saw the 1.68 release go by, I set this in my environment: export PERL_INSTALL_QUIET=1 ...which causes tests to fail, because the 'cp' lines are no longer visible in the output. Solution: you need to explicitly unset ENV{PERL_INSTALL_QUIET} in this test. I'll send a PR!
thanks!