Skip to content

Commit b5a0552

Browse files
authored
Merge pull request Perl#255 from jkeenan/repair-hints-files-20200830
hints files: Relax strict vars
2 parents 55e2bbe + c7bba4a commit b5a0552

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+58
-6
lines changed

cpan/DB_File/hints/bitrig.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
no strict 'vars';
12
$self->{LIBS} = [''];

cpan/DB_File/hints/dynixptx.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Need to add an extra '-lc' to the end to work around a DYNIX/ptx bug
2-
2+
no strict 'vars';
33
$self->{LIBS} = ['-lm -lc'];

cpan/DB_File/hints/minix.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
no strict 'vars';
12
$self->{LIBS} = [''];

cpan/DB_File/hints/netbsd.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
no strict 'vars';
12
$self->{LIBS} = [''];

cpan/DB_File/hints/sco.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# osr5 needs to explicitly link against libc to pull in some static symbols
2+
no strict 'vars';
23
$self->{LIBS} = ['-ldb -lc'] if $Config{'osvers'} =~ '3\.2v5\.0\..' ;

cpan/Digest-MD5/hints/MacOS.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# MWCPPC compiler needs to crank down the optimizations
2-
2+
no strict 'vars';
33
$self->{MWCPPCOptimize} = "-O1";

cpan/Digest-MD5/hints/dec_osf.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
no strict 'vars';
12
if ($] < 5.00503 and !$Config{gccversion}) {
23
print "
34
Because of a bug with the DEC system C compiler, some tests in

cpan/Digest-MD5/hints/irix_6.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# The Mongoose v7.1 compiler freezes up somewhere in the optimization of
22
# MD5Transform() in MD5.c with optimization -O3. This is a workaround:
3-
3+
no strict 'vars';
44
if ($Config{cc} =~ /64|n32/ && `$Config{cc} -version 2>&1` =~ /\s7\.1/) {
55
$self->{OPTIMIZE} = "-O1";
66
}

cpan/IPC-SysV/hints/next_3.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
no strict 'vars';
12
$self->{CCFLAGS} = $Config{ccflags} . ' -D_POSIX_SOURCE' ;

dist/IO/hints/sco.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# SCO OSR5 needs to link with libc.so again to have C<fsync> defined
2+
no strict 'vars';
23
$self->{LIBS} = ['-lc'];

dist/Storable/hints/gnukfreebsd.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
no strict 'vars';
12
do './hints/linux.pl' or die $@;

dist/Storable/hints/gnuknetbsd.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
no strict 'vars';
12
do './hints/linux.pl' or die $@;

dist/Storable/hints/hpux.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# HP C-ANSI-C has problems in the optimizer for 5.8.x (not for 5.11.x)
22
# So drop to -O1 for Storable
3-
3+
no strict 'vars';
44
use Config;
55

66
unless ($Config{gccversion}) {

dist/Time-HiRes/hints/aix.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Many AIX installations seem not to have the right PATH
22
# for the C compiler. Steal the logic from Perl's hints/aix.sh.
3+
no strict 'vars';
34
use Config;
45
unless ($Config{gccversion}) {
56
my $cc = $Config{cc};

dist/Time-HiRes/hints/dec_osf.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# needs to explicitly link against librt to pull in nanosleep
2+
no strict 'vars';
23
$self->{LIBS} = ['-lrt'];
34

dist/Time-HiRes/hints/dynixptx.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# uname -v
22
# V4.5.2
33
# needs to explicitly link against libc to pull in usleep
4+
no strict 'vars';
45
$self->{LIBS} = ['-lc'];
56

dist/Time-HiRes/hints/irix.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
no strict 'vars';
12
use Config;
23
if ($Config{osvers} == 5) {
34
$self->{CCFLAGS} = $Config{ccflags};

dist/Time-HiRes/hints/sco.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# osr5 needs to explicitly link against libc to pull in usleep
22
# what's the reason for -lm?
3+
no strict 'vars';
34
$self->{LIBS} = ['-lm', '-lc'];
45

dist/Time-HiRes/hints/solaris.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# 2.6 has nanosleep in -lposix4, after that it's in -lrt
2+
no strict 'vars';
23
my $r = `/usr/bin/uname -r`;
34
chomp($r);
45
if (substr($r, 2) <= 6) {

dist/Time-HiRes/hints/svr4.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# NCR MP-RAS needs to explicitly link against libc to pull in usleep
22
# what's the reason for -lm?
3+
no strict 'vars';
34
$self->{LIBS} = ['-lm', '-lc'];
45

dist/threads/hints/hpux.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# HP-UX 10.20 has different form for pthread_attr_getstacksize
2+
no strict 'vars';
23
my $ver = `uname -r`;
34
$ver =~ s/^\D*//;
45
if ($ver =~ /^10.20/) {

ext/B/hints/darwin.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# gcc -O3 (and -O2) get overly excited over B.c in MacOS X 10.1.4.
2+
no strict 'vars';
23
use Config;
34

45
my $optimize = $Config{optimize};

ext/DynaLoader/hints/aix.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# See dl_aix.xs for details.
2+
no strict 'vars';
23
use Config;
34
if ($Config{libs} =~ /-lC/ && -f '/lib/libC.a') {
45
$self->{CCFLAGS} = $Config{ccflags} . ' -DUSE_libC';

ext/DynaLoader/hints/android.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
# use My::Module::In::Foo; # calls dlopen() with foo/My/Module/...
88
# # which will likely fail
99
# So we take this route instead.
10+
no strict 'vars';
1011
$self->{CCFLAGS} = $Config{ccflags} . ' -DDLOPEN_WONT_DO_RELATIVE_PATHS';
1112
1;

ext/DynaLoader/hints/gnukfreebsd.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
no strict 'vars';
12
do './hints/linux.pl' or die $@;

ext/DynaLoader/hints/gnuknetbsd.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
no strict 'vars';
12
do './hints/linux.pl' or die $@;

ext/DynaLoader/hints/netbsd.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# XXX Configure test needed?
22
# Some NetBSDs seem to have a dlopen() that won't accept relative paths
3+
no strict 'vars';
34
$self->{CCFLAGS} = $Config{ccflags} . ' -DDLOPEN_WONT_DO_RELATIVE_PATHS';

ext/GDBM_File/hints/sco.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# SCO OSR5 needs to link with libc.so again to have C<fsync> defined
2+
no strict 'vars';
23
$self->{LIBS} = ['-lgdbm -lc'];

ext/NDBM_File/hints/MSWin32.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# uses GDBM dbm compatibility feature
2+
no strict 'vars';
23
$self->{LIBS} = ['-lgdbm_compat -lgdbm'];

ext/NDBM_File/hints/cygwin.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# uses GDBM ndbm compatibility feature
2+
no strict 'vars';
23
$self->{LIBS} = ['-lgdbm -lgdbm_compat'];

ext/NDBM_File/hints/dec_osf.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# Spider Boardman <[email protected]>
2+
no strict 'vars';
23
$self->{LIBS} = [''];

ext/NDBM_File/hints/dynixptx.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# On DYNIX/ptx 4.0 (v4.1.3), ndbm is actually contained in the
22
# libc library, and must be explicitly linked against -lc when compiling.
3+
no strict 'vars';
34
$self->{LIBS} = ['-lc'];

ext/NDBM_File/hints/gnu.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
no strict 'vars';
12
do './hints/linux.pl' or die $@;

ext/NDBM_File/hints/gnukfreebsd.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
no strict 'vars';
12
do './hints/linux.pl' or die $@;

ext/NDBM_File/hints/gnuknetbsd.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
no strict 'vars';
12
do './hints/linux.pl' or die $@;

ext/NDBM_File/hints/sco.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# SCO ODT 3.2v4.2 has a -ldbm library that is missing dbmclose.
22
# This system should have a complete library installed as -ldbm.nfs which
33
# should be used instead (Probably need the networking product add-on)
4+
no strict 'vars';
45
$self->{LIBS} = ['-lndbm',-e "/usr/lib/libdbm.nfs.a"?'-ldbm.nfs':'-ldbm'];

ext/NDBM_File/hints/solaris.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# -lucb has been reported to be fatal for perl5 on Solaris.
22
# Thus we deliberately don't include it here.
3+
no strict 'vars';
34
$self->{LIBS} = ["-lndbm", "-ldbm"];

ext/NDBM_File/hints/svr4.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Some SVR4 systems may need to link against routines in -lucb for
22
# odbm. Some may also need to link against -lc to pick up things like
33
# ecvt.
4+
no strict 'vars';
45
$self->{LIBS} = ['-ldbm -lucb -lc'];

ext/ODBM_File/hints/MSWin32.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# uses GDBM dbm compatibility feature
2+
no strict 'vars';
23
$self->{LIBS} = ['-lgdbm_compat -lgdbm'];

ext/ODBM_File/hints/cygwin.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# uses GDBM dbm compatibility feature
2+
no strict 'vars';
23
$self->{LIBS} = ['-lgdbm -lgdbm_compat'];

ext/ODBM_File/hints/dec_osf.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# The -hidden option causes compilation to fail on Digital Unix.
22
# Andy Dougherty <[email protected]>
33
# Sat Jan 13 16:29:52 EST 1996
4+
no strict 'vars';
45
$self->{LDDLFLAGS} = $Config{lddlflags};
56
$self->{LDDLFLAGS} =~ s/-hidden//;
67
# As long as we're hinting, note the known location of the dbm routines.

ext/ODBM_File/hints/gnu.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
no strict 'vars';
12
do './hints/linux.pl' or die $@;

ext/ODBM_File/hints/gnukfreebsd.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
no strict 'vars';
12
do './hints/linux.pl' or die $@;

ext/ODBM_File/hints/gnuknetbsd.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
no strict 'vars';
12
do './hints/linux.pl' or die $@;

ext/ODBM_File/hints/hpux.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Try to work around "bad free" messages. See note in ODBM_File.xs.
22
# Andy Dougherty <[email protected]>
33
# Sun Sep 8 12:57:52 EDT 1996
4+
no strict 'vars';
45
$self->{CCFLAGS} = $Config{ccflags} . ' -DDBM_BUG_DUPLICATE_FREE' ;

ext/ODBM_File/hints/sco.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# SCO ODT 3.2v4.2 has a -ldbm library that is missing dbmclose.
22
# This system should have a complete library installed as -ldbm.nfs which
33
# should be used instead (Probably need the networking product add-on)
4+
no strict 'vars';
45
$self->{LIBS} = ['-lndbm',-e "/usr/lib/libdbm.nfs.a"?'-ldbm.nfs':'-ldbm'];

ext/ODBM_File/hints/solaris.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# -lucb has been reported to be fatal for perl5 on Solaris.
22
# Thus we deliberately don't include it here.
3+
no strict 'vars';
34
$self->{LIBS} = ['-ldbm'];

ext/ODBM_File/hints/svr4.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Some SVR4 systems may need to link against routines in -lucb for
22
# odbm. Some may also need to link against -lc to pick up things like
33
# ecvt.
4+
no strict 'vars';
45
$self->{LIBS} = ['-ldbm -lucb -lc'];

ext/ODBM_File/hints/ultrix.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Try to work around "bad free" messages. See note in ODBM_File.xs.
22
# Andy Dougherty <[email protected]>
33
# Sun Sep 8 12:57:52 EDT 1996
4+
no strict 'vars';
45
$self->{CCFLAGS} = $Config{ccflags} . ' -DDBM_BUG_DUPLICATE_FREE' ;

ext/POSIX/hints/bsdos.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# BSD platforms have extra fields in struct tm that need to be initialized.
22
# XXX A Configure test is needed.
3+
no strict 'vars';
34
$self->{CCFLAGS} = $Config{ccflags} . ' -DSTRUCT_TM_HASZONE' ;

ext/POSIX/hints/dynixptx.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Need to add an extra '-lc' to the end to work around a DYNIX/ptx bug
22
# PR#227670 - linker error on fpgetround()
3-
3+
no strict 'vars';
44
$self->{LIBS} = ['-ldb -lm -lc'];

ext/POSIX/hints/gnukfreebsd.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
no strict 'vars';
12
do './hints/linux.pl' or die $@;

ext/POSIX/hints/gnuknetbsd.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
no strict 'vars';
12
do './hints/linux.pl' or die $@;

ext/POSIX/hints/mint.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
no strict 'vars';
12
$self->{CCFLAGS} = $Config{ccflags} . ' -DNO_LOCALECONV_GROUPING -DNO_LOCALECONV_MON_GROUPING';
23

ext/POSIX/hints/netbsd.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# BSD platforms have extra fields in struct tm that need to be initialized.
22
# XXX A Configure test is needed.
3+
no strict 'vars';
34
$self->{CCFLAGS} = $Config{ccflags} . ' -DSTRUCT_TM_HASZONE' ;

ext/POSIX/hints/sunos_4.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This state of affairs also persists in glibc2, found
44
# on linux systems running libc6.
55
# XXX A Configure test is needed.
6-
6+
no strict 'vars';
77
# Although <unistd.h> is inappropriate in general for SunOS, we need it
88
# in POSIX.xs to get the correct prototype for ttyname().
99

ext/POSIX/hints/svr4.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# (See hints/svr4.sh for more details.)
1212
# A. Dougherty Tue Oct 30 10:20:07 EST 2001
1313
#
14+
no strict 'vars';
1415
if ($Config{'archname'} =~ /[34]4[0-9][0-9]-svr4/) {
1516
$self->{LIBS} = ['-lm -posix -lcposix -lmw'];
1617
}

ext/PerlIO-via/hints/aix.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# compilation may hang at -O3 level
2+
no strict 'vars';
23
use Config;
34

45
my $optimize = $Config{optimize};

0 commit comments

Comments
 (0)