Perl: Use File::Glob::bsd_glob rather than File::Glob::glob
authorRichard Levitte <levitte@openssl.org>
Fri, 28 Jul 2017 11:38:03 +0000 (13:38 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 28 Jul 2017 12:47:55 +0000 (14:47 +0200)
File::Glob::glob is deprecated, it's use generates this kind of
message:

    File::Glob::glob() will disappear in perl 5.30. Use File::Glob::bsd_glob() instead. at ../master/Configure line 277.

So instead, use a construction that makes the caller glob() use
File::Glob::bsd_glob().

Note that we're still excluding VMS, as it's directory specs use '['
and ']', which have a different meaning with bsd_glob and would need
some extra quoting.  This might change, but later.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4040)

(cherry picked from commit 102c9e1296b656c4049c1110abc8a52b43bd0dcf)

Configure
test/build.info
test/recipes/40-test_rehash.t
test/recipes/80-test_ssl_new.t
test/run_tests.pl
util/process_docs.pl

index 33d23921a88132ef8a4a7eba7c5f1b7918c3562b..8e1b25f89733a6db09a403b8a5ba8b251bfb6e69 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -14,7 +14,7 @@ use strict;
 use File::Basename;
 use File::Spec::Functions qw/:DEFAULT abs2rel rel2abs/;
 use File::Path qw/mkpath/;
-use if $^O ne "VMS", 'File::Glob' => qw/glob/;
+use if $^O ne "VMS", 'File::Glob' => qw/:bsd_glob/;
 
 # see INSTALL for instructions.
 
index ef968e646a093f0a99d9883aa799667f57c7adb7..8303947326529b80c0c1e1adb6bcad3e6203d0b6 100644 (file)
@@ -293,7 +293,7 @@ ENDIF
 {-
    use File::Spec::Functions;
    use File::Basename;
-   use if $^O ne "VMS", 'File::Glob' => qw/glob/;
+   use if $^O ne "VMS", 'File::Glob' => qw/:bsd_glob/;
 
    my @nogo_headers = ( "asn1_mac.h",
                         "__decc_include_prologue.h",
index f902c238c0bd72a9919e3b14a264cd11b180795f..b374e598d1c2039386294e2fcb27803ea00fd624 100644 (file)
@@ -13,7 +13,7 @@ use warnings;
 use File::Spec::Functions;
 use File::Copy;
 use File::Basename;
-use if $^O ne "VMS", 'File::Glob' => qw/glob/;
+use if $^O ne "VMS", 'File::Glob' => qw/:bsd_glob/;
 use OpenSSL::Test qw/:DEFAULT srctop_file/;
 
 setup("test_rehash");
index 2f6a69a305cf1f7f48513203a469b7a3c4232896..2009ecfea118fd3e8dee2330ad78599611fa3cdb 100644 (file)
@@ -12,7 +12,7 @@ use warnings;
 
 use File::Basename;
 use File::Compare qw/compare_text/;
-use if $^O ne "VMS", 'File::Glob' => qw/glob/;
+use if $^O ne "VMS", 'File::Glob' => qw/:bsd_glob/;
 
 use OpenSSL::Test qw/:DEFAULT srctop_dir srctop_file/;
 use OpenSSL::Test::Utils qw/disabled alldisabled available_protocols/;
index e5bc927e67fba9f5f7e1843b764e838709e60141..51d990092abd7ddefde4f34ec35c9f47bf2253b0 100644 (file)
@@ -16,7 +16,7 @@ BEGIN {
 
 use File::Spec::Functions qw/catdir catfile curdir abs2rel rel2abs/;
 use File::Basename;
-use if $^O ne "VMS", 'File::Glob' => qw/glob/;
+use if $^O ne "VMS", 'File::Glob' => qw/:bsd_glob/;
 use Module::Load::Conditional qw(can_load);
 
 my $TAP_Harness = can_load(modules => { 'TAP::Harness' => undef }) 
index 073a3b70315314903b41106b59c955e2bb062b06..191ec9edf44e41565a07b7c545f598a9ff937682 100644 (file)
@@ -13,7 +13,7 @@ use File::Spec::Functions;
 use File::Basename;
 use File::Copy;
 use File::Path;
-use if $^O ne "VMS", 'File::Glob' => qw/glob/;
+use if $^O ne "VMS", 'File::Glob' => qw/:bsd_glob/;
 use Getopt::Long;
 use Pod::Usage;