Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Aug 2003 21:27:57 -0700
From:      Pat Lashley <patl+freebsd@volant.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/56120: IMP3 port's dependancy test fails for cyrus-imapd22
Message-ID:  <E19sard-000886-00@knight.volant.org>
Resent-Message-ID: <200308290430.h7T4U21Q034763@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         56120
>Category:       ports
>Synopsis:       IMP3 port's dependancy test fails for cyrus-imapd22
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 28 21:30:02 PDT 2003
>Closed-Date:
>Last-Modified:
>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 can be built with support for the Cyrus IMAPd
	The WITH_CYRUS flag specifies version 1.x (mail/cyrus) and the
	WITH_CYRUS_IMAPD flag specifies version 2.x (mail/cyrus-imapd).
	The WITH_CYRUS flag tests the existance of the installed Cyrus
	directory in ${LOCALBASE}.  The WITH_CYRUS_IMAPD flag tests for
	the existance of libacap.

	There are actually three ports providing different subreleases
	of the Cyrus IMAP system version 2.  The cyrus-imapd port is
	version 2.0.17, the cyrus-imapd2 port is 2.1.14, and the
	cyrus-imapd22 port is 2.2.1b.  Unfortunately, 2.2.1b does not
	include libacap so the imp3 build failes to recognize when it
	is installed.

	Since imp3 doesn't directly use the ACAP library, and appears
	to work fine with cyrus-imapd22, the test should be modified.
>How-To-Repeat:
	Install mail/cyrus-imapd22.  Then try to build mail/imp3.  You
	will see that it attempts to build mail/cyrus-imapd.
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E19sard-000886-00>