Skip to content

Commit

Permalink
perl-5.12.1: Add errno fix from perl-5.18.2
Browse files Browse the repository at this point in the history
Avoid error

    ext/Errno/t/Errno..............................................FAILED--Further testing stopped: No errno's are exported
    make: *** [makefile:874: test] Error 29

by adding a fix from perl-5.18.2.
  • Loading branch information
donald committed Apr 26, 2020
1 parent e5ddceb commit 2ef95f0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions perl-5.12.1-0.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ test -e perl-$VERSION.tar.gz || wget http://www.cpan.org/src/5.0/perl-$VERSION.t
test -d perl-$VERSION || tar xf perl-$VERSION.tar.gz
cd perl-$VERSION

# Note: make test below would fail with:
# ext/Errno/t/Errno ........... FAILED--Further testing stopped: No errno's are exported
# Cure:
# https://rt.perl.org/Public/Bug/Display.html?id=123784
# ... caused by a change in GCC 5.0's preprocesor
# ... Simple work-around is to call the preprocessor with -P option
sed -i -e '/"$cppstdin $Config/ s/cppstdin/cppstdin -P/' ext/Errno/Errno_pm.PL

# -d : use defaults for all answers.
# -e : go on without questioning past the production of config.sh.
# -s : silent mode, only echoes questions and essential information.
Expand Down

0 comments on commit 2ef95f0

Please sign in to comment.