[Bug 296790] mail/dovecot-fts-xapian: not flavor-aware, breaks when a non-default dovecot flavor (mysql/pgsql/sqlite3) is installed
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 14 Jul 2026 16:37:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296790
Bug ID: 296790
Summary: mail/dovecot-fts-xapian: not flavor-aware, breaks when
a non-default dovecot flavor (mysql/pgsql/sqlite3) is
installed
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: Individual Port(s)
Assignee: otis@FreeBSD.org
Reporter: ulassayginim@gmail.com
Flags: maintainer-feedback?(otis@FreeBSD.org)
Assignee: otis@FreeBSD.org
Created attachment 272842
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=272842&action=edit
mail/dovecot, mail/dovecot-pigeonhole, mail/dovecot-fts-flatcurve,
mail/dovecot-fts-xapian: re-add sqlite3 flavor and fix fts-xapian
flavor-awareness
mail/dovecot currently ships FLAVORS=default mysql pgsql.
mail/dovecot-pigeonhole
and mail/dovecot-fts-flatcurve are already flavor-aware
(BUILD_DEPENDS/RUN_DEPENDS
select dovecot@<flavor>), but mail/dovecot-fts-xapian still has a flavor-blind
dependency:
BUILD_DEPENDS= dovecot>=2.3.7:mail/dovecot
RUN_DEPENDS= dovecot>=2.3.7:mail/dovecot
History:
- commit 0dd69d0 originally added FLAVORS=default cdb ldap mysql pgsql sqlite3
to mail/dovecot, without updating dependent ports.
- commit c0ed6e0 reverted 0dd69d0, citing: "Flavors currently breaks
mail/dovecot-pigeonhole, mail/dovecot-fts-xapian, mail/dovecot-fts-flatcurve.
nc & I (ler) will work to see if we can come to a better way to do this"
- Since then, mail/dovecot-pigeonhole and mail/dovecot-fts-flatcurve were made
flavor-aware (current tree already has dovecot@default/@mysql/@pgsql deps in
both), and mail/dovecot itself regained FLAVORS=default mysql pgsql. Only
sqlite3 (and cdb/ldap) were never re-added, and mail/dovecot-fts-xapian was
never given the same flavor-awareness fix.
This report re-tests whether the original c0ed6e0 breakage still applies today
before re-adding the sqlite3 flavor.
Reproduced on a clean FreeBSD 15.0-RELEASE VM: with dovecot-sqlite3 installed
(no plain dovecot package), building dovecot-fts-xapian pulls in mail/dovecot
(default flavor) as an extra dependency and fails:
pkg-static: dovecot-2.3.21.1_3 conflicts with dovecot-sqlite3-2.3.21.1_3
(installs files into the same place). Problematic file:
/usr/local/share/dovecot/stopwords/stopwords_da.txt
This confirms: the c0ed6e0 concern is still valid for fts-xapian specifically,
even though pigeonhole/fts-flatcurve have since been fixed.
Attached patch (dovecot-sqlite3-flavor.diff):
- Re-adds the sqlite3 flavor to mail/dovecot (safe now, given the fix below).
- Adds the sqlite3 arm to the existing flavor-dependency pattern in
mail/dovecot-pigeonhole and mail/dovecot-fts-flatcurve.
- Fixes mail/dovecot-fts-xapian by adding FLAVORS + per-flavor
BUILD_DEPENDS/RUN_DEPENDS, mirroring the pattern already used in
pigeonhole/fts-flatcurve — this is the actual fix for the issue c0ed6e0
described.
Verified on FreeBSD 15.0-RELEASE (amd64):
- All four ports build/install cleanly with FLAVOR=default (baseline,
unmodified) and FLAVOR=sqlite3 (patched), with no package conflicts.
- Runtime-tested dovecot-sqlite3 with a real SQLite passdb/userdb: live
IMAP LOGIN/LIST/LOGOUT succeeded, doveadm user and doveadm sieve list
resolved correctly against the SQLite backend.
No pkg-plist/distinfo changes needed - sqlite3 reuses the existing SQLITE
option and USES=sqlite already present in each port.
--
You are receiving this mail because:
You are the assignee for the bug.