Bug 279145 - mail/cyrus-imapd25: Remove BDB 5.x support
Summary: mail/cyrus-imapd25: Remove BDB 5.x support
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Hajimu UMEMOTO
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-18 21:39 UTC by Daniel Engberg
Modified: 2024-06-17 17:23 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (ume)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Engberg freebsd_committer freebsd_triage 2024-05-18 21:39:43 UTC
Please remove support as databases/db5 should've been sunset a long time ago.

Best regards,
Daniel
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-05-26 04:02:27 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4f45619632fe125093824d6b3c9d59d0c4d9bb77

commit 4f45619632fe125093824d6b3c9d59d0c4d9bb77
Author:     Hajimu UMEMOTO <ume@FreeBSD.org>
AuthorDate: 2024-05-26 03:58:06 +0000
Commit:     Hajimu UMEMOTO <ume@FreeBSD.org>
CommitDate: 2024-05-26 04:01:30 +0000

    mail/cyrus-imapd25: don't use db5.  use db18 explicitly.

    PR:             279145
    Reported by:    diizzy

 mail/cyrus-imapd25/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 2 Hajimu UMEMOTO freebsd_committer freebsd_triage 2024-05-26 04:05:13 UTC
Thanks.  I've updated to use db18 explicitly.
Comment 3 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2024-06-10 15:57:14 UTC
Please revert this, it builds fine but segfaults as soon as a client connects.
Comment 4 Hajimu UMEMOTO freebsd_committer freebsd_triage 2024-06-12 17:20:29 UTC
(In reply to Dag-Erling Smørgrav from comment #3)

The berkeley cyrusdb backend is not used by default.
Are you enabling the berkeley cyrusdb backend by specifying in imapd.conf?
If you are not using it, please try to build cyrus-imapd25 without BDB option. 
If it fixes your problem, I'll disabling BDB option by default.
Comment 5 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2024-06-12 19:02:12 UTC
Yes, I am using BDB.  My IMAP spool goes all the way back to 2003, when BDB was the only option.  The only way to convert is to set up a second server and run imapsync, which would require days of downtime.
Comment 6 Hajimu UMEMOTO freebsd_committer freebsd_triage 2024-06-15 10:40:33 UTC
(In reply to Dag-Erling Smørgrav from comment #5)

Okay, I'll backout to not force db18.  However, I'll disable BDB option by default.  Is it okay for you?
In anyways, 2.5.X is legacy version after all, and you should upgrade to recent version.
Comment 7 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2024-06-15 13:08:13 UTC
(In reply to Hajimu UMEMOTO from comment #6)
> I'll disable BDB option by default.  Is it okay for you?

Yes, that's fine.
Comment 8 commit-hook freebsd_committer freebsd_triage 2024-06-15 14:44:50 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=dbd3f8a1541ea056c29567e1d896de4725a2a99e

commit dbd3f8a1541ea056c29567e1d896de4725a2a99e
Author:     Hajimu UMEMOTO <ume@FreeBSD.org>
AuthorDate: 2024-06-15 14:38:55 +0000
Commit:     Hajimu UMEMOTO <ume@FreeBSD.org>
CommitDate: 2024-06-15 14:44:32 +0000

    mail/cyrus-imapd25: disable BDB option by default and back to not force db18

    PR:             279145
    Requested by:   des

 UPDATING                    | 12 ++++++++++++
 mail/cyrus-imapd25/Makefile |  6 +++---
 2 files changed, 15 insertions(+), 3 deletions(-)