From: Paul Eggert Date: Wed, 20 Feb 2002 03:03:51 +0000 (-0800) Subject: [ID 20020220.002] Perl 5.7.2 porting patches for POSIX 1003.1-2001 hosts X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=eade9b7139927966a87970564990ef3670609a0a;p=p5sagit%2Fp5-mst-13.2.git [ID 20020220.002] Perl 5.7.2 porting patches for POSIX 1003.1-2001 hosts Message-Id: <200202201103.g1KB3p427665@sic.twinsun.com> p4raw-id: //depot/perl@14784 --- diff --git a/Configure b/Configure index e8af8c9..7dad2cd 100755 --- 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$$ <&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 diff --git a/Porting/pumpkin.pod b/Porting/pumpkin.pod index 42f4428..d1784e4 100644 --- a/Porting/pumpkin.pod +++ b/Porting/pumpkin.pod @@ -501,7 +501,7 @@ Don't forget to regenerate perly_c.diff. mv y.tab.c perly.c patch perly.c perly_c.diff + diff -c perly.c.orig perly.c >perly_c.diff One chunk of lines that often fails begins with diff --git a/hints/freebsd.sh b/hints/freebsd.sh index 6a105fd..7ce1735 100644 --- a/hints/freebsd.sh +++ b/hints/freebsd.sh @@ -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 <&4 I did not know that FreeBSD $osvers supports POSIX threads. diff --git a/hints/irix_6.sh b/hints/irix_6.sh index 61eac6e..c192a5d 100644 --- a/hints/irix_6.sh +++ b/hints/irix_6.sh @@ -95,7 +95,7 @@ case "$cc" in # objects in the library are of the same ABI we are compiling # against. Albert Chin-A-Young 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 ;; diff --git a/pod/perlhack.pod b/pod/perlhack.pod index c93e230..612b418 100644 --- a/pod/perlhack.pod +++ b/pod/perlhack.pod @@ -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