build: Change weekly versioning scheme of debian packages #2257
No reviewers
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No milestone
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
continuwuation/continuwuity!2257
Loading…
Reference in a new issue
No description provided.
Delete branch "spaetz/continuwuity:debversion"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request changes the weekly versioning naming scheme in order to improve the sort order.
Right now our weekly Debian versioning scheme is VERSION="$BASE_VERSION~git$DATE.$SHA-$CLEAN_COMPONENT".
This sorts weekly releases AFTER the BASE_VERSION, so when both stable
and unstable are enabled, we never get weekly versions installed.
https://wiki.debian.org/Versioning proposes {upcoming_version}~git{date}.{hash}-{revision} for nightly releases, which means we would have to know the release number of the upcoming version in advance. I don't think that is useful for us.
By switching from a tilde to a dash, our weekly versions are now sorted
above the stable base version and we will install the weekly versions
over the base version, which I believe is closer to what we intend.
Fixes: #2081
Pull request checklist:
If you aren't sure about some, feel free to ask for clarification in #dev:continuwuity.org. -->
mainbranch, and the branch is named something other thanmain.myself, if applicable. This includes ensuring code compiles.
Technically, we can guess the "upcoming" version number. The first component of the version string is the last two digits of the current year, the second component is the current unpadded numeric month, and then the final component is just a serial value that increments for each release.
It's probably fair to assume that the final component can just be N+1, unless the numeric month or year values don't match the latest release, in which case it can just be Y.M.0. I'm pretty sure all of this can be calculated trivially in bash, but ofc if you don't want to do the work for semantic gains that's fine too
stratself referenced this pull request2026-09-19 07:00:24 +00:00
27689a63f0be269ea39abe269ea39a8ec5641a6e