From sunpoet@IRIS.sunpoet.net  Sat Mar 27 05:17:19 2004
Return-Path: <sunpoet@IRIS.sunpoet.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 047D416A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 27 Mar 2004 05:17:19 -0800 (PST)
Received: from IRIS.sunpoet.net (sunpoet.net [203.204.205.212])
	by mx1.FreeBSD.org (Postfix) with ESMTP id CDFF443D3F
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 27 Mar 2004 05:17:18 -0800 (PST)
	(envelope-from sunpoet@IRIS.sunpoet.net)
Received: by IRIS.sunpoet.net (Postfix, from userid 1000)
	id 48CF117064; Sat, 27 Mar 2004 21:17:23 +0800 (CST)
Message-Id: <20040327131723.48CF117064@IRIS.sunpoet.net>
Date: Sat, 27 Mar 2004 21:17:23 +0800 (CST)
From: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
Reply-To: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [lang/php4] Fix LIB_DEPENDS on Berkeley DB 4.2 
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         64802
>Category:       ports
>Synopsis:       [lang/php4] Fix LIB_DEPENDS on Berkeley DB 4.2
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    ale
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 27 05:20:08 PST 2004
>Closed-Date:    Sun Mar 28 14:09:49 PST 2004
>Last-Modified:  Sun Mar 28 14:09:49 PST 2004
>Originator:     Sunpoet Po-Chuan Hsieh
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
SUNPOET.net
>Environment:
System: FreeBSD IRIS.sunpoet.net 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Tue Mar 23 18:25:35 CST 2004 sunpoet@IRIS.sunpoet.net:/usr/src/sys/i386/compile/sunpoet i386

	
>Description:
Building php4 with Berkeley DB 4.2, it add LIB_DEPENDS db4.2.2 but databases/db42 installed shared object at /usr/local/lib/libdb-4.2.so.2. (dash is missing)

% ls -la /usr/local/lib/libdb-4.2.so.2
lrwxr-xr-x  1 root  wheel  19 Mar 27 18:55 /usr/local/lib/libdb-4.2.so.2@ -> db42/libdb-4.2.so.2

	
>How-To-Repeat:
% cd /usr/ports/lang/php4
% make WITH_DB4_VER=42

	
>Fix:
% cd /usr/ports/lang/php4
% diff -u Makefile.orig Makefile
--- Makefile.orig	Sat Mar 27 00:44:25 2004
+++ Makefile	Sat Mar 27 21:04:19 2004
@@ -250,7 +250,7 @@
 .if defined(WITH_DB4)
 WITH_DB4_VER?=	41
 .if ${WITH_DB4_VER} == 42
-LIB_DEPENDS+=	db4.2.2:${PORTSDIR}/databases/db42
+LIB_DEPENDS+=	db-4.2.2:${PORTSDIR}/databases/db42
 .else
 .if ${WITH_DB4_VER} == 4
 LIB_DEPENDS+=	db4.0:${PORTSDIR}/databases/db4

	
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ale 
Responsible-Changed-By: pav 
Responsible-Changed-When: Sat Mar 27 06:19:38 PST 2004 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=64802 
State-Changed-From-To: open->closed 
State-Changed-By: ale 
State-Changed-When: Sun Mar 28 14:09:36 PST 2004 
State-Changed-Why:  
Fixed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=64802 
>Unformatted:
