Fedora Account System
Red Hat Associate
Red Hat Customer
MariaDB and MySQL use versioned package layout in Fedora nowadays. That means multiple LTS versions of the same DB are packed in parallel as differently named packages (mariadb10.11, mariadb11.8, mariadb12.3, ...). Exactly one of these packages is chosen as "distribution default" version, which provides the unversioned names (mariadb, mariadb-server, ...). However when your package Requires the unversioned name, it cannot be used with any other version of that database. Virtual RPM provides with '-any' suffixes, (mariadb-any, mariadb-server-any, ...) which are provided by every version of that database, has to be used instead. To fix it, instead of: Requires: mariadb use: Requires: mariadb-any Recommends: mariadb or e.g. instead: Requires: mariadb-server use: Requires: mariadb-server-any Recommends: mariadb-server (based on the type of RPM relationship you use in your package) Where the Requires make sure it can be satisfied by any database version, while the recommends sets a preference for the distribution default version for that Fedora release, when no database is installed yet. This has to be fixed in all active Fedora releases. Please apply the necessary fix to your package and prepare an update in BODHI. Reproducible: Always
https://src.fedoraproject.org/rpms/ncid/pull-request/4
NCID does not install MariaDB or MySQL. It just gives instructions on how to configure them for NCID.
The current code specifically requires 'mysql': https://src.fedoraproject.org/rpms/ncid/blob/rawhide/f/ncid.spec#_78 and the resulting package really does require mysql: https://koji.fedoraproject.org/koji/rpminfo?rpmID=47415843 Should the reqiuremnt be dropped on all active Fedora releases, instead of the fix I proposed?
I haven't used NCID for quite some time but maybe I can help here. The mysql subpackage (ncid-mysql) does explicitly require "mysql" in the spec file today. I think this makes sensein general, as ncid-mysql is worthless without the database installed, correct? (Presumably that was the rationale for splitting out the subpackage in the first place). Michael is suggesting that instead of requiring this by the explicit "mysql" name, we should instead Require: mysql-any and Recommends: mysql so that any available mysql-compatible package name (MariaDB, MySQL) and/or version will satisfy that dependency for this subpackage. IOWS, the PR makes sense to me. Thanks, -Eric
The next release, ncid-1.19, will have the recommended way to require mysql.
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle. Changing version to 45.