From a86affa3c6efa357243d296c3f50ef7a9b7d04ac Mon Sep 17 00:00:00 2001 From: Shen Mintao Date: Thu, 24 Sep 2026 14:03:17 +0800 Subject: [PATCH] fix: use monotonic snapshot versions for the Bazzite package The spec used the pinned commit hash as Version, and rpm does not order hashes by commit history: 51b7b6e sorts after c8327ea, and 13baa9b after e93a7d2, so a newer snapshot could be treated as an older package. Version snapshots as 1.0.0^git, where 1.0.0 is the DKMS PACKAGE_VERSION, and add Epoch 1 so every snapshot sorts after all of the earlier hash versions. Checked with rpm 4.18: the spec parses and the new EVR compares newer than every previous Version. Co-Authored-By: Claude Opus 5.5 (1M context) --- bazzite/aic8800d80.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bazzite/aic8800d80.spec b/bazzite/aic8800d80.spec index 5aa5cda..1c97ec5 100644 --- a/bazzite/aic8800d80.spec +++ b/bazzite/aic8800d80.spec @@ -1,10 +1,14 @@ %global commit c8327eab5be246d4b517afdba034775f00afa988 %global shortcommit %(echo %{commit} | cut -c1-7) +%global snapdate 20260924 %global debug_package %{nil} %{!?kver:%global kver %(uname -r)} Name: aic8800d80 -Version: %{shortcommit} +# Versions before 2026-09-24 were bare commit hashes, which rpm does not +# order by commit history. Epoch 1 sorts every snapshot version after them. +Epoch: 1 +Version: 1.0.0^%{snapdate}git%{shortcommit} Release: 1%{?dist} Summary: AIC8800 USB Wi-Fi, Bluetooth firmware, and ZLP quirk driver @@ -78,6 +82,11 @@ cp -a fw/aic8800* %{buildroot}/usr/lib/firmware/ /usr/lib/firmware/aic8800* %changelog +* Thu Sep 24 2026 Shen Mintao - 1:1.0.0^20260924gitc8327ea-1 +- Version snapshots as 1.0.0^git with Epoch 1. The previous + commit-hash versions do not sort in commit order, so rpm could treat a + newer snapshot as an older package. + * Thu Sep 24 2026 Shen Mintao - c8327ea-1 - Build the current legacy-mcu1 branch, which carries the Linux 7.2 cfg80211 and strncpy() fixes needed to compile on Bazzite 44.