Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126959 - spamassassin uses USE flags improperly
Summary: spamassassin uses USE flags improperly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-20 06:31 UTC by Mark Loeser (RETIRED)
Modified: 2006-03-26 22:28 UTC (History)
1 user (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 Mark Loeser (RETIRED) gentoo-dev 2006-03-20 06:31:40 UTC
Spamassassin has a bunch of USE flags that merely pull in extra dependencies while not actually modifying spamassassin itself.  Currently these include: berkdb ldap spf dcc pyzor razor extramodules ipv6.

Of these, I would say berkdb is questionable to remove, you can leave it, or just depend on berkdb unconditionally since it isn't exactly clear that you need berkdb to have Bayes working, and if you want to make it so you don't need the dep, you would need to disable Bayes somehow in spamassassin, since it is somewhat misleading otherwise.

For the rest, adding a message to postinst listing some possible useful plugins is the way to go, otherwise you can quickly have _alot_ of USE flags to pull in every single possible plugin for spamassassin if you want to stay consistent.
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2006-03-20 06:59:22 UTC
all set. i asked that this bug be started for record (so we had something to point to when someone somewhere someday asks the inevitible why)
Comment 2 Graham Murray 2006-03-20 11:01:58 UTC
Actually you do not need berkdb for bayes to work. You can use mysql or postgresql (and I think sqlite as well) to hold the bayes database. So in order to use bayes, you just need one of the db engines.

As for the other USE flags, personally I think that they are useful as their use ensures that the packages required for the other optional modules are installed. Though maybe (for less experienced Spamassassin users, I was using it before I switched to Gentoo), it might be useful if enabling the USE flags also edited local.cf or v310.pre (as appropriate) to enable to option.
Comment 3 Michael Lorant 2006-03-26 22:28:44 UTC
(In reply to comment #0)
> Spamassassin has a bunch of USE flags that merely pull in extra dependencies
> while not actually modifying spamassassin itself.  Currently these include:
> berkdb ldap spf dcc pyzor razor extramodules ipv6.
> 
> For the rest, adding a message to postinst listing some possible useful plugins
> is the way to go, otherwise you can quickly have _alot_ of USE flags to pull in
> every single possible plugin for spamassassin if you want to stay consistent.
> 
What happens if I unmerge spamassassin? I will be left with a bunch of plugins installed which would be in the world file so depclean won't clean them up. I think the per package USE flags are the way to go. I would recommend at the end of a spamassassin emerge that possible use flags be recommended. Requesting functionality be restored to the way it was in 3.1.0-r2.