RPM 'Release' tag is ordered differently from Fedora versioning guidelines

In Fedora's Versioning Guidelines for RPM packages, the "Release" tag would look like this for a pre-release (after <pkgrel> is expanded):

0.<N>[.<extraver>][.<snapinfo>]%{?dist}[.<minorbump>]

It appears that the Makefile is trying to use this scheme, if this comment is any indication. But <N> is not at the beginning — it is essentially at the end:

0[.<extraver>][.<snapinfo>].<N>%{?dist}[.<minorbump>]

In other words, the guidelines suggest kernel-5.12.0-0.rc6.20210408git454859c5.186 should be kernel-5.12.0-0.186.rc6.20210408git454859c5 instead.

Is the current scheme intentional? Normally we would rely on <N> for ordering, in case two snapshots of the same rc are built on the same day. (Otherwise the order would depend on their git hashes.)

In case it's not, I have a working patch, but first wanted to understand this better.

Edited Apr 08, 2021 by David Ward
Assignee Loading
Time tracking Loading