diff -uNr tar-1.13.25.orig/config.guess tar-1.13.25/config.guess --- tar-1.13.25.orig/config.guess 2001-09-14 00:00:07.000000000 +1000 +++ tar-1.13.25/config.guess 2003-05-10 16:06:37.413519800 +1000 @@ -338,7 +338,7 @@ echo m68k-sun-sunos${UNAME_RELEASE} exit 0 ;; sun*:*:4.2BSD:*) - UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + UNAME_RELEASE=`(head -n 1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) @@ -507,7 +507,7 @@ fi exit 0 ;; *:AIX:*:[45]) - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'` + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -n 1 | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else diff -uNr tar-1.13.25.orig/depcomp tar-1.13.25/depcomp --- tar-1.13.25.orig/depcomp 2001-07-22 04:45:47.000000000 +1000 +++ tar-1.13.25/depcomp 2003-05-10 16:06:37.483509160 +1000 @@ -314,7 +314,7 @@ if test "$stat" != 0; then exit $stat; fi rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" - tail +3 "$tmpdepfile" | tr ' ' ' + tail -n +3 "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround.