Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the App-Licensecheck CPAN distribution.

Report information
The Basics
Id: 116269
Status: resolved
Priority: 0/
Queue: App-Licensecheck

People
Owner: JONASS [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: v3.0.3
Fixed in: v3.0.4



Subject: System perl used in perls
Tests fail if the first perl in PATH is not the perl used for building and testing the distribution. At least that's an explanation for test failures like this: ... # Failed test 'stderr_is_eq: perl bin/licensecheck -m --copyright t/devscripts/bsd-regents.c, ' # at t/devscripts.t line 54. # got: 'Can't locate strictures.pm in @INC (you may need to install the strictures module) (@INC contains: /home/cpansand/.cpan/build/2016071803/App-Licensecheck-v3.0.3-WNvIGx/blib/lib /home/cpansand/.cpan/build/2016071803/App-Licensecheck-v3.0.3-WNvIGx/blib/arch /usr/local/lib/perl5/site_perl/mach/5.20 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.20/mach /usr/local/lib/perl5/5.20 /usr/local/lib/perl5/site_perl/5.20 /usr/local/lib/perl5/site_perl/5.20/mach .) at bin/licensecheck line 5. # BEGIN failed--compilation aborted at bin/licensecheck line 5. # ' # expected: '' ... Usually one has to use $^X when calling scripts to fix this. Or use the converted script in blib/scripts which has the correct shebang already set.
Subject: Re: [rt.cpan.org #116269] System perl used in perls
Date: Mon, 18 Jul 2016 13:13:31 +0200
To: bug-App-Licensecheck [...] rt.cpan.org
From: Jonas Smedegaard <dr [...] jones.dk>
Quoting Slaven_Rezic via RT (2016-07-18 07:40:09) Show quoted text
> Tests fail if the first perl in PATH is not the perl used for building > and testing the distribution. At least that's an explanation for test > failures like this: > > ... > # Failed test 'stderr_is_eq: perl bin/licensecheck -m --copyright t/devscripts/bsd-regents.c, ' > # at t/devscripts.t line 54. > # got: 'Can't locate strictures.pm in @INC (you may need to install the strictures module) (@INC contains: /home/cpansand/.cpan/build/2016071803/App-Licensecheck-v3.0.3-WNvIGx/blib/lib /home/cpansand/.cpan/build/2016071803/App-Licensecheck-v3.0.3-WNvIGx/blib/arch /usr/local/lib/perl5/site_perl/mach/5.20 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.20/mach /usr/local/lib/perl5/5.20 /usr/local/lib/perl5/site_perl/5.20 /usr/local/lib/perl5/site_perl/5.20/mach .) at bin/licensecheck line 5. > # BEGIN failed--compilation aborted at bin/licensecheck line 5. > # ' > # expected: '' > ... > > Usually one has to use $^X when calling scripts to fix this. Or use > the converted script in blib/scripts which has the correct shebang > already set.
Thanks! At first I thought you were mistaken - because strictures indeed was not declared as test requirement (only runtime requirement), but thanks to your hints I learned about the importance of $^X. - Jonas -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private
Download signature.asc
application/pgp-signature 819b

Message body not shown because it is not plain text.