From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jul 21 11:30:21 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8ADED37B401 for ; Mon, 21 Jul 2003 11:30:21 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD90243F85 for ; Mon, 21 Jul 2003 11:30:20 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h6LIUKUp064272 for ; Mon, 21 Jul 2003 11:30:20 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h6LIUKFF064271; Mon, 21 Jul 2003 11:30:20 -0700 (PDT) Resent-Date: Mon, 21 Jul 2003 11:30:20 -0700 (PDT) Resent-Message-Id: <200307211830.h6LIUKFF064271@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jens Rehsack Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 09B3337B404; Mon, 21 Jul 2003 11:23:55 -0700 (PDT) Received: from helo.liwing.de (helo.liwing.de [213.70.188.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8199F43FA3; Mon, 21 Jul 2003 11:23:53 -0700 (PDT) (envelope-from root@helo.liwing.de) Received: from helo.liwing.de (localhost.liwing.de [127.0.0.1]) by helo.liwing.de (8.12.7/8.12.7) with ESMTP id h6LINo6l062601; Mon, 21 Jul 2003 18:23:50 GMT (envelope-from root@helo.liwing.de) Received: (from root@localhost) by helo.liwing.de (8.12.7/8.12.7/Submit) id h6LINmjf062600; Mon, 21 Jul 2003 18:23:48 GMT Message-Id: <200307211823.h6LINmjf062600@helo.liwing.de> Date: Mon, 21 Jul 2003 18:23:48 GMT From: Jens Rehsack To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: Alex Dupre cc: Norikatsu Shigemura Subject: ports/54726: fixing incorrect detecting of OpenLDAP dependency by lang/php4 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jens Rehsack List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jul 2003 18:30:21 -0000 >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: