Re: [PATCH] kbuild: pacman-pkg: make "rc" releases adhere to pacman versioning scheme

From: Thomas Weißschuh

Date: Thu May 14 2026 - 07:33:08 EST


On 2026-05-14 01:17:29+0200, Viktor Jägersküpper wrote:
> The package versioning scheme does not enable smooth upgrades from "rc"
> releases to the corresponding stable releases (e.g. 7.0.0-rc7 -> 7.0.0)
> because pacman considers that a downgrade due to the underscore in
> pkgver (e.g. 7.0.0_rc7), see e.g. vercmp(8) for an explanation of the
> package version comparison used by pacman. Package versions which are
> derived from said releases (e.g. built from git revisions) are
> similarly affected. Fix this by modifying pkgver in order to remove the
> hyphen from kernel versions containing "-rc".
>
> Signed-off-by: Viktor Jägersküpper <viktor_jaegerskuepper@xxxxxxxxxx>

Acked-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>

Thanks!

> ---
> scripts/package/PKGBUILD | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

(...)