From 7ec1a4fbb13de0794ddd2a8c6df5faf8c6d4de22 Mon Sep 17 00:00:00 2001 From: Shen Mintao Date: Thu, 24 Sep 2026 14:03:16 +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 2337fee..7c1a6e5 100644 --- a/bazzite/aic8800d80.spec +++ b/bazzite/aic8800d80.spec @@ -1,10 +1,14 @@ %global commit 3e9a02549bc98d350bff1e0fb0501f841f9d8e55 %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^20260924git3e9a025-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 - 3e9a025-1 - Build the current main branch, which adds the Linux 7.1+ TDLS discovery response length fix, the SUN60IW2P1 USB transfer settings, OpenWrt