Bug 2494550

Summary: Use '-any' virtual provide for mariadb / mysql dependencies
Product: [Fedora] Fedora Reporter: Michal Schorm <mschorm>
Component: kf5-akonadi-serverAssignee: KDE SIG <kde-sig>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 43CC: farchord, kde-sig
Target Milestone: ---Flags: mschorm: needinfo? (kde-sig)
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2456347    

Description Michal Schorm 2026-06-29 17:20:22 UTC
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

Comment 1 Michal Schorm 2026-07-03 11:07:48 UTC
Hello,
this is an important fix for the MariaDB ecosystem.
Please apply the fix you accepted for Rawhide in Fedora 43 too, and submit a new update to the BODHI.

https://src.fedoraproject.org/rpms/akonadi-server/c/8bdc6d118747eed79d7b4b3b4a15de06a82afeb4?branch=rawhide
https://src.fedoraproject.org/rpms/akonadi-server/c/a60316b536be160ee2811bb729e4812a49199b6a?branch=rawhide

Thanks !

Comment 3 Aoife Moloney 2026-11-10 19:49:30 UTC
This message is a reminder that Fedora Linux 43 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 43 on 2026-12-02.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '43'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 43 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.