From kay_lehmann@web.de  Sat May  1 23:06:53 2004
Return-Path: <kay_lehmann@web.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 51F4116A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  1 May 2004 23:06:53 -0700 (PDT)
Received: from einhorn.in-berlin.de (einhorn.in-berlin.de [192.109.42.8])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 74C9743D45
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  1 May 2004 23:06:52 -0700 (PDT)
	(envelope-from kay_lehmann@web.de)
Received: from bippes.finkenkrug.ev (lehmann.in-dsl.de [212.42.238.240])
	(authenticated bits=0)
	by einhorn.in-berlin.de (8.12.10/8.12.10/Debian-4) with ESMTP id i4266biR023213;
	Sun, 2 May 2004 08:06:48 +0200
Message-Id: <1083478103.0@bippes.finkenkrug.ev>
Date: Sun, 2 May 2004 08:08:23 +0200
From: "Kay Lehmann" <kay_lehmann@web.de>
To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@freebsd.org>
Cc: kiwi@oav.net
Subject: [Update Port] mail/lmtpd: fix bug in new Makefile when db3 and db4 are installed (make index fails)
X-Send-Pr-Version: gtk-send-pr 0.3.3 
X-GNATS-Notify:

>Number:         66161
>Category:       ports
>Synopsis:       [Update Port] mail/lmtpd: fix bug in new Makefile when db3 and db4 are installed (make index fails)
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 01 23:10:28 PDT 2004
>Closed-Date:    Sun May 02 02:58:26 PDT 2004
>Last-Modified:  Sun May 02 02:58:26 PDT 2004
>Originator:     Kay Lehmann
>Release:        FreeBSD 4.10-PRERELEASE i386
>Organization:
>Environment:


System: FreeBSD 4.10-PRERELEASE #36: Mon Apr 26 16:32:23 CEST 2004
    kay@bippes.finkenkrug.ev:/usr/obj/usr/src/sys/bippes



>Description:


Latest commit to let users choose whether they want to install lmtpd 
with db3 or db4 breaks 'make index' when both are installed.
Makefile sets WITH_DB3 and WITH_DB4 and defines an .error if both 
are defined. So this will break make index, so we have to prefer one 
and tell make not to set the other if both are installed.
Since I don't know which one to prefer the patch could just be seen as an 
example how we could avoid this error. Maintainer is CC'ed.



>How-To-Repeat:


Install db3, db4 and try to make index.


>Fix:


--- mail_lmtpd_Makefile.diff begins here ---
--- /usr/ports/mail/lmtpd/Makefile.orig	Sun May  2 07:59:14 2004
+++ /usr/ports/mail/lmtpd/Makefile	Sun May  2 07:59:00 2004
@@ -36,7 +36,7 @@
 OPTIONS+=	DB3 "Support for DB3" off
 .endif
 
-.if exists(${LOCALBASE}/lib/libdb4.so)
+.if !defined(WITH_DB3) && exists(${LOCALBASE}/lib/libdb4.so)
 WITH_DB4=	yes
 OPTIONS+=	DB4 "Support for DB4" on
 .else
--- mail_lmtpd_Makefile.diff ends here ---



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Sun May 2 02:58:11 PDT 2004 
State-Changed-Why:  
Different solution of same problem, sent by maintainer, 
is in ports/66140 

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