From ed1f8b1fc8a7ac6d9fdbfec7bd3572150b9e16a9 Mon Sep 17 00:00:00 2001 From: espie Date: Fri, 24 Mar 2000 20:48:19 +0000 Subject: [PATCH] Put back mktemp patches as SEPARATE patches. Brad, next time, ask me, THANKS... Turn m4 -g test around, so that it actually works on a machine without enough gm4 compatibility. --- devel/autoconf/Makefile | 11 ++++++----- devel/autoconf/patches/patch-ad | 25 +++---------------------- devel/autoconf/patches/patch-af | 9 --------- devel/autoconf/patches/patch-mktemp1 | 21 +++++++++++++++++++++ devel/autoconf/patches/patch-mktemp2 | 11 +++++++++++ 5 files changed, 41 insertions(+), 36 deletions(-) create mode 100644 devel/autoconf/patches/patch-mktemp1 create mode 100644 devel/autoconf/patches/patch-mktemp2 diff --git a/devel/autoconf/Makefile b/devel/autoconf/Makefile index dc956ce09c4..5fec04f0f68 100644 --- a/devel/autoconf/Makefile +++ b/devel/autoconf/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.18 2000/03/18 15:54:22 espie Exp $ +# $OpenBSD: Makefile,v 1.19 2000/03/24 20:48:19 espie Exp $ DISTNAME= autoconf-2.13 CATEGORIES= devel @@ -22,10 +22,11 @@ FAKE= Yes pre-configure: # Check if /usr/bin/m4 recognizes option -g, and has builtin __line__ - @if [ `echo "__line__"|/usr/bin/m4 -g` \ - != "1" ]; then \ + @if [ X`echo "__line__"|/usr/bin/m4 -g 2>/dev/null` \ + == "X1" ]; then \ + exit 0; \ + fi; \ echo >&2 "Your m4 is not current enough, sorry"; \ - exit 1; \ - fi + exit 1 .include diff --git a/devel/autoconf/patches/patch-ad b/devel/autoconf/patches/patch-ad index 43960e0952d..aefe365216c 100644 --- a/devel/autoconf/patches/patch-ad +++ b/devel/autoconf/patches/patch-ad @@ -1,25 +1,6 @@ ---- autoconf.sh.orig Mon Mar 20 20:51:44 2000 -+++ autoconf.sh Mon Mar 20 20:51:27 2000 -@@ -45,7 +45,7 @@ - esac - - : ${TMPDIR=/tmp} --tmpout=${TMPDIR}/acout.$$ -+tmpout=`mktemp ${TMPDIR}/acout.XXXXXXXXXX` || exit 1 - localdir= - show_version=no - -@@ -97,7 +97,8 @@ - - trap 'rm -f $tmpin $tmpout; exit 1' 1 2 15 - --tmpin=${TMPDIR}/acin.$$ # Always set this, to avoid bogus errors from some rm's. -+tmpin=`mktemp ${TMPDIR}/acin.XXXXXXXXXX` || { rm -f $tmpout; exit 1; } -+# Always set this, to avoid bogus errors from some rm's. - if test z$infile = z-; then - infile=$tmpin - cat > $infile -@@ -112,16 +113,7 @@ +--- autoconf.sh.orig Wed Nov 17 16:43:04 1999 ++++ autoconf.sh Wed Nov 17 16:43:39 1999 +@@ -112,16 +112,7 @@ else use_localdir= fi diff --git a/devel/autoconf/patches/patch-af b/devel/autoconf/patches/patch-af index 2335efc1842..aafc1e1a3a9 100644 --- a/devel/autoconf/patches/patch-af +++ b/devel/autoconf/patches/patch-af @@ -21,12 +21,3 @@ sed -n -e ' : again /^@@@.*@@@$/s/^@@@\(.*\)@@@$/\1/p -@@ -194,7 +185,7 @@ - # Some fgrep's have limits on the number of lines that can be in the - # pattern on the command line, so use a temporary file containing the - # pattern. -- (fgrep_tmp=${TMPDIR-/tmp}/autoh$$ -+ (fgrep_tmp=`mktemp ${TMPDIR-/tmp}/autoh.XXXXXXXXXX` || exit 1 - trap "rm -f $fgrep_tmp; exit 1" 1 2 15 - cat > $fgrep_tmp < $infile diff --git a/devel/autoconf/patches/patch-mktemp2 b/devel/autoconf/patches/patch-mktemp2 new file mode 100644 index 00000000000..87e6102e3ba --- /dev/null +++ b/devel/autoconf/patches/patch-mktemp2 @@ -0,0 +1,11 @@ +--- autoheader.sh.orig Mon Nov 22 21:50:45 1999 ++++ autoheader.sh Mon Nov 22 21:52:02 1999 +@@ -194,7 +194,7 @@ + # Some fgrep's have limits on the number of lines that can be in the + # pattern on the command line, so use a temporary file containing the + # pattern. +- (fgrep_tmp=${TMPDIR-/tmp}/autoh$$ ++ (fgrep_tmp=`mktemp ${TMPDIR-/tmp}/autoh.XXXXXXXXXX` || exit 1 + trap "rm -f $fgrep_tmp; exit 1" 1 2 15 + cat > $fgrep_tmp <