Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 562796 - net-mail/dovecot should use subslots
Summary: net-mail/dovecot should use subslots
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Eray Aslan
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2015-10-11 08:47 UTC by Luca Santarelli
Modified: 2023-04-20 16:08 UTC (History)
4 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 Luca Santarelli 2015-10-11 08:47:49 UTC
Please forgive my un-technicality on the issue.

Dovecot is strict about plugin compatibility: every time it starts, it checks if requested plugins have the same "build" signature as the running instance of dovecot, refusing to work properly in case of a mismatch.

This translates in: everytime there's an update to dovecot in portage and I emerge it, it breaks because I forget to force-reinstall the external plugins I use (mail-filter/dovecot_antispam).

In my un-technicality I've seen that there are packages which get force-reinstalled when other packages get updated. I request to extend this  behaviour to dovecot plugins.

Reproducible: Always

Steps to Reproduce:
1. emerge net-mail/dovecot (when there's an update)
2. /etc/init.d/dovecot restart
3. (try to connect to it)
Actual Results:  
Dovecot refuses the connection, complaining in its logs that external plugins have a version mismatch (Sorry, I don't have the log available)

Expected Results:  
1. emerge should reinstall installed plugins after compiling dovecot
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-02-06 19:08:29 UTC
I don't see why not?
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-10 02:13:29 UTC
dovecot_antispam isn't in tree (anymore?) but I'm happy to add this if eras has no objections. Is there anything which needs to subscribe to the subslot in ::gentoo, or should we just provide it/
Comment 3 Eray Aslan gentoo-dev 2021-09-10 14:15:25 UTC
no objections and no subslot consumer in ::gentoo afaik but

pigeonhole (the plugin that provides SIEVE capability) should really be a separate package.  Their releases usually but not always occur simultaneously. so pigeonhole package, if/when we separate it from dovecot, will be a potential consumer.
Comment 4 Philippe Chaintreuil 2022-07-24 12:30:22 UTC
Came to +1 this.  I have a plugin in the GURU repo (net-mail/dovecot-fts-xapian) that needs to be rebuilt every time Dovecot gets rebuilt.
Comment 5 Philippe Chaintreuil 2023-04-20 14:00:11 UTC
"equery depends -a net-mail/dovecot" brings up this list for me (summarized):

mail-filter/maildrop (dovecot ? net-mail/dovecot)
net-mail/dovecot-fts-xapian (net-mail/dovecot) [GURU]
sys-cluster/poolmon (net-mail/dovecot)

I threw up a Github PR in case it makes anyone's life easier or restarts a conversation about pros/cons/gotchas.
Comment 6 Larry the Git Cow gentoo-dev 2023-04-20 16:08:46 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4b456d41ef71294e468e0bf5f8c630fa0e6a301

commit e4b456d41ef71294e468e0bf5f8c630fa0e6a301
Author:     Philippe Chaintreuil <gentoo_bugs_peep@parallaxshift.com>
AuthorDate: 2023-04-20 13:44:52 +0000
Commit:     Eray Aslan <eras@gentoo.org>
CommitDate: 2023-04-20 16:08:38 +0000

    net-mail/dovecot: A ${PV} based subsloting
    
    Closes: https://bugs.gentoo.org/562796
    Closes: https://github.com/gentoo/gentoo/pull/30667
    Signed-off-by: Philippe Chaintreuil <gentoo_bugs_peep@parallaxshift.com>
    Signed-off-by: Eray Aslan <eras@gentoo.org>

 net-mail/dovecot/dovecot-2.3.20-r2.ebuild | 302 ++++++++++++++++++++++++++++++
 1 file changed, 302 insertions(+)