Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146079 - mail-filter/popfile missing sqlite dependency
Summary: mail-filter/popfile missing sqlite dependency
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on: 185976
Blocks:
  Show dependency tree
 
Reported: 2006-09-02 20:02 UTC by Jack
Modified: 2007-12-09 06:48 UTC (History)
3 users (show)

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 Jack 2006-09-02 20:02:04 UTC
When I upgraded from popfile 0.20.1 to 0.22.4 (yes, this is a long delay in reporting) I got bit after my next reboot complained that it could not find SQLite (Perl module).  There is a dependency for dev-perl/DBD-SQLite2, but not for SQLite.  However, the script only uses SQLite2 if the version of SQLite is above some cutoff - but that means it fails if it can't fine it at all.  It was easy for me to just emerge SQLite, but this should either be added to the dependencies or the script should just go to SQLite2 if it can't find SQLite and not fail.
Comment 1 Stuart Herbert (RETIRED) gentoo-dev 2006-09-06 06:22:04 UTC
Hi,

Thanks for reporting this.  Just to be clear - which package did you merge to get around this?

Best regards,
Stu
Comment 2 Jack 2006-09-12 17:11:13 UTC
Stu,

Sorry - but I was SURE I responded to this over a week ago.  I've probably got a response posted to some completely unrelated bug....

I believe what I emerged was dev-perl/DBD-SQLite.  I just spent some time looking at the scripts, and I think I was probably barking up the wrong tree.  It looks like all that is needed is to change popfile.cfg to have "bayes_dbconnect dbi:SQLite2:dbname=$dbname" (instead of SQLite).  However, it looks like that file is not included in the ebuild, but gets built on the fly if it doesn't exist.  I can't find where that parameter gets its default value, but if you can change that, then the dependencies are probably OK.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-12-03 06:51:43 UTC
net-mail - someone interested in taking this package? Stuart is retired... :/
Comment 4 Jack 2007-10-05 22:56:08 UTC
Well, I've just done a reinstall due to a dead disk, and the problem still exists.  However, it looks like an easy solution (I can't tell if it's really the best or if it would break anything elst) is to change the 'dbconnect' value on line 220 of Classifier/Bayes.pm (under the popfile main directory) from 'dbi:SQLite:dbname=$dbname' to 'dbi:SQLite2:dbname=$dbname'.

The ebuild requires dev-perl/DBD-SQLIte2, but the package actually tries to run DBD:SQLite first, and if the version is too high (and therefore using an incompatible version of the underlying SQLite database) it only then tries to use DBD:SQLite2.  Changing the default dbconnect value bypasses this problem.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2007-12-09 06:48:06 UTC
I've added 0.22.5 to tree, was there something else that needed to be done to close this? It defaults to SQLITE2 afaik.