Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Mar 2004 21:17:23 +0800 (CST)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/64802: [lang/php4] Fix LIB_DEPENDS on Berkeley DB 4.2 
Message-ID:  <20040327131723.48CF117064@IRIS.sunpoet.net>
Resent-Message-ID: <200403271320.i2RDK85R002690@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         64802
>Category:       ports
>Synopsis:       [lang/php4] Fix LIB_DEPENDS on Berkeley DB 4.2
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 27 05:20:08 PST 2004
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040327131723.48CF117064>