Subject: pkg/19277: pkgsrc/mail/exim should include a buildlink for db method
To: None <>
From: None <>
List: netbsd-bugs
Date: 12/04/2002 12:08:07
>Number:         19277
>Category:       pkg
>Synopsis:       pkgsrc/mail/exim may build using wrong db
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 04 12:09:00 PST 2002
>Release:        NetBSD 1.6
System: NetBSD 1.6 NetBSD 1.6 (JCR-20020927) #3: Sat Sep 28 13:40:20 PDT 2002 i386
Architecture: i386
Machine: i386
It is well documented in the exim doc/dbm.discuss.txt file
that exim may build against wrong db.

This documentation recommends not using exim's compatibility headers,
but to use the native interface for better performance and "you
don't run the risk of Exim's seeing the 'wrong' version of the
ndbm.h header...".

This is not noticed at build-time, but can cause segmentation faults
at run time.
Build mail/exim with wrong -ldb
Include a buildlink2 for databases/db or db3 or db4 or gdbm

Then add to path-ab (for Local/Makefile.netbsd) settings for this.

USE_DB=yes    (for using the Berkeley db headers)

DBMLIB=-ldb3   (or whatever)