Skip Menu |
 

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

Report information
The Basics
Id: 120956
Status: open
Priority: 0/
Queue: Module-Install

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

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



Subject: Fails test t/22_installdirs.t
Not @INC related as far as I can tell.

t/20_authors_with_special_characters.t .. ok
t/21_makemaker_args.t ................... ok

Show quoted text
#   Failed test 'correct INSTALLDIRS'
#   at t/22_installdirs.t line 34.

Show quoted text
#   Failed test 'correct INSTALLDIRS'
#   at t/22_installdirs.t line 55.
old INSTALLDIRS (probably set by makemaker_args) is overriden by installdirs

Show quoted text
#   Failed test 'correct INSTALLDIRS'
#   at t/22_installdirs.t line 77.

Show quoted text
#   Failed test 'correct INSTALLDIRS'
#   at t/22_installdirs.t line 98.
# Looks like you failed 4 tests of 24.
t/22_installdirs.t ......................
Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/24 subtests
t/23_pl_files.t ......................... ok





-- 
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
Download (untitled) / with headers
text/plain 170b
On 2017-04-05 05:46:51, KENTNL wrote: Show quoted text
> Not @INC related as far as I can tell.
Neat. No idea, as I cannot repro. Anything further you can discover would be appreciated.

On 2017-05-13 00:10:53, ETHER wrote:
> On 2017-04-05 05:46:51, KENTNL wrote:
> > Not @INC related as far as I can tell.
>
> Neat. No idea, as I cannot repro. Anything further you can discover
> would be appreciated.

My `cpanm` wrapper sets PERL_MM_OPT=" INSTALLDIRS=site" because there is literally no good reason why packages should be installing anywhere else on Perl >5.14 , and so it serves to defeat all the old stupid code that attempts to install to the core paths.

But I guess that conflicts with this test.

 

PERL_MM_OPT="INSTALLDIRS=site" prove -lvr t/22_installdirs.t
t/22_installdirs.t ..
1..24
ok 1 - create_dist
include /home/kent/.cpanm/work/1494643519.6440/Module-Install-1.18/t/Foo9721/inc/Module/Install.pm
include inc/Module/Install/Metadata.pm
include inc/Module/Install/Base.pm
include inc/Module/Install/Makefile.pm
include inc/Module/Install/WriteAll.pm
include inc/Module/Install/Win32.pm
include inc/Module/Install/Can.pm
include inc/Module/Install/Fetch.pm
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Foo
Writing MYMETA.yml and MYMETA.json
Writing META.yml
ok 2 - build_dist
ok 3
ok 4 - file is not empty
# INSTALLDIRS: site
not ok 5 - correct INSTALLDIRS

#   Failed test 'correct INSTALLDIRS'
#   at t/22_installdirs.t line 34.
ok 6 - kill_dist
ok 7 - create_dist
include /home/kent/.cpanm/work/1494643519.6440/Module-Install-1.18/t/Foo9721/inc/Module/Install.pm
include inc/Module/Install/Metadata.pm
include inc/Module/Install/Base.pm
include inc/Module/Install/Makefile.pm
include inc/Module/Install/WriteAll.pm
include inc/Module/Install/Win32.pm
include inc/Module/Install/Can.pm
include inc/Module/Install/Fetch.pm
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Foo
Writing MYMETA.yml and MYMETA.json
Writing META.yml
ok 8 - build_dist
ok 9
ok 10 - file is not empty
# INSTALLDIRS: site
not ok 11 - correct INSTALLDIRS

#   Failed test 'correct INSTALLDIRS'
#   at t/22_installdirs.t line 55.
ok 12 - kill_dist
ok 13 - create_dist
old INSTALLDIRS (probably set by makemaker_args) is overriden by installdirs
include /home/kent/.cpanm/work/1494643519.6440/Module-Install-1.18/t/Foo9721/inc/Module/Install.pm
include inc/Module/Install/Metadata.pm
include inc/Module/Install/Base.pm
include inc/Module/Install/Makefile.pm
include inc/Module/Install/WriteAll.pm
include inc/Module/Install/Win32.pm
include inc/Module/Install/Can.pm
include inc/Module/Install/Fetch.pm
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Foo
Writing MYMETA.yml and MYMETA.json
Writing META.yml
ok 14 - build_dist
ok 15
ok 16 - file is not empty
# INSTALLDIRS: site
not ok 17 - correct INSTALLDIRS

#   Failed test 'correct INSTALLDIRS'
#   at t/22_installdirs.t line 77.
ok 18 - kill_dist
ok 19 - create_dist
include /home/kent/.cpanm/work/1494643519.6440/Module-Install-1.18/t/Foo9721/inc/Module/Install.pm
include inc/Module/Install/Metadata.pm
include inc/Module/Install/Base.pm
include inc/Module/Install/Makefile.pm
include inc/Module/Install/WriteAll.pm
include inc/Module/Install/Win32.pm
include inc/Module/Install/Can.pm
include inc/Module/Install/Fetch.pm
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Foo
Writing MYMETA.yml and MYMETA.json
Writing META.yml
ok 20 - build_dist
ok 21
ok 22 - file is not empty
# INSTALLDIRS: site
not ok 23 - correct INSTALLDIRS

#   Failed test 'correct INSTALLDIRS'
#   at t/22_installdirs.t line 98.
ok 24 - kill_dist
# Looks like you failed 4 tests of 24.
Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/24 subtests

Test Summary Report
-------------------
t/22_installdirs.t (Wstat: 1024 Tests: 24 Failed: 4)
  Failed tests:  5, 11, 17, 23
  Non-zero exit status: 4
Files=1, Tests=24,  2 wallclock secs ( 0.03 usr  0.01 sys +  1.04 cusr  0.19 csys =  1.27 CPU)
Result: FAIL



-- 
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
 

Download (untitled) / with headers
text/plain 678b
On 2017-05-12 19:54:39, KENTNL wrote: Show quoted text
> On 2017-05-13 00:10:53, ETHER wrote:
> > On 2017-04-05 05:46:51, KENTNL wrote:
> > > Not @INC related as far as I can tell.
> > > > Neat. No idea, as I cannot repro. Anything further you can discover > > would be appreciated.
> > My `cpanm` wrapper sets PERL_MM_OPT=" INSTALLDIRS=site" because there > is > literally no good reason why packages should be installing anywhere > else on > Perl >5.14 , and so it serves to defeat all the old stupid code that > attempts > to install to the core paths. > > But I guess that conflicts with this test.
Good to know... I wonder if it is sane to wipe out PERL_MM_OPT at the top of the test...


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.