From root@knight.volant.org  Thu Aug 28 21:27:53 2003
Return-Path: <root@knight.volant.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B456416A4BF
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 28 Aug 2003 21:27:53 -0700 (PDT)
Received: from knight.volant.org (knight.volant.org [207.111.218.254])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DAB3543F85
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 28 Aug 2003 21:27:52 -0700 (PDT)
	(envelope-from root@knight.volant.org)
Received: from root by knight.volant.org with local (Exim 4.12)
	id 19sarY-00087G-00
	for FreeBSD-gnats-submit@freebsd.org; Thu, 28 Aug 2003 21:27:52 -0700
Message-Id: <E19sarY-00087G-00@knight.volant.org>
Date: Thu, 28 Aug 2003 21:27:52 -0700
From: Pat Lashley <patl+freebsd@volant.org>
Reply-To: Pat Lashley <patl+freebsd@volant.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: IMP3 port is too specific in PHP capabilities tests
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         56119
>Category:       ports
>Synopsis:       IMP3 port is too specific in PHP capabilities tests
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 28 21:30:01 PDT 2003
>Closed-Date:    Thu Aug 28 23:01:32 PDT 2003
>Last-Modified:  Thu Aug 28 23:01:32 PDT 2003
>Originator:     Pat Lashley
>Release:        FreeBSD 4.7-RC i386
>Organization:
Henry Davis Consulting
>Environment:
System: FreeBSD knight.volant.org 4.7-RC FreeBSD 4.7-RC #0: Thu Oct 10 16:02:40 PDT 2002 root@knight.volant.org:/d2/usr.obj/usr/src/sys/KNIGHT i386

>Description:
	The mail/imp3 port's Makefile contains code to ensure that PHP was
	compiled with support for various features that IMP requires.
	These tests run ldd(1) on the PHP module and check for references
	to specific libraries.  The problem is that the checks specify
	particular library versions which may not match up with the versions
	actually used.  IMP should not care about the particular version,
	only whether PHP has the necessary support.
>How-To-Repeat:
	Build PHP4 with MySQL version 4.x; then try to build Imp3.  It
	will stop and ask you to configure PHP with a database support.
>Fix:
	Apply the following patch.

--- Makefile.~3~        Thu Aug 14 17:49:28 2003
+++ Makefile    Thu Aug 28 19:25:38 2003
@@ -194,24 +194,15 @@
 .endif
 .endif
 .if !defined(WITHOUT_LDAP)
-.if exists(${LOCALBASE}/lib/libldap.so.1)
-       @if ! ${LDD} ${PHPSO} | ${GREP} -q -e "libldap.so.1"; then \
+       @if ! ${LDD} ${PHPSO} | ${GREP} -q -e "libldap.so"; then \
            ${ECHO_MSG} "" ; \
-           ${ECHO_MSG} "Please configure PHP with OpenLDAP support." ; \
+           ${ECHO_MSG} "Please configure PHP with OpenLDAP or OpenLDAP2 support." ; \
            ${ECHO_MSG} "" ; \
            ${FALSE} ; \
        fi
-.else
-       @if ! ${LDD} ${PHPSO} | ${GREP} -q -e "libldap.so.2"; then \
-           ${ECHO_MSG} "" ; \
-           ${ECHO_MSG} "Please configure PHP with OpenLDAP2 support." ; \
-           ${ECHO_MSG} "" ; \
-           ${FALSE} ; \
-       fi
-.endif
 .endif
 .if !defined(NOCRYPT)
-       @if ! ${LDD} ${PHPSO} | ${GREP} -q -e "libmcrypt.so.8"; then \
+       @if ! ${LDD} ${PHPSO} | ${GREP} -q -e "libmcrypt.so"; then \
            ${ECHO_MSG} "" ; \
            ${ECHO_MSG} "Please configure PHP with mcrypt support." ; \
            ${ECHO_MSG} "" ; \
@@ -219,10 +210,10 @@
        fi
 .endif
 .if !defined(WITHOUT_SUPPORTED_DB)
-       @if ! ${LDD} ${PHPSO} | ${GREP} -q -e "libmysqlclient.so.10"; then \
-        if ! ${LDD} ${PHPSO} | ${GREP} -q -e "libpq.so.3" ; then \
-         if ! ${LDD} ${PHPSO} | ${GREP} -q -e "libsybdb.so.1" ; then \
-          if ! ${LDD} ${PHPSO} | ${GREP} -q -e "libct.so.0" ; then \
+       @if ! ${LDD} ${PHPSO} | ${GREP} -q -e "libmysqlclient.so"; then \
+        if ! ${LDD} ${PHPSO} | ${GREP} -q -e "libpq.so" ; then \
+         if ! ${LDD} ${PHPSO} | ${GREP} -q -e "libsybdb.so" ; then \
+          if ! ${LDD} ${PHPSO} | ${GREP} -q -e "libct.so" ; then \
            ${ECHO_MSG} "" ; \
            ${ECHO_MSG} "Please configure PHP with a database support." ; \
            ${ECHO_MSG} "MySQL, PostgreSQL and Sybase (CTLIB or DBLIB)" ; \


>Release-Note:
>Audit-Trail:

From: Thierry Thomas <thierry@pompo.net>
To: Pat Lashley <patl+freebsd@volant.org>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/56119: IMP3 port is too specific in PHP capabilities tests
Date: Fri, 29 Aug 2003 07:41:32 +0200

 Le Ven 29 ao 03   6:27:52 +0200, Pat Lashley <patl+freebsd@volant.org>
  crivait:
 > 
 > >Number:         56119
 > >Category:       ports
 > >Synopsis:       IMP3 port is too specific in PHP capabilities tests
 
 > >Description:
 > 	The mail/imp3 port's Makefile contains code to ensure that PHP was
 > 	compiled with support for various features that IMP requires.
 > 	These tests run ldd(1) on the PHP module and check for references
 > 	to specific libraries.  The problem is that the checks specify
 > 	particular library versions which may not match up with the versions
 > 	actually used.  IMP should not care about the particular version,
 > 	only whether PHP has the necessary support.
 > >How-To-Repeat:
 > 	Build PHP4 with MySQL version 4.x; then try to build Imp3.  It
 > 	will stop and ask you to configure PHP with a database support.
 
 This has been fixed by PR ports/54656, and committed tonight with
 PR ports/56099.
 
 Thanks.
 -- 
 Th. Thomas.
State-Changed-From-To: open->closed 
State-Changed-By: krion 
State-Changed-When: Thu Aug 28 23:00:59 PDT 2003 
State-Changed-Why:  
Fixed with ports/56099, thanks! 

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