From 2ef95f03629beea4e919a71cbc66bf13e6e1780e Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Thu, 23 Apr 2020 11:37:25 +0200 Subject: [PATCH] perl-5.12.1: Add errno fix from perl-5.18.2 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. --- perl-5.12.1-0.build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/perl-5.12.1-0.build.sh b/perl-5.12.1-0.build.sh index e0341b3..da6d565 100755 --- a/perl-5.12.1-0.build.sh +++ b/perl-5.12.1-0.build.sh @@ -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.