ports/54726: fixing incorrect detecting of OpenLDAP dependency by lang/php4

Jens Rehsack rehsack at liwing.de
Mon Jul 21 18:30:21 UTC 2003


>Number:         54726
>Category:       ports
>Synopsis:       fixing incorrect detecting of OpenLDAP dependency by lang/php4
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 21 11:30:19 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jens Rehsack
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
LiWing IT-Services
>Environment:
System: FreeBSD webdev.muppets.liwing.de 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Sat Jul 19 13:25:30 GMT 2003 root at webdev.muppets.liwing.de:/usr/obj/usr/src/sys/WEBDEV i386


>Description:
	The port lang/php4 and it's slave ports have wrong routine for detecting the net/openldap* dependency
	This patch should fix this, but maintainter review is very welcome.
>How-To-Repeat:
	Try to install net/openldap20 (or net/openldap22) and install lang/php4 with openldap.
	After install of lang/php4 is finished, the package database is corrupted, because
	php thinks, that openldap21 is installed and it should depend on that.
>Fix:

--- patch-ldap-Makefile begins here ---
--- lang/php4/Makefile.orig	Fri Jul  4 02:26:08 2003
+++ lang/php4/Makefile	Sat Jul 19 09:22:22 2003
@@ -434,6 +434,14 @@
 .if defined(WITH_OPENLDAP)
 .if exists(${LOCALBASE}/lib/libldap.so.1)
 LIB_DEPENDS+=	ldap.1:${PORTSDIR}/net/openldap12
+.elif exists(${LOCALBASE}/bin/ldapcompare)
+.if exists(${LOCALBASE}/lib/libslapi.so.2)
+LIB_DEPENDS+=	ldap.2:${PORTSDIR}/net/openldap22
+.else
+LIB_DEPENDS+=	ldap.2:${PORTSDIR}/net/openldap21
+.endif
+.elif exists(${LOCALBASE}/lib/libldap.so.2)
+LIB_DEPENDS+=	ldap.2:${PORTSDIR}/net/openldap20
 .else
 LIB_DEPENDS+=	ldap.2:${PORTSDIR}/net/openldap21
 .endif
--- patch-ldap-Makefile ends here ---


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



More information about the freebsd-ports-bugs mailing list