Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81867 - Spamassassin requires DB_File even when USE="-berkdb"
Summary: Spamassassin requires DB_File even when USE="-berkdb"
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-13 08:36 UTC by xlyz
Modified: 2005-03-28 07:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xlyz 2005-02-13 08:36:10 UTC
investigating low accuracy of spamassissin I got this error while doing sa-learn  --spam -D :

DB_file module not installed, cannot use Bayes

I emerged DB_File and everything is ok

btw I have -berkdb among my USE flags, and consequently DB_File was not insalled with Spamassassin

maybe DB_File has to be a dependency no matter if berkdb USE flag is set to on or off

Reproducible: Always
Steps to Reproduce:




# emerge info
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5,
glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Unknown CPU Typ
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 23:22:39)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.4.3-r4, 1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo/
http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/home/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X aalib alsa apache2 apm avi bitmap-fonts bonobo cdr crypt cups
directfb divx4linux dvd eds encode esd evo f77 fam fbcon flac font-server
foomaticdb fortran gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 gtkhtml
imagemagick imlib innodb ipv6 irmc java jpeg ldap libwww mad mmx motif mpeg
mysql ncurses nls nntp nozaptel odbc oggvorbis opengl oss pam pdflib perl png
ppds python quicktime samba scanner sdl sqlite sse ssl svga tcpd tiff truetype
truetype-fonts type1-fonts usb xinerama xml xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Malte S. Stretz 2005-03-28 07:03:01 UTC
This was done on purpose -- if you don't want the Berkeley DB (dependency of DB_File), you won't get any Berekely database support.  The spamassassin ebuild prints out a big fat info about this after installation.

You have two choices:
1.  Don't USE=-berkdb (or add berkdb for spamassassin to your package.use).
2.  Use an alternative Bayes storage like a MySQL database.