Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jan 2025 09:11:43 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 284027] databases/luadbi: default database driver swap breaking POLA
Message-ID:  <bug-284027-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D284027

            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 recen=
tly
from SQLite3 to MySQL in
https://cgit.freebsd.org/ports/commit/databases/luadbi?id=3Db43fee0213d3ff8=
1106cbccd08765564e55cbf30

The effect of such change is that upon package upgrade, the existing databa=
se
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?

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-284027-7788>