From owner-freebsd-ports Mon Nov 26 4:52:28 2001 Delivered-To: freebsd-ports@freebsd.org Received: from white.imgsrc.co.jp (ns.imgsrc.co.jp [210.226.20.2]) by hub.freebsd.org (Postfix) with ESMTP id 86B4A37B41A; Mon, 26 Nov 2001 04:52:23 -0800 (PST) Received: from black.imgsrc.co.jp (black.imgsrc.co.jp [2001:218:422:2:290:27ff:fe98:c0b7]) by white.imgsrc.co.jp (Postfix) with ESMTP id 8FCB424D1C; Mon, 26 Nov 2001 21:52:22 +0900 (JST) Received: from waterblue.imgsrc.co.jp (waterblue.imgsrc.co.jp [2001:218:422:2:2d0:b7ff:fea0:d487]) by black.imgsrc.co.jp (Postfix) with ESMTP id A4FEED1401; Mon, 26 Nov 2001 21:52:20 +0900 (JST) Date: Mon, 26 Nov 2001 21:52:17 +0900 Message-ID: <7msnb18zjy.wl@waterblue.imgsrc.co.jp> From: Jun Kuriyama To: dirk@FreeBSD.org Subject: www/mod_php4 with bison-1.29 User-Agent: Wanderlust/2.6.0 (Twist And Shout) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.1 (i386--freebsd) MULE/5.0 (=?ISO-2022-JP?B?GyRCOC1MWhsoQg==?=) Cc: Ports Team MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On my environment (with devel/bison of 1.29), I cannot build www/mod_php4. It seems these patches are required. Could you please check these in? ----- patch-Zend.m4 --- Zend/Zend.m4.orig Mon Mar 12 04:35:25 2001 +++ Zend/Zend.m4 Mon Nov 26 21:42:25 2001 @@ -4,12 +4,18 @@ if test "$YACC" != "bison -y"; then AC_MSG_WARN(You will need bison if you want to regenerate the Zend parser.) else - AC_MSG_CHECKING(bison version) - set `bison --version| sed -e 's/^GNU Bison version //' -e 's/\./ /'` - if test "${1}" = "1" -a "${2}" -lt "28"; then - AC_MSG_WARN(You will need bison 1.28 if you want to regenerate the Zend parser (found ${1}.${2}).) - fi - AC_MSG_RESULT(${1}.${2} (ok)) + AC_MSG_CHECKING([version of bison]) +changequote(<<,>>)dnl + ac_prog_version=`bison --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` + case $ac_prog_version in + '') ac_prog_version="v. ?.??, bad";; + 1.29 | 1.[3-9][0-9]* | [2-9].*) +changequote([,])dnl + ac_prog_version="$ac_prog_version, ok";; + *) ac_prog_version="$ac_prog_version, ok" + AC_MSG_WARN(You will need bison 1.28 if you want to regenerate the Zend parser (found $ac_prog_version).);; + esac + AC_MSG_RESULT([$ac_prog_version]) fi ]) ----- ----- patch-configure.in --- configure.in.orig Thu Jun 21 05:12:59 2001 +++ configure.in Mon Nov 26 21:40:06 2001 @@ -78,14 +78,18 @@ if test "$YACC" != "bison -y"; then AC_MSG_WARN(You will need bison if you want to regenerate the PHP parsers.) else - AC_MSG_CHECKING(bison version) - oldIFS=$IFS; IFS=. - set `bison -V | sed -e 's/^GNU Bison version //'` - IFS=$oldIFS - if test "$1" = "1" -a "$2" -lt "25"; then - AC_MSG_WARN(Bison 1.25 or newer needed to regenerate parsers (found $1.$2).) - fi - AC_MSG_RESULT($1.$2 (ok)) + AC_MSG_CHECKING([version of bison]) +changequote(<<,>>)dnl + ac_prog_version=`bison --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` + case $ac_prog_version in + '') ac_prog_version="v. ?.??, bad";; + 1.2[5-9]* | 1.[3-9][0-9]* | [2-9].*) +changequote([,])dnl + AC_MSG_WARN(Bison 1.25 or newer needed to regenerate parsers (found $ac_prog_version).) + ac_prog_version="$ac_prog_version, ok";; + *) ac_prog_version="$ac_prog_version, ok";; + esac + AC_MSG_RESULT([$ac_prog_version]) fi AC_PROG_CC ----- -- Jun Kuriyama // IMG SRC, Inc. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message