[Rpm-maint] [rpm-software-management/rpm] [RFC] Add support for sorting the plus ('+') higher than base version (#924)

2019-11-04 Thread Javier Martinez Canillas
This commit adds supports for sorting the plus ('+') character higher than base version. It's similar to what commit c7e711bba58 ("Add support for sorting caret ('^') higher than base version") did for the caret character. A plus character is used for example by the Linux kernel build system to

[Rpm-maint] [rpm-software-management/rpm] rpmvercmp() compares as equal versions that are not the same (#925)

2019-11-04 Thread Javier Martinez Canillas
There are cases when the `rpmvercmp()` function compares two different version strings as equal. For example, in some cases adding a plus `+` character at the end of the version denotes that this version is the base version plus some changes. This is the case of the Linux kernel build system wh

Re: [Rpm-maint] [rpm-software-management/rpm] [RFC] Add support for sorting the plus ('+') higher than base version (#924)

2019-11-04 Thread Javier Martinez Canillas
@Conan-kudo I see, I’ve mentioned #88 in issue #925 that explains the more general issue of rpmvercmp() taking as equal versions that are really different. And also elaborated a little bit why I needed the + character to be taken into account. This is just a fix for a particular case of the mor

Re: [Rpm-maint] [rpm-software-management/rpm] [RFC] Add support for sorting the plus ('+') higher than base version (#924)

2020-02-04 Thread Javier Martinez Canillas
@ffesti that's OK. For the GRUB blscfg module we diverged from the RPM sorting algorithm and added support for the plus character, since debug kernels contains that as a suffix and the expectation is that the debug and non-debug kernels are not the same. -- You are receiving this because you a

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: Automatic (sub)package generators (#329)

2021-01-04 Thread Javier Martinez Canillas
Having some of this support built-in RPM (or a set of standard macros) will be very useful for packages like `grub2`, that not only are split in different subpackages but also have architecture and firmware interface specific subpackages. Fedora's [grub2.spec](https://src.fedoraproject.org/rpm