Date: Mon, 21 Jul 2003 18:23:48 GMT From: Jens Rehsack <rehsack@liwing.de> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Norikatsu Shigemura <nork@FreeBSD.org> Subject: ports/54726: fixing incorrect detecting of OpenLDAP dependency by lang/php4 Message-ID: <200307211823.h6LINmjf062600@helo.liwing.de> Resent-Message-ID: <200307211830.h6LIUKFF064271@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307211823.h6LINmjf062600>