Skip to content

5.28.2 installation error (cpan/Time-Local/t/Local.t & Porting/exec-bit.txt) #17625

@sjfleck

Description

@sjfleck

Module:

Installing perl

Description

I'm having an issue installing Perl 5.28.1. When I do the make test step I get an 2 errors:

cpan/Time-Local/t/Local ........................................ # Failed test 'timelocal year for 1970 1 2 0 0 0'
at t/Local.t line 109.
got: '170'
expected: '70'
Failed test 'timegm year for 1970 1 2 0 0 0'
at t/Local.t line 124.
got: '170'
expected: '70'
Looks like you failed 2 tests of 187.
FAILED at test 6

and

t/porting/exec-bit ............................................. # Failed test 87 - File ../cpan/Time-Local/lib/Time/Local.pm has shebang at porting/exec-bit.t line 58
Failed test 88 - tarball will chmod +x ../cpan/Time-Local/lib/Time/Local.pm at porting/exec-bit.t line 60
Remove the exec bit or add '../cpan/Time-Local/lib/Time/Local.pm' to Porting/exec-bit.txt

I read online that there was a patch for the first issue as of 2020. I'm inexperienced with patches and had a difficult time understanding how to use it, so I just edited Local.t by hand. I reran t eliminated the first error, but another error was added below. I now had these errors:

t/porting/exec-bit ............................................. # Failed test 87 - File ../cpan/Time-Local/lib/Time/Local.pm has shebang at porting/exec-bit.t line 58
Failed test 88 - tarball will chmod +x ../cpan/Time-Local/lib/Time/Local.pm at porting/exec-bit.t line 60
Remove the exec bit or add '../cpan/Time-Local/lib/Time/Local.pm' to Porting/exec-bit.txt
Failed test 90 - tarball will chmod +x ../cpan/Time-Local/t/Local.t at porting/exec-bit.t line 60
Remove the exec bit or add '../cpan/Time-Local/t/Local.t' to Porting/exec-bit.txt
FAILED at test 87

I don't understand these errors too well, but they refer to lines 58 and 60 of exec-bit.txt. These lines are "Porting/sort_perldiag.pl" and "Porting/valgrindpp.pl" respectively.

As per the error's instructions I added:
../cpan/Time-Local/lib/Time/Local.pm
../cpan/Time-Local/t/Local.t
into 'exec-bit.txt' but that simply lead to many more errors. I'm really unsure how to move forward.

That being said, I don't understand the "Local/lib/Time/Local.pm has shebang at porting/exec-bit.t line 58" error. The only shebang was at the very top and strangely it's including a path that I really don't want. I checked some of the other .pl files in the Porting directory and they also have "#!/usr/bin/perl" or "#!/usr/bin/perl -w" at the top. This is not a directory that I designated or even have access to.

Any help with this would be greatly appreciated!

Steps to Reproduce

uploaded perl-5.28.2.tar.gz to '/gpfs/scratch/sjfleck/modulefiles'
tar -xzf perl-5.30.1.tar.gz
cd perl-5.28.2
./Configure -des -Dprefix=/user/sjfleck/localperl
make
make test
(ERROS AT THIS STEP)
make install (NEVER MADE IT TO THIS STEP!)

Expected behavior

Installation

Perl configuration

# perl -V output goes here

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions