Bug 2494531

Summary: Use '-any' virtual provide for mariadb / mysql dependencies
Product: [Fedora] Fedora Reporter: Michal Schorm <mschorm>
Component: akonadi-serverAssignee: Than Ngo <than>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 43CC: farchord, kde-sig, than
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: akonadi-server-26.04.2-2.fc45 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-07-13 14:04:28 UTC 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:11:03 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 Fedora Update System 2026-06-30 14:15:28 UTC
FEDORA-2026-6770b8461c (akonadi-server-26.04.2-2.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-6770b8461c

Comment 2 Fedora Update System 2026-06-30 19:28:20 UTC
FEDORA-2026-6770b8461c (akonadi-server-26.04.2-2.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 3 Michal Schorm 2026-07-03 11:11:24 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

The fix was only applied in Rawhide.