[ID 20020220.002] Perl 5.7.2 porting patches for POSIX 1003.1-2001 hosts
authorPaul Eggert <eggert@twinsun.com>
Wed, 20 Feb 2002 03:03:51 +0000 (19:03 -0800)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 20 Feb 2002 14:38:14 +0000 (14:38 +0000)
Message-Id: <200202201103.g1KB3p427665@sic.twinsun.com>

p4raw-id: //depot/perl@14784

Configure
Porting/pumpkin.pod
hints/freebsd.sh
hints/irix_6.sh
pod/perlhack.pod

index e8af8c9..7dad2cd 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -20,7 +20,7 @@
 
 # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
 #
-# Generated on Wed Feb 20 17:20:07 EET 2002 [metaconfig 3.0 PL70]
+# Generated on Wed Feb 20 17:35:55 EET 2002 [metaconfig 3.0 PL70]
 # (with additional metaconfig patches by perlbug@perl.org)
 
 cat >c1$$ <<EOF
@@ -1706,7 +1706,7 @@ rm -f .echotmp
 echo " "
 if test -f "$rsrc/MANIFEST"; then
        echo "First let's make sure your kit is complete.  Checking..." >&4
-       awk '$1 !~ /PACK[A-Z]+/ {print $1}' "$rsrc/MANIFEST" | split -50
+       awk '$1 !~ /PACK[A-Z]+/ {print $1}' "$rsrc/MANIFEST" | split
        rm -f missing
        tmppwd=`pwd`
        for filelist in x??; do
@@ -4282,7 +4282,7 @@ for thislib in $libswanted; do
        for thisdir in $libspath; do
            xxx=''
            if $test ! -f "$xxx" -a "X$ignore_versioned_solibs" = "X"; then
-               xxx=`ls $thisdir/lib$thislib.$so.[0-9] 2>/dev/null|tail -1`
+               xxx=`ls $thisdir/lib$thislib.$so.[0-9] 2>/dev/null|sed -n '$p'`
                $test -f "$xxx" && eval $libscheck
                $test -f "$xxx" && libstyle=shared
            fi
@@ -15692,7 +15692,7 @@ $cat >>signal_cmd <<'EOS'
 
 set signal
 if eval $compile_ok; then
-       $run ./signal$_exe | $sort -n +1 | $uniq | $awk -f signal.awk >signal.lst
+       $run ./signal$_exe | $sort -n -k 2 | $uniq | $awk -f signal.awk >signal.lst
 else
        echo "(I can't seem be able to compile the whole test program)" >&4
        echo "(I'll try it in little pieces.)" >&4
@@ -15726,7 +15726,7 @@ EOCP
        done
        if $test -s signal.ls1; then
                $cat signal.nsg signal.ls1 |
-                       $sort -n +1 | $uniq | $awk -f signal.awk >signal.lst
+                       $sort -n -k 2 | $uniq | $awk -f signal.awk >signal.lst
        fi
 
 fi
index 42f4428..d1784e4 100644 (file)
@@ -501,7 +501,7 @@ Don't forget to regenerate perly_c.diff.
     mv y.tab.c perly.c
     patch perly.c <perly_c.diff
     # manually apply any failed hunks
-    diff -c2 perly.c.orig perly.c >perly_c.diff
+    diff -c perly.c.orig perly.c >perly_c.diff
 
 One chunk of lines that often fails begins with
 
index 6a105fd..7ce1735 100644 (file)
@@ -173,7 +173,7 @@ esac
 cat > UU/usethreads.cbu <<'EOCBU'
 case "$usethreads" in
 $define|true|[yY]*)
-        lc_r=`/sbin/ldconfig -r|grep ':-lc_r'|awk '{print $NF}'|tail -1`
+        lc_r=`/sbin/ldconfig -r|grep ':-lc_r'|awk '{print $NF}'|sed -n '$p'`
         case "$osvers" in  
        0*|1*|2.0*|2.1*)   cat <<EOM >&4
 I did not know that FreeBSD $osvers supports POSIX threads.
index 61eac6e..c192a5d 100644 (file)
@@ -95,7 +95,7 @@ case "$cc" in
        # objects in the library are of the same ABI we are compiling
        # against. Albert Chin-A-Young <china@thewrittenword.com>
        libscheck='case "$xxx" in
-*.a) /bin/ar p $xxx `/bin/ar t $xxx | /usr/bsd/head -1` >$$.o;
+*.a) /bin/ar p $xxx `/bin/ar t $xxx | sed q` >$$.o;
   case "`/usr/bin/file $$.o`" in
   *N32*) rm -f $$.o ;;
   *) rm -f $$.o; xxx=/no/n32$xxx ;;
index c93e230..612b418 100644 (file)
@@ -348,7 +348,7 @@ patch directory.
 
 It's then up to you to apply these patches, using something like
 
- # last=`ls -rt1 *.gz | tail -1`
+ # last=`ls -rt1 *.gz | sed -n '$p'`
  # rsync -avz rsync://ftp.linux.activestate.com/perl-current-diffs/ .
  # find . -name '*.gz' -newer $last -exec gzcat {} \; >blead.patch
  # cd ../perl-current