Subject: Re: mail/bogofilter upgrade?
To: Jon Buller <jon@bullers.net>
From: Greg A. Woods <woods@weird.com>
List: tech-pkg
Date: 12/31/2003 18:29:59
[ On Tuesday, December 23, 2003 at 08:20:47 (-0800), Jon Buller wrote: ]
> Subject: mail/bogofilter upgrade?
>
> I've been working on upgrading bogofilter to 0.15.11 from 0.14.5.
> The configure script seems to be having problems with really wanting
> to use -ldb instead of -ldb4 which seems to be the proper way on
> my -current/sparc machine.
Yeah, they've really made things really horribly ugly as well as really
extremely and unnecessarily complex. :-(
> I am not very autoconf clued, so I've
> been bashing on the configure script directly, but I suspect the
> right thing to do os hack config.in or configure.ac or something
> and feed the changes back to ESR.
>
> Anyone want to offer advice/assist/take over this little project?
I tried hacking on 0.5.13 yesterday but didn't get far enough along to
test my ideas since I was too lazy to upgrade my autoconf and automake. :-)
The following patch _might_ fix the bug, assuming that configure is then
invoked with the following too:
CONFIGURE_ARGS+= --with-database=db4
CONFIGURE_ARGS+= --with-libdb-prefix=${BUILDLINK_PREFIX.db4}/include/db4
--- configure.ac.orig Fri Dec 26 10:25:03 2003
+++ configure.ac Wed Dec 31 18:25:01 2003
@@ -298,12 +298,12 @@
])],,AC_MSG_ERROR(Cannot link to qdbm library.))
LIBS="$saveLIBS"
;;
- xdb)
+ xdb|xdb[0-9])
dnl check if we need LIBDB at all (it is harmful on BSD since
dnl they rename the library including soname)
AC_DEFINE_UNQUOTED(DB_TYPE, "db")
AC_DEFINE_UNQUOTED(DB_EXT, ".db")
- AC_LIB_LINKFLAGS([db])
+ AC_LIB_LINKFLAGS([$WITH_DB_ENGINE])
AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <db.h>], [int r, s, t; db_version(&r, &s, &t);])],LIBDB="")
saveLIBS="$LIBS"
LIBS="$LIBS $LIBDB"
--
Greg A. Woods
+1 416 218-0098 VE3TCP RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com> Secrets of the Weird <woods@weird.com>