Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78768 - mail-filter/dspam-3.4_beta1 wants mail-mta/courier
Summary: mail-filter/dspam-3.4_beta1 wants mail-mta/courier
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal
Assignee: Lim Swee Tat (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-19 21:03 UTC by Tuan Van (RETIRED)
Modified: 2005-02-16 19:26 UTC (History)
0 users

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


Attachments
Fixes maildrop USE flag to use maildrop OR courier (dspam.patch,505 bytes, patch)
2005-01-20 02:39 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tuan Van (RETIRED) gentoo-dev 2005-01-19 21:03:27 UTC
mail-filter/dspam-3.4_beta1 wants mail-mta/courier but I have postfix and courier-imap.

# emerge dspam -vp

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[blocks B     ] net-mail/courier-imap (from pkg mail-mta/courier-0.48.1)
[blocks B     ] mail-mta/postfix (from pkg mail-mta/courier-0.48.1)
[ebuild  N    ] mail-mta/courier-0.48.1  +crypt -fax +ipv6 +ldap -mailwrapper +mysql +nls -norewrite +pam +postgres +spell (-uclibc) 5,737 kB
[ebuild  N    ] app-admin/logrotate-3.7  (-selinux) 0 kB
[ebuild  N    ] mail-filter/dspam-3.4_beta1  -cyrus -debug -exim -large-domain -maildrop +mysql -neural -oci8 +postgres -procmail +sqlite 0 kB
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-01-20 02:39:56 UTC
Created attachment 49027 [details, diff]
Fixes maildrop USE flag to use maildrop OR courier

The build has a mistake - it assumes that if the USE flag maildrop is set then
depend on maildrop, otherwise courier.

Instead, it should read if USE flag maildrop is set then depend on maildrop OR
courier.

This patch is for 3.3.8, but should apply cleanly to 3.3.11 and others
Comment 2 Karl Greunke 2005-01-20 11:43:09 UTC
This bug applies to all current DSPAM Ebuilds

grep maildrop\? /usr/portage/mail-filter/dspam/*.ebuild
/usr/portage/mail-filter/dspam/dspam-3.2.4.ebuild:              maildrop? ( >=mail-filter/maildrop-1.5.3 ) || ( >=mail-mta/courier-0.46 )
/usr/portage/mail-filter/dspam/dspam-3.2.6.ebuild:              maildrop? ( >=mail-filter/maildrop-1.5.3 ) || ( >=mail-mta/courier-0.46 )
/usr/portage/mail-filter/dspam/dspam-3.3.11.ebuild:             maildrop? ( >=mail-filter/maildrop-1.5.3 ) || ( >=mail-mta/courier-0.46 )
/usr/portage/mail-filter/dspam/dspam-3.3.8.ebuild:              maildrop? ( >=mail-filter/maildrop-1.5.3 ) || ( >=mail-mta/courier-0.46 )
/usr/portage/mail-filter/dspam/dspam-3.4_beta1.ebuild:          maildrop? ( >=mail-filter/maildrop-1.5.3 ) || ( >=mail-mta/courier-0.46 )
tux config #
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2005-01-20 19:58:12 UTC
Well, this package is completely broken IMO:
- the DEPEND is somewhere between broken and plain invalid, see ebuild(5) what the || operator really does. I don't think you wanted to use it, but it's hard to guess what you wanted to do there in the first place (hint: the patch doesn't fix anything)
- the cyrus and exim use flags should be removed, it's not our business to add trivial flags just for minor changes to config files. And even if they stay, they shouldn't affect DEPEND but RDEPEND. But I strongly recommend to remove them.
- system users should have a low uid in general, usually all users with a uid > 500 or 1000 are considered real users.
Comment 4 Lim Swee Tat (RETIRED) gentoo-dev 2005-01-21 07:24:36 UTC
Trying to commit to CVS.
Comment 5 Lim Swee Tat (RETIRED) gentoo-dev 2005-01-21 21:56:52 UTC
I've made a commit to CVS.  Does this solve all the issues?  I'm reopening the bug so that someone can tell me what to do about this. :)

Regards
Lim Swee Tat
Comment 6 Tuan Van (RETIRED) gentoo-dev 2005-01-21 22:03:52 UTC
mysql? ( >=dev-db/mysql-3.23 ) || ( >=sys-libs/db-4.0 ) is wrong syntax. I am not sure what are you trying to do there.
if mysql? then either >=dev-db/mysql-3.23 or >=sys-libs/db-4.0 satify the dep:

mysql? || (
	>=mail-filter/maildrop-1.5.3
	>=mail-mta/courier-0.46
)

or

if mysql is missing, then depends on >=sys-libs/db-4.0?

mysql? ( >=dev-db/mysql-3.23 ) !mysql? ( >=sys-libs/db-4.0 )
Comment 7 Lim Swee Tat (RETIRED) gentoo-dev 2005-02-16 19:26:21 UTC
I think I wanted it so that you either build for mysql, postgres or oracle, or sqlite.  A minor change should fix it.