ports/102033: Horde 3.1.2 fails portbuild

Chris Wasser flatline at majestik12.ca
Mon Aug 14 21:00:27 UTC 2006


>Number:         102033
>Category:       ports
>Synopsis:       Horde 3.1.2 fails portbuild
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 14 21:00:25 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Chris Wasser
>Release:        6.1-RELEASE-p2
>Organization:
>Environment:
FreeBSD nsa.lan.majestik12.ca 6.1-RELEASE-p2 FreeBSD 6.1-RELEASE-p2 #0: Sat Jun 17 17:32:20 MDT 2006     root at nsa.lan.majestik12.ca:/mnt/disk0/usr.obj/mnt/disk0/usr.src/sys/NSA  i386
>Description:
ports/www/horde fails to install correctly due to DB check problem located in the port Makefile.

# php -v
PHP 4.4.3 (cli) (built: Aug  9 2006 14:59:20)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
    with eAccelerator v0.9.5-rc1, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
# php -m
[PHP Modules]
bz2
calendar
ctype
curl
dio
domxml
eAccelerator
fileinfo
ftp
gd
gettext
gmp
iconv
imagick
imap
ldap
mbstring
mcal
mcrypt
mhash
mysql
openssl
overload
pcre
pdf
posix
pspell
session
shmop
sockets
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
zlib

[Zend Modules]
eAccelerator



The following error is generated during the build and easily reproduced:

Please configure PHP with a database support.
MySQL, PostgreSQL, SQLite and Sybase (CTLIB or DBLIB)
can be used with PHP AND Horde.

(If everything will run on this machine, do not
 forget to install the database server-side!)

*** Error code 1
Stop in /mnt/disk0/usr.ports/www/horde.
*** Error code 1
Stop in /mnt/disk0/usr.ports/www/horde.



The problem lies in how the build process checks for supported DB's via php and can be easily produced at the commandline:

# php -m | grep -e "mysql"
--snip--
<shows all php modules>
--snip--
Exit 1
# php -m 2>&1 | grep -e "mysql"
mysql

>How-To-Repeat:
Build the port whether by hand or using portupgrade(1)
>Fix:
Below contains a diff correcting the issue. I was able to successfully build the port and install it afterwards. There may be a better way to do this.

--- Makefile.orig Wed Aug  2 22:38:03 2006
+++ Makefile    Mon Aug 14 14:44:59 2006
@@ -312,10 +312,10 @@

 pre-install:
 .if !defined(WITHOUT_SUPPORTED_DB) && exists(${LOCALBASE}/bin/php)
-       @if ! php -m | ${GREP} -q -e "mysql" ; then \
-        if ! php -m | ${GREP} -q -e "pgsql" ; then \
-         if ! php -m | ${GREP} -q -e "sybase" ; then \
-          if ! php -m | ${GREP} -q -e "SQLite" ; then \
+       @if ! php -m 2>&1 | ${GREP} -q -e "mysql" ; then \
+        if ! php -m 2>&1 | ${GREP} -q -e "pgsql" ; then \
+         if ! php -m 2>&1 | ${GREP} -q -e "sybase" ; then \
+          if ! php -m 2>&1 | ${GREP} -q -e "SQLite" ; then \
            ${ECHO_MSG} "" ; \
            ${ECHO_MSG} "Please configure PHP with a database support." ; \
            ${ECHO_MSG} "MySQL, PostgreSQL, SQLite and Sybase (CTLIB or DBLIB)" ; \

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list