Skip to content

Commit

Permalink
CI: Flush the CPAN cache if /usr/bin/perl has been updated since
Browse files Browse the repository at this point in the history
the cache was built. Possible fix for 2.4.x failure seen here:

https://github.com/apache/httpd/actions/runs/11322484507/job/31483266212

SSLeay.c: loadable library and perl binaries are mismatched (got first handshake key 0xeb00080, needed 0xf380080)

perldiag(1) describes this as a mismatch between libraries and binaries,
likely solved by reinstalling XS modules:

https://github.com/Perl/perl5/blob/77b78882c76e7461ccc4dcf2eb3afb9644836a72/pod/perldiag.pod#L3617



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1921307 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
notroj committed Oct 14, 2024
1 parent b814e49 commit c34a276
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/travis_before_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ echo "add-auto-load-safe-path $HOME/work/httpd/httpd/.gdbinit" >> $HOME/.gdbinit
if ! test -v SKIP_TESTING -o -v NO_TEST_FRAMEWORK; then
# Clear CPAN cache if necessary
if [ -v CLEAR_CACHE ]; then rm -rf ~/perl5; fi

# Also flush if the system Perl is newer than the cache, otherwise
# it may refuse to load the (older) XS modules.
if [ /usr/bin/perl -nt ~/perl5/.key ]; then
: Purging cache since /usr/bin/perl has been updated
rm -rf ~/perl5
fi

cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)

Expand Down

0 comments on commit c34a276

Please sign in to comment.