From nobody@FreeBSD.org  Tue Dec  7 15:36:25 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 25FDE106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  7 Dec 2010 15:36:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 170008FC19
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  7 Dec 2010 15:36:25 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id oB7FaOJt001834
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 7 Dec 2010 15:36:24 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id oB7FaOOg001833;
	Tue, 7 Dec 2010 15:36:24 GMT
	(envelope-from nobody)
Message-Id: <201012071536.oB7FaOOg001833@red.freebsd.org>
Date: Tue, 7 Dec 2010 15:36:24 GMT
From: Mirko Steiner <m.steiner@red-cat.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Port pecl-APC 3.1.6 does not build || /usr/local/bin/phpize is not correct
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         152891
>Category:       ports
>Synopsis:       www/pecl-APC 3.1.6 does not build || /usr/local/bin/phpize is not correct
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    mnag
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 07 15:40:09 UTC 2010
>Closed-Date:    Thu Dec 09 15:54:30 UTC 2010
>Last-Modified:  Thu Dec 09 15:54:30 UTC 2010
>Originator:     Mirko Steiner
>Release:        8.1-STABLE
>Organization:
red-cat networks gmbh
>Environment:
FreeBSD server.steiner.internal 8.1-STABLE FreeBSD 8.1-STABLE #4: Tue Oct 19 15:27:24 CEST 2010     root@server.steiner.internal:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
i've tried to upgrade via portmaster, in /usr/ports/www/pecl-APC an error eccoured:

-- snip --
[mirko@server /usr/ports/www/pecl-APC]$ sudo make install
===>   pecl-APC-3.1.6 depends on file: /usr/local/bin/phpize - found
===>   pecl-APC-3.1.6 depends on file: /usr/local/bin/autoconf-2.68 - found
===>  PHPizing for pecl-APC-3.1.6
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

*** Error code 1

Stop in /usr/ports/www/pecl-APC.
*** Error code 1

Stop in /usr/ports/www/pecl-APC.
-- snap --

i've tried a make -d A and tried the shell command by hand, anyway it seems that the shellscript /usr/local/bin/phpize from php5-5.3.3_2 has hardcodes versionnumbers of autoconf in it

-- /usr/local/bin/phpize line 121-122 --
  test -z "$PHP_AUTOCONF" && PHP_AUTOCONF=autoconf-2.67
  test -z "$PHP_AUTOHEADER" && PHP_AUTOHEADER=autoheader-2.67
-- 

but i have now autoconf-2.68 installed...
>How-To-Repeat:
e.g. 

# cd /usr/local/www/pecl-APC/
# make

>Fix:
remove the version number from phpize and rely on autoconf-wrapper....


--- /usr/local/bin/phpize       2010-12-07 16:35:08.468123814 +0100
+++ /usr/local/bin/phpize.old   2010-12-07 16:34:52.137789511 +0100
@@ -118,8 +118,8 @@
 
 phpize_check_autotools()
 {
-  test -z "$PHP_AUTOCONF" && PHP_AUTOCONF=autoconf
-  test -z "$PHP_AUTOHEADER" && PHP_AUTOHEADER=autoheader
+  test -z "$PHP_AUTOCONF" && PHP_AUTOCONF=autoconf-2.67
+  test -z "$PHP_AUTOHEADER" && PHP_AUTOHEADER=autoheader-2.67
   
   if test ! -x "$PHP_AUTOCONF" && test ! -x "`$php_shtool path $PHP_AUTOCONF`"; then
     cat <<EOF


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->mnag 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Dec 8 06:17:50 UTC 2010 
Responsible-Changed-Why:  
Fix synopsis and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=152891 
State-Changed-From-To: open->closed 
State-Changed-By: ale 
State-Changed-When: Thu Dec 9 15:54:03 UTC 2010 
State-Changed-Why:  
Fixed in PHP, update it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=152891 
>Unformatted:
