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
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 21 11:30:19 PDT 2003
>Originator:     Jens Rehsack
>Release:        FreeBSD 5.1-CURRENT i386
LiWing IT-Services
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

	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.
	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.

--- 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
+LIB_DEPENDS+=	ldap.2:${PORTSDIR}/net/openldap21
+.elif exists(${LOCALBASE}/lib/libldap.so.2)
+LIB_DEPENDS+=	ldap.2:${PORTSDIR}/net/openldap20
 LIB_DEPENDS+=	ldap.2:${PORTSDIR}/net/openldap21
--- patch-ldap-Makefile ends here ---


More information about the freebsd-ports-bugs mailing list