ports/66161: [Update Port] mail/lmtpd: fix bug in new Makefile when db3 and db4 are installed (make index fails)

Kay Lehmann kay_lehmann at web.de
Sun May 2 06:10:29 UTC 2004


>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:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 01 23:10:28 PDT 2004
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:



More information about the freebsd-ports-bugs mailing list