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:45:17 +0000 (14:45 +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)

Configure
test/build.info
test/recipes/15-test_ecparam.t
test/recipes/40-test_rehash.t
test/recipes/80-test_ssl_new.t
test/recipes/99-test_fuzz.t
test/run_tests.pl
util/mkdef.pl
util/process_docs.pl

index 7750e929cfdfe286f3e1c01d3aceed991df5ae68..61b86c49219bd691f80a3b600f396ce12050d5a6 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -15,7 +15,7 @@ use Config;
 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 2e8775e44fdf4e140e65561cbaf6191e7dfe88ab..a73e6caec09c96209fd2c2312c42cf8466e063c5 100644 (file)
@@ -450,7 +450,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 9fabd3b2777681aa41080535c0a02ce25f0fdca5..0f9b70b4bcd4e3008513e90932de994bb57bbd7f 100644 (file)
@@ -11,7 +11,7 @@ use strict;
 use warnings;
 
 use File::Spec;
-use if $^O ne "VMS", 'File::Glob' => qw/glob/;
+use if $^O ne "VMS", 'File::Glob' => qw/:bsd_glob/;
 use OpenSSL::Test qw/:DEFAULT data_file/;
 use OpenSSL::Test::Utils;
 
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 100b8528c8c5719b90b7c17e35cb6071bf92daf8..de351903a5b575f193ed8d9882a41a49756b4e13 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 75248ef70db6e7c1254b8df12a031db16290c95e..a0493a50d621e09970098dad261f16108911c849 100644 (file)
@@ -9,7 +9,7 @@
 use strict;
 use warnings;
 
-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/;
 use OpenSSL::Test::Utils;
 
index 66f620e216c074bf83688f02432835ad9453d011..1695729e817090300c80287ca06582214df1cca0 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 b3eb6b3d9d2d92ba0d71489f2ed1e3a264c89461..7a85e80082599cbed8b1e89bca64d990effb575f 100755 (executable)
@@ -49,7 +49,7 @@ use lib ".";
 use configdata;
 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 $debug=0;
 
index 5db78d85f226058882cfa457ee5ee6331ed077b3..49176ad30bc97b0eb7a841f38e78d479909c3e0a 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;