This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Bring more dist in line with dist-git
authorH.Merijn Brand - Tux <h.m.brand@xs4all.nl>
Sat, 23 Apr 2016 17:08:19 +0000 (19:08 +0200)
committerH.Merijn Brand - Tux <h.m.brand@xs4all.nl>
Sat, 23 Apr 2016 17:08:19 +0000 (19:08 +0200)
All of these still have been overruled units, so it'll change nothing
in functionality but should ease finding diffs that do matter

21 files changed:
dist/U/Config_sh.U
dist/U/Cross.U
dist/U/Finish.U
dist/U/Unix.U
dist/U/abortsig.U
dist/U/bin.U
dist/U/d_csh.U
dist/U/d_dosuid.U
dist/U/d_fd_set.U
dist/U/d_gconvert.U
dist/U/d_gethname.U
dist/U/d_scannl.U
dist/U/d_times.U
dist/U/libc.U
dist/U/lns.U
dist/U/perlpath.U
dist/U/sbrksmart.U
dist/U/sitearch.U
dist/U/sitelib.U
dist/U/startperl.U
dist/U/usenm.U

index cc8741d..415fc0c 100644 (file)
 ?RCS: Revision 3.0  1993/08/18  12:04:48  ram
 ?RCS: Baseline for dist 3.0 netwide release.
 ?RCS:
-?X:
+?X: 
 ?X: This unit ends up producing the config.sh script, which contains all the
 ?X: definitions figured out by Configure.  The add.Config_sh command knows
 ?X: which variables need to be remembered.  It also adds the EOT (ends the
 ?X: here document redirection with variable substitution).
-?X:
+?X: 
 ?MAKE:Config_sh: cf_time cf_by test spitshell startsh myuname Myread \
        End Obsol_sh Loc +d_portable package src cat sed
 ?MAKE: -pick add.Config_sh $@ %<
index f4c11b2..a54b091 100644 (file)
@@ -83,6 +83,7 @@
 ?LINT:extern loclibpth
 ?LINT:change locincpth
 ?LINT:change loclibpth
+?LINT:extern TMPDIR
 : setup for possible cross-compilation
 run=''
 to=:
@@ -196,7 +197,7 @@ $define|true|[yY]*)
        from=$from-$targetfrom
        case "$targetdir" in
        '')
-               targetdir=/tmp
+               targetdir="${TMPDIR:-/tmp}"
                echo "Guessing targetdir $targetdir." >&4
                ;;
        esac
index dd21d03..80399de 100644 (file)
@@ -74,7 +74,7 @@ esac
 
 ?X:
 ?X: Turn silent mode off from now on (we want a verbose file extraction).
-?X: This means we have to explicitly test for '$silent' from now on to
+?X: This means we have to explicitely test for '$silent' from now on to
 ?X: strip off any verbose messages.
 ?X:
 echo " "
index 952f51f..8d0b9ef 100644 (file)
@@ -14,7 +14,7 @@
 ?RCS: patch61: created
 ?RCS:
 ?X:
-?X: The purpose of this unit is to define things that are common accross all
+?X: The purpose of this unit is to define things that are common across all
 ?X: known UNIX platforms. If Configure is ported/used on a non-UNIX
 ?X: environment, then some of the following variables can be redefined in hint
 ?X: files.
index cb723ec..dbefbb1 100644 (file)
@@ -38,8 +38,9 @@ case "$abortsig" in
        for signal in SIGIOT SIGILL SIGABRT; do
                case "$abortsig" in
                '') $cat >abort.c <<EOP
+/* FIXME: Missing #include <stdlib.h>*/
 #include <signal.h>
-caught() { exit(0); }
+caught() { exit(0); }  /* FIXME: Use _exit() or _Exit() in signal handler  */
 int main()
 {
 #ifdef $signal
index c319528..0ce4930 100644 (file)
@@ -39,7 +39,7 @@
 ?S:.
 ?S:installbin:
 ?S:    This variable is the same as binexp unless AFS is running in which case
-?S:    the user is explicitly prompted for it. This variable should always
+?S:    the user is explicitely prompted for it. This variable should always
 ?S:    be used in your makefiles for maximum portability.
 ?S:.
 ?C:BIN:
index 540081e..6f1829e 100644 (file)
@@ -35,7 +35,7 @@
 ?C:    This symbol, if defined, contains the full pathname of csh.
 ?C:.
 ?X: Previously, I just did $d_csh CSH "$full_csh", but that caused
-?X: problems on VMS where the config.sh extraction program changes
+?X: problems on VMS where the config.sh extraction program changes 
 ?X: $undef to a real cpp undef, and they then had  #undef CSH ""
 ?X: which the compiler didn't like.  It's easy to work around this,
 ?X: so I did.  --AD  3/1998.
index 24e7af8..a3eb5a4 100644 (file)
@@ -140,7 +140,7 @@ val="$undef"
 case "$d_suidsafe" in
 "$define")
        val="$undef"
-       echo "No need to emulate SUID scripts since they are secure here." >&4
+       echo "No need to emulate SUID scripts since they are secure here." >& 4
        ;;
 *)
        $cat <<EOM
index 643b79c..146a6a6 100644 (file)
@@ -22,7 +22,7 @@
 ?RCS: Baseline for dist 3.0 netwide release.
 ?RCS:
 ?MAKE:d_fd_set d_fd_macros d_fds_bits: cat +cc +ccflags rm Oldconfig \
-       d_socket i_systime i_sysselct
+       d_socket i_systime i_sysselct i_syssock
 ?MAKE: -pick add $@ %<
 ?S:d_fd_set:
 ?S:    This variable contains the eventual value of the HAS_FD_SET symbol,
@@ -72,10 +72,13 @@ $cat >fd_set.c <<EOCP
 #$i_systime I_SYS_TIME
 #$i_sysselct I_SYS_SELECT
 #$d_socket HAS_SOCKET
+#$i_syssock I_SYS_SOCKET
 #include <sys/types.h>
 #ifdef HAS_SOCKET
+#ifdef I_SYS_SOCKET
 #include <sys/socket.h> /* Might include <sys/bsdtypes.h> */
 #endif
+#endif
 #ifdef I_SYS_TIME
 #include <sys/time.h>
 #endif
index d760091..6fc6b63 100644 (file)
@@ -21,7 +21,7 @@
 ?RCS: Revision 3.0.1.1  1994/10/29  16:12:51  ram
 ?RCS: patch36: created by ADO
 ?RCS:
-?MAKE:d_Gconvert: cat cc ccflags ldflags libs Inlibc rm _o
+?MAKE:d_Gconvert: cat cc ccflags ldflags libs rm _o
 ?MAKE: -pick add $@ %<
 ?S:d_Gconvert:
 ?S:    This variable holds what Gconvert is defined as to convert
index 88c4ba4..cd206c1 100644 (file)
@@ -108,7 +108,7 @@ case "$d_uname$d_gethname" in
 *define*)
        dflt=n
        cat <<EOM
-
 Every now and then someone has a $call() that lies about the hostname
 but can't be fixed for political or economic reasons.  If you wish, I can
 @if MYHOSTNAME && PHOSTNAME
@@ -165,7 +165,7 @@ possibilities at this point:
 1)  You can have your host name ($myhostname) compiled into $package, which
     lets $package start up faster, but makes your binaries non-portable, or
 2)  you can have $package use a
-
+       
        popen("$aphostname","r")
 
     which will start slower but be more portable.
@@ -200,7 +200,7 @@ EOT
                "$define")
                        dflt=y
                        $cat <<EOM
-
 No hostname function--you can either use the whoami.h file, which has this line:
 
        `grep sysname $usrinc/whoami.h`
@@ -260,7 +260,7 @@ case "$d_uname$d_gethname" in
        "$define")
                dflt=y
                $cat <<EOM
-
 No hostname function--you can either use the whoami.h file, which has this line:
 
        `grep sysname $usrinc/whoami.h`
index 2066033..eaf81d1 100644 (file)
@@ -19,7 +19,7 @@
 ?RCS: Baseline for dist 3.0 netwide release.
 ?RCS:
 ?X:
-?X:    Does the scanf routine read "\n" corretly ? This is was not
+?X:    Does the scanf routine read "\n" correctly ? This is was not
 ?X:    the case on AIX...
 ?X:
 ?MAKE:d_scannl: cat +cc +ccflags rm Setvar
@@ -41,7 +41,7 @@
 : does scanf handle "\n" correctly ?
 echo " "
 val="$define"
-?X: I really want to say "\n" instead of '\n', becasue I am refering
+?X: I really want to say "\n" instead of '\n', because I am referring
 ?X:    to the string given as argument to scanf().
 echo 'Let'"'"'s see if scanf() handles "\\n" correctly...' >&4
 $cat >try.c <<'EOCP'
index 84f9761..3e9217c 100644 (file)
@@ -27,7 +27,7 @@
 ?MAKE: -pick add $@ %<
 ?S:d_times:
 ?S:    This variable conditionally defines the HAS_TIMES symbol, which indicates
-?S:    that the times() routine exists.  The times() routine is normaly
+?S:    that the times() routine exists.  The times() routine is normally
 ?S:    provided on UNIX systems. You may have to include <sys/times.h>.
 ?S:.
 ?S:clocktype:
index 3acc918..1856628 100644 (file)
@@ -264,14 +264,14 @@ $echo $n ".$c"
 ?X:
 $grep fprintf libc.tmp > libc.ptf
 ?X:
-?X: In order to ehance readability and save some space, we define
+?X: In order to enhance readability and save some space, we define
 ?X:    some variables that will be "eval"ed.
 ?X:
 xscan='eval "<libc.ptf $com >libc.list"; $echo $n ".$c" >&4'
 xrun='eval "<libc.tmp $com >libc.list"; echo "done." >&4'
 ?X: BSD-like output, I and W types added for Linux
 ?X: Some versions of Linux include a leading __IO in the symbol name.
-?X: HPUX10 reportedly has trailing spaces, though I'm suprised it has
+?X: HPUX10 reportedly has trailing spaces, though I'm surprised it has
 ?X: BSD-like output.  (AD).
 xxx='[ADTSIW]'
 if com="$sed -n -e 's/__IO//' -e 's/^.* $xxx  *_[_.]*//p' -e 's/^.* $xxx  *//p'";\
index 25ef80e..d3fcd4f 100644 (file)
@@ -28,8 +28,8 @@
 ?S:.
 : determine whether symbolic links are supported
 echo " "
+$rm -f blurfl sym
 $touch blurfl
-$rm -f sym
 if $ln -s blurfl sym > /dev/null 2>&1 && $test -f sym; then
        echo "Symbolic links are supported." >&4
        lns="$ln -s"
index 9cb3fe4..0bfaad7 100644 (file)
 ?Y:TOP
 ?S:perlpath:
 ?S:    This variable contains the eventual value of the PERLPATH symbol,
-?S:    which contains the absolute location of the perl interpeter.
+?S:    which contains the absolute location of the perl interpreter.
 ?S:.
 ?C:PERLPATH:
-?C:    This symbol contains the absolute location of the perl interpeter.
+?C:    This symbol contains the absolute location of the perl interpreter.
 ?C:.
 ?H:#define PERLPATH "$perlpath"                /**/
 ?H:.
index 7b93c7d..14e6cc0 100644 (file)
@@ -37,7 +37,7 @@ echo " "
 case "$d_sbrk" in
 "$define")
        echo "Let's see if your sbrk() is smart enough to release core..." >&4
-       $cat > sbrk.c <<'EOC'
+       $cat > sbrk.c <<EOC
 #define INC 256                /* Small enough to be less than a page size */
 
 int main()
index 8fb283e..4ccf40d 100644 (file)
@@ -51,7 +51,7 @@
 ?T:xxx
 : determine where site specific architecture-dependent libraries go.
 xxx=`echo $sitelib/$archname | sed 's!^$prefix!!'`
-: xxx is usuually lib/site_perl/archname.
+: xxx is usually lib/site_perl/archname.
 set sitearch sitearch none
 eval $prefixit
 case "$sitearch" in
index f9f01bd..26d95c5 100644 (file)
@@ -54,7 +54,7 @@ set sitelib sitelib
 eval $prefixit
 case "$sitelib" in
 '')
-?X: remove any trailing -3.0 or other version indification
+?X: remove any trailing -3.0 or other version indentification
        prog=`echo $package | $sed 's/-*[0-9.]*$//'`
        dflt="$privlib/site_$prog" ;;
 *)     dflt="$sitelib" ;;
index 2744db2..dfb66ef 100644 (file)
@@ -25,7 +25,7 @@
 ?S:            eval 'exec perl -S $0 ${1+"$@"}'
 ?S:                    if $running_under_some_shell;
 ?S:    to guarantee perl startup should the shell execute the script. Note
-?S:    that this magic incatation is not understood by csh.
+?S:    that this magic incantation is not understood by csh.
 ?S:.
 ?C:STARTPERL:
 ?C:    This symbol is the string that should be put on the front of a
index 87f5084..79eab00 100644 (file)
@@ -40,7 +40,7 @@
 ?S:    Maybe Linux should just always set usenm=false.
 ?S:.
 : see if nm is to be used to determine whether a symbol is defined or not
-?X: If there is enough enquiries, it might be worth to wait for the nm
+?X: If there is enough inquiries, it might be worth to wait for the nm
 ?X: extraction. Otherwise, the C compilations might be a better deal.
 ?X:
 ?X: Don't bother if we're using GNU libc -- skimo