Skip to content

Commit

Permalink
Merge pull request Perl#255 from jkeenan/repair-hints-files-20200830
Browse files Browse the repository at this point in the history
hints files:  Relax strict vars
  • Loading branch information
jkeenan authored Aug 31, 2020
2 parents 55e2bbe + c7bba4a commit b5a0552
Show file tree
Hide file tree
Showing 58 changed files with 58 additions and 6 deletions.
1 change: 1 addition & 0 deletions cpan/DB_File/hints/bitrig.pl
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
no strict 'vars';
$self->{LIBS} = [''];
2 changes: 1 addition & 1 deletion cpan/DB_File/hints/dynixptx.pl
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Need to add an extra '-lc' to the end to work around a DYNIX/ptx bug

no strict 'vars';
$self->{LIBS} = ['-lm -lc'];
1 change: 1 addition & 0 deletions cpan/DB_File/hints/minix.pl
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
no strict 'vars';
$self->{LIBS} = [''];
1 change: 1 addition & 0 deletions cpan/DB_File/hints/netbsd.pl
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
no strict 'vars';
$self->{LIBS} = [''];
1 change: 1 addition & 0 deletions cpan/DB_File/hints/sco.pl
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# osr5 needs to explicitly link against libc to pull in some static symbols
no strict 'vars';
$self->{LIBS} = ['-ldb -lc'] if $Config{'osvers'} =~ '3\.2v5\.0\..' ;
2 changes: 1 addition & 1 deletion cpan/Digest-MD5/hints/MacOS.pl
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# MWCPPC compiler needs to crank down the optimizations

no strict 'vars';
$self->{MWCPPCOptimize} = "-O1";
1 change: 1 addition & 0 deletions cpan/Digest-MD5/hints/dec_osf.pl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
no strict 'vars';
if ($] < 5.00503 and !$Config{gccversion}) {
print "
Because of a bug with the DEC system C compiler, some tests in
Expand Down
2 changes: 1 addition & 1 deletion cpan/Digest-MD5/hints/irix_6.pl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The Mongoose v7.1 compiler freezes up somewhere in the optimization of
# MD5Transform() in MD5.c with optimization -O3. This is a workaround:

no strict 'vars';
if ($Config{cc} =~ /64|n32/ && `$Config{cc} -version 2>&1` =~ /\s7\.1/) {
$self->{OPTIMIZE} = "-O1";
}
1 change: 1 addition & 0 deletions cpan/IPC-SysV/hints/next_3.pl
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
no strict 'vars';
$self->{CCFLAGS} = $Config{ccflags} . ' -D_POSIX_SOURCE' ;
1 change: 1 addition & 0 deletions dist/IO/hints/sco.pl
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# SCO OSR5 needs to link with libc.so again to have C<fsync> defined
no strict 'vars';
$self->{LIBS} = ['-lc'];
1 change: 1 addition & 0 deletions dist/Storable/hints/gnukfreebsd.pl
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
no strict 'vars';
do './hints/linux.pl' or die $@;
1 change: 1 addition & 0 deletions dist/Storable/hints/gnuknetbsd.pl
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
no strict 'vars';
do './hints/linux.pl' or die $@;
2 changes: 1 addition & 1 deletion dist/Storable/hints/hpux.pl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# HP C-ANSI-C has problems in the optimizer for 5.8.x (not for 5.11.x)
# So drop to -O1 for Storable

no strict 'vars';
use Config;

unless ($Config{gccversion}) {
Expand Down
1 change: 1 addition & 0 deletions dist/Time-HiRes/hints/aix.pl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Many AIX installations seem not to have the right PATH
# for the C compiler. Steal the logic from Perl's hints/aix.sh.
no strict 'vars';
use Config;
unless ($Config{gccversion}) {
my $cc = $Config{cc};
Expand Down
1 change: 1 addition & 0 deletions dist/Time-HiRes/hints/dec_osf.pl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# needs to explicitly link against librt to pull in nanosleep
no strict 'vars';
$self->{LIBS} = ['-lrt'];

1 change: 1 addition & 0 deletions dist/Time-HiRes/hints/dynixptx.pl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# uname -v
# V4.5.2
# needs to explicitly link against libc to pull in usleep
no strict 'vars';
$self->{LIBS} = ['-lc'];

1 change: 1 addition & 0 deletions dist/Time-HiRes/hints/irix.pl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
no strict 'vars';
use Config;
if ($Config{osvers} == 5) {
$self->{CCFLAGS} = $Config{ccflags};
Expand Down
1 change: 1 addition & 0 deletions dist/Time-HiRes/hints/sco.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# osr5 needs to explicitly link against libc to pull in usleep
# what's the reason for -lm?
no strict 'vars';
$self->{LIBS} = ['-lm', '-lc'];

1 change: 1 addition & 0 deletions dist/Time-HiRes/hints/solaris.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# 2.6 has nanosleep in -lposix4, after that it's in -lrt
no strict 'vars';
my $r = `/usr/bin/uname -r`;
chomp($r);
if (substr($r, 2) <= 6) {
Expand Down
1 change: 1 addition & 0 deletions dist/Time-HiRes/hints/svr4.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# NCR MP-RAS needs to explicitly link against libc to pull in usleep
# what's the reason for -lm?
no strict 'vars';
$self->{LIBS} = ['-lm', '-lc'];

1 change: 1 addition & 0 deletions dist/threads/hints/hpux.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# HP-UX 10.20 has different form for pthread_attr_getstacksize
no strict 'vars';
my $ver = `uname -r`;
$ver =~ s/^\D*//;
if ($ver =~ /^10.20/) {
Expand Down
1 change: 1 addition & 0 deletions ext/B/hints/darwin.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# gcc -O3 (and -O2) get overly excited over B.c in MacOS X 10.1.4.
no strict 'vars';
use Config;

my $optimize = $Config{optimize};
Expand Down
1 change: 1 addition & 0 deletions ext/DynaLoader/hints/aix.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# See dl_aix.xs for details.
no strict 'vars';
use Config;
if ($Config{libs} =~ /-lC/ && -f '/lib/libC.a') {
$self->{CCFLAGS} = $Config{ccflags} . ' -DUSE_libC';
Expand Down
1 change: 1 addition & 0 deletions ext/DynaLoader/hints/android.pl
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
# use My::Module::In::Foo; # calls dlopen() with foo/My/Module/...
# # which will likely fail
# So we take this route instead.
no strict 'vars';
$self->{CCFLAGS} = $Config{ccflags} . ' -DDLOPEN_WONT_DO_RELATIVE_PATHS';
1;
1 change: 1 addition & 0 deletions ext/DynaLoader/hints/gnukfreebsd.pl
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
no strict 'vars';
do './hints/linux.pl' or die $@;
1 change: 1 addition & 0 deletions ext/DynaLoader/hints/gnuknetbsd.pl
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
no strict 'vars';
do './hints/linux.pl' or die $@;
1 change: 1 addition & 0 deletions ext/DynaLoader/hints/netbsd.pl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# XXX Configure test needed?
# Some NetBSDs seem to have a dlopen() that won't accept relative paths
no strict 'vars';
$self->{CCFLAGS} = $Config{ccflags} . ' -DDLOPEN_WONT_DO_RELATIVE_PATHS';
1 change: 1 addition & 0 deletions ext/GDBM_File/hints/sco.pl
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# SCO OSR5 needs to link with libc.so again to have C<fsync> defined
no strict 'vars';
$self->{LIBS} = ['-lgdbm -lc'];
1 change: 1 addition & 0 deletions ext/NDBM_File/hints/MSWin32.pl
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# uses GDBM dbm compatibility feature
no strict 'vars';
$self->{LIBS} = ['-lgdbm_compat -lgdbm'];
1 change: 1 addition & 0 deletions ext/NDBM_File/hints/cygwin.pl
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# uses GDBM ndbm compatibility feature
no strict 'vars';
$self->{LIBS} = ['-lgdbm -lgdbm_compat'];
1 change: 1 addition & 0 deletions ext/NDBM_File/hints/dec_osf.pl
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Spider Boardman <spider@Orb.Nashua.NH.US>
no strict 'vars';
$self->{LIBS} = [''];
1 change: 1 addition & 0 deletions ext/NDBM_File/hints/dynixptx.pl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# On DYNIX/ptx 4.0 (v4.1.3), ndbm is actually contained in the
# libc library, and must be explicitly linked against -lc when compiling.
no strict 'vars';
$self->{LIBS} = ['-lc'];
1 change: 1 addition & 0 deletions ext/NDBM_File/hints/gnu.pl
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
no strict 'vars';
do './hints/linux.pl' or die $@;
1 change: 1 addition & 0 deletions ext/NDBM_File/hints/gnukfreebsd.pl
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
no strict 'vars';
do './hints/linux.pl' or die $@;
1 change: 1 addition & 0 deletions ext/NDBM_File/hints/gnuknetbsd.pl
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
no strict 'vars';
do './hints/linux.pl' or die $@;
1 change: 1 addition & 0 deletions ext/NDBM_File/hints/sco.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# SCO ODT 3.2v4.2 has a -ldbm library that is missing dbmclose.
# This system should have a complete library installed as -ldbm.nfs which
# should be used instead (Probably need the networking product add-on)
no strict 'vars';
$self->{LIBS} = ['-lndbm',-e "/usr/lib/libdbm.nfs.a"?'-ldbm.nfs':'-ldbm'];
1 change: 1 addition & 0 deletions ext/NDBM_File/hints/solaris.pl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -lucb has been reported to be fatal for perl5 on Solaris.
# Thus we deliberately don't include it here.
no strict 'vars';
$self->{LIBS} = ["-lndbm", "-ldbm"];
1 change: 1 addition & 0 deletions ext/NDBM_File/hints/svr4.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Some SVR4 systems may need to link against routines in -lucb for
# odbm. Some may also need to link against -lc to pick up things like
# ecvt.
no strict 'vars';
$self->{LIBS} = ['-ldbm -lucb -lc'];
1 change: 1 addition & 0 deletions ext/ODBM_File/hints/MSWin32.pl
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# uses GDBM dbm compatibility feature
no strict 'vars';
$self->{LIBS} = ['-lgdbm_compat -lgdbm'];
1 change: 1 addition & 0 deletions ext/ODBM_File/hints/cygwin.pl
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# uses GDBM dbm compatibility feature
no strict 'vars';
$self->{LIBS} = ['-lgdbm -lgdbm_compat'];
1 change: 1 addition & 0 deletions ext/ODBM_File/hints/dec_osf.pl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# The -hidden option causes compilation to fail on Digital Unix.
# Andy Dougherty <doughera@lafayette.edu>
# Sat Jan 13 16:29:52 EST 1996
no strict 'vars';
$self->{LDDLFLAGS} = $Config{lddlflags};
$self->{LDDLFLAGS} =~ s/-hidden//;
# As long as we're hinting, note the known location of the dbm routines.
Expand Down
1 change: 1 addition & 0 deletions ext/ODBM_File/hints/gnu.pl
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
no strict 'vars';
do './hints/linux.pl' or die $@;
1 change: 1 addition & 0 deletions ext/ODBM_File/hints/gnukfreebsd.pl
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
no strict 'vars';
do './hints/linux.pl' or die $@;
1 change: 1 addition & 0 deletions ext/ODBM_File/hints/gnuknetbsd.pl
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
no strict 'vars';
do './hints/linux.pl' or die $@;
1 change: 1 addition & 0 deletions ext/ODBM_File/hints/hpux.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Try to work around "bad free" messages. See note in ODBM_File.xs.
# Andy Dougherty <doughera@lafayette.edu>
# Sun Sep 8 12:57:52 EDT 1996
no strict 'vars';
$self->{CCFLAGS} = $Config{ccflags} . ' -DDBM_BUG_DUPLICATE_FREE' ;
1 change: 1 addition & 0 deletions ext/ODBM_File/hints/sco.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# SCO ODT 3.2v4.2 has a -ldbm library that is missing dbmclose.
# This system should have a complete library installed as -ldbm.nfs which
# should be used instead (Probably need the networking product add-on)
no strict 'vars';
$self->{LIBS} = ['-lndbm',-e "/usr/lib/libdbm.nfs.a"?'-ldbm.nfs':'-ldbm'];
1 change: 1 addition & 0 deletions ext/ODBM_File/hints/solaris.pl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -lucb has been reported to be fatal for perl5 on Solaris.
# Thus we deliberately don't include it here.
no strict 'vars';
$self->{LIBS} = ['-ldbm'];
1 change: 1 addition & 0 deletions ext/ODBM_File/hints/svr4.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Some SVR4 systems may need to link against routines in -lucb for
# odbm. Some may also need to link against -lc to pick up things like
# ecvt.
no strict 'vars';
$self->{LIBS} = ['-ldbm -lucb -lc'];
1 change: 1 addition & 0 deletions ext/ODBM_File/hints/ultrix.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Try to work around "bad free" messages. See note in ODBM_File.xs.
# Andy Dougherty <doughera@lafayette.edu>
# Sun Sep 8 12:57:52 EDT 1996
no strict 'vars';
$self->{CCFLAGS} = $Config{ccflags} . ' -DDBM_BUG_DUPLICATE_FREE' ;
1 change: 1 addition & 0 deletions ext/POSIX/hints/bsdos.pl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# BSD platforms have extra fields in struct tm that need to be initialized.
# XXX A Configure test is needed.
no strict 'vars';
$self->{CCFLAGS} = $Config{ccflags} . ' -DSTRUCT_TM_HASZONE' ;
2 changes: 1 addition & 1 deletion ext/POSIX/hints/dynixptx.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Need to add an extra '-lc' to the end to work around a DYNIX/ptx bug
# PR#227670 - linker error on fpgetround()

no strict 'vars';
$self->{LIBS} = ['-ldb -lm -lc'];
1 change: 1 addition & 0 deletions ext/POSIX/hints/gnukfreebsd.pl
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
no strict 'vars';
do './hints/linux.pl' or die $@;
1 change: 1 addition & 0 deletions ext/POSIX/hints/gnuknetbsd.pl
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
no strict 'vars';
do './hints/linux.pl' or die $@;
1 change: 1 addition & 0 deletions ext/POSIX/hints/mint.pl
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
no strict 'vars';
$self->{CCFLAGS} = $Config{ccflags} . ' -DNO_LOCALECONV_GROUPING -DNO_LOCALECONV_MON_GROUPING';

1 change: 1 addition & 0 deletions ext/POSIX/hints/netbsd.pl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# BSD platforms have extra fields in struct tm that need to be initialized.
# XXX A Configure test is needed.
no strict 'vars';
$self->{CCFLAGS} = $Config{ccflags} . ' -DSTRUCT_TM_HASZONE' ;
2 changes: 1 addition & 1 deletion ext/POSIX/hints/sunos_4.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This state of affairs also persists in glibc2, found
# on linux systems running libc6.
# XXX A Configure test is needed.

no strict 'vars';
# Although <unistd.h> is inappropriate in general for SunOS, we need it
# in POSIX.xs to get the correct prototype for ttyname().

Expand Down
1 change: 1 addition & 0 deletions ext/POSIX/hints/svr4.pl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# (See hints/svr4.sh for more details.)
# A. Dougherty Tue Oct 30 10:20:07 EST 2001
#
no strict 'vars';
if ($Config{'archname'} =~ /[34]4[0-9][0-9]-svr4/) {
$self->{LIBS} = ['-lm -posix -lcposix -lmw'];
}
Expand Down
1 change: 1 addition & 0 deletions ext/PerlIO-via/hints/aix.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# compilation may hang at -O3 level
no strict 'vars';
use Config;

my $optimize = $Config{optimize};
Expand Down

0 comments on commit b5a0552

Please sign in to comment.