[Rpm-maint] [rpm-software-management/rpm] Provide better support for versioned RPMs (Discussion #2847)
Vít Ondruch
notifications at github.com
Tue Jan 16 15:38:06 UTC 2024
It is pretty common to provide versioned RPMs. E.g. in Fedora, there are [nodejs20](https://src.fedoraproject.org/rpms/nodejs20/blob/rawhide/f/nodejs20.spec), [nodejs18](https://src.fedoraproject.org/rpms/nodejs18/blob/rawhide/f/nodejs18.spec), [python3.x](https://src.fedoraproject.org/rpms/python3.9/blob/rawhide/f/python3.9.spec) packages, there were added versioned [postgresql16](https://src.fedoraproject.org/rpms/postgresql16/blob/rawhide/f/postgresql16.spec) packages recently, etc. And I wonder if RPM could provide some basic support to help with this scenario.
The most common issue is that typically, there is need for two "package names", the original non versioned as well as versioned, e.g. `%{name}` and `%{pkg_name}`. The versioned name is typically constructed from some other major/minor/teeny version macros used as an suffix or prefix (in case of SCL). However, which macro contains what value varies. And that is due to sub-package naming.
The standard way is that the package declares just the suffix to the main package name. However, for the versioned rpms, it depends if the main package name is versioned or not, this means that the suffixes work just fine or all package names needs to be fully named.
So I think that in short, what I am looking for is a way to have the versioned name and a switch, which would tell RPM to use the versioned name for the sub-packages.
BTW I think that what is also interesting with the versioned packages is that the "main package" might not be shipped. That is for example case of the nodejs20 package in Fedora, where the main binary package is named nodejs. Therefore I wonder, is there a change to make the "main package" less significant? Maybe it should be declared by `%package` declaration and treated similarly to other sub-packages.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/2847
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/repo-discussions/2847 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240116/382b9bbb/attachment.html>
More information about the Rpm-maint
mailing list