Rework the perl fallback functionality
authorRichard Levitte <levitte@openssl.org>
Mon, 9 Sep 2019 09:51:01 +0000 (11:51 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 12 Sep 2019 10:49:31 +0000 (12:49 +0200)
commit1935a5861c7e4bc1e0a4434800896a2dbd834ae4
tree6419cf2764c32889996d4c20f276c21e5f4b815e
parent7eeceeaab24aea16027cdc1f9df92366094893b7
Rework the perl fallback functionality

The module with_fallback.pm was kind of clunky and required a transfer
module.  This change replaces if with a much more generic pragma type
module, which simply appends given directories to @INC (as opposed to
the 'lib' pragma, which prepends the directories to @INC).

This also supports having a file MODULES.txt with sub-directories to
modules.  This ensures that we don't have to spray individual module
paths throughout our perl code, but can have them collected in one
place.

(do note that there is a 'fallback' module on CPAN.  However, it isn't
part of the core perl, and it has no support the any MODULES.txt kind
of construct)

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9826)
Configure
external/perl/MODULES.txt [new file with mode: 0644]
external/perl/transfer/Text/Template.pm [deleted file]
test/generate_ssl_tests.pl
util/dofile.pl
util/perl/OpenSSL/fallback.pm [new file with mode: 0644]
util/perl/with_fallback.pm [deleted file]