From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Aug 14 21:00:27 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7424716A4E5 for ; Mon, 14 Aug 2006 21:00:27 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C853A43D5A for ; Mon, 14 Aug 2006 21:00:25 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k7EL0POb022322 for ; Mon, 14 Aug 2006 21:00:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7EL0PvY022321; Mon, 14 Aug 2006 21:00:25 GMT (envelope-from gnats) Resent-Date: Mon, 14 Aug 2006 21:00:25 GMT Resent-Message-Id: <200608142100.k7EL0PvY022321@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Chris Wasser Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 927A016A4DE for ; Mon, 14 Aug 2006 20:58:46 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 429CD43D45 for ; Mon, 14 Aug 2006 20:58:46 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k7EKwkwU003925 for ; Mon, 14 Aug 2006 20:58:46 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k7EKwkue003924; Mon, 14 Aug 2006 20:58:46 GMT (envelope-from nobody) Message-Id: <200608142058.k7EKwkue003924@www.freebsd.org> Date: Mon, 14 Aug 2006 20:58:46 GMT From: Chris Wasser To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/102033: Horde 3.1.2 fails portbuild X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Aug 2006 21:00:27 -0000 >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@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-- --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: