Bug 2494539 - Use '-any' virtual provide for mariadb / mysql dependencies
Summary: Use '-any' virtual provide for mariadb / mysql dependencies
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: vdr-epg-daemon
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: MartinKG
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2456347
TreeView+ depends on / blocked
 
Reported: 2026-06-29 17:15 UTC by Michal Schorm
Modified: 2026-06-30 08:15 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-06-30 08:15:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michal Schorm 2026-06-29 17:15:42 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


Note You need to log in before you can comment on or make changes to this bug.