ports/152891: Port pecl-APC 3.1.6 does not build || /usr/local/bin/phpize is not correct
Mirko Steiner
m.steiner at red-cat.de
Tue Dec 7 15:40:10 UTC 2010
>Number: 152891
>Category: ports
>Synopsis: Port pecl-APC 3.1.6 does not build || /usr/local/bin/phpize is not correct
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Dec 07 15:40:09 UTC 2010
>Closed-Date:
>Last-Modified:
>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 at 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 at 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:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list