Jitka Plesníková
2017-06-14 11:52:27 UTC
Hi,
we updated Perl to 5.26 in Fedora. One of changes is removal of the
current directory (".")
from @INC by default. This change caused that some Perl tests failed.
Details about the change
http://search.cpan.org/dist/perl-5.26.0/pod/perldelta.pod#Removal_of_the_current_directory_(%22.%22)***@INC
Example of error:
Can't locate example.pm in @INC (you may need to install the example
module) (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5
/usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl
/usr/lib64/perl5 /usr/share/perl5) at runme.pl line 7.
BEGIN failed--compilation aborted at runme.pl line 7.
make[3]: *** [../../Makefile:285: perl5_run] Error 2
make[2]: *** [Makefile:10: check] Error 2
make[1]: *** [Makefile:257: class.actionexample] Error 2
checking Examples/perl5/constants
Can't locate example.pm in @INC (you may need to install the example
module) (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5
/usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl
/usr/lib64/perl5 /usr/share/perl5) at runme.pl line 3.
BEGIN failed--compilation aborted at runme.pl line 3.
make[3]: *** [../../Makefile:285: perl5_run] Error 2
make[2]: *** [Makefile:10: check] Error 2
make[1]: *** [Makefile:257: constants.actionexample] Error 2
The error could be fixed by adding 'BEGIN { push @INC, '.'; }' to the tests.
The attachment contains patch which fixes the tests for Fedora.
Regards,
Jitka
we updated Perl to 5.26 in Fedora. One of changes is removal of the
current directory (".")
from @INC by default. This change caused that some Perl tests failed.
Details about the change
http://search.cpan.org/dist/perl-5.26.0/pod/perldelta.pod#Removal_of_the_current_directory_(%22.%22)***@INC
Example of error:
Can't locate example.pm in @INC (you may need to install the example
module) (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5
/usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl
/usr/lib64/perl5 /usr/share/perl5) at runme.pl line 7.
BEGIN failed--compilation aborted at runme.pl line 7.
make[3]: *** [../../Makefile:285: perl5_run] Error 2
make[2]: *** [Makefile:10: check] Error 2
make[1]: *** [Makefile:257: class.actionexample] Error 2
checking Examples/perl5/constants
Can't locate example.pm in @INC (you may need to install the example
module) (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5
/usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl
/usr/lib64/perl5 /usr/share/perl5) at runme.pl line 3.
BEGIN failed--compilation aborted at runme.pl line 3.
make[3]: *** [../../Makefile:285: perl5_run] Error 2
make[2]: *** [Makefile:10: check] Error 2
make[1]: *** [Makefile:257: constants.actionexample] Error 2
The error could be fixed by adding 'BEGIN { push @INC, '.'; }' to the tests.
The attachment contains patch which fixes the tests for Fedora.
Regards,
Jitka
--
Jitka PlesnÃková
Software Engineer
Red Hat
Jitka PlesnÃková
Software Engineer
Red Hat