[Bug 284027] databases/luadbi: default database driver swap breaking POLA

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 13 Jan 2025 09:11:43 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284027

            Bug ID: 284027
           Summary: databases/luadbi: default database driver swap
                    breaking POLA
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: freebsd-bugs@km.krot.org
                CC: olexander.v.melnyk@gmail.com
             Flags: maintainer-feedback?(olexander.v.melnyk@gmail.com)
                CC: olexander.v.melnyk@gmail.com

This follows up on #270844.

It seems the luadbi is swapping default database drivers, which are getting
installed along with luadbi when using packages, back and forth, most recently
from SQLite3 to MySQL in
https://cgit.freebsd.org/ports/commit/databases/luadbi?id=b43fee0213d3ff81106cbccd08765564e55cbf30

The effect of such change is that upon package upgrade, the existing database
driver is removed from the system, and a new one is installed. This could be
considered warranted when default driver becomes broken (as apparently was the
case when going from MySQL to SQLite3), but just swapping defaults without any
strong reason is breaking POLA.

In my case this broke Prosody configuration, which relied on SQLite.

Now that subpackage infrastructure is in place, it seems individual database
drivers are rather good candidates for getting subpackaged?

-- 
You are receiving this mail because:
You are the assignee for the bug.