You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
packaging: the .deb's version is upstream's git-describe string (33.0.0-beta6-1902-g582a4c3ed), not the release version, and sorts as a downgrade once a 33.0.0 tag is reachable #2299
Severity: Low today, latent Medium. Today each daily .deb has a higher version than the last, so upgrades work. But the package version doesn't match the product version users see (0.1.0-beta.20261023), and it goes backwards as soon as git describe finds upstream's 33.0.0 tag.
What happens
$ dpkg-deb -f OBS-Studio-Rust-0.1.0-beta.20261023-linux-x86_64.deb Version
33.0.0-beta6-1902-g582a4c3ed
dpkg --compare-versions against the versions the current scheme will produce next:
from
to
dpkg says
33.0.0-beta6-1902-g582a4c3ed
33.0.0-beta6-1903-g…
upgrade
33.0.0-beta6-1902-g582a4c3ed
33.0.0-0-g… (first build after a 33.0.0 tag)
downgrade
33.0.0-beta6-1902-g582a4c3ed
33.0.0-12-g…
downgrade
33.0.0-beta6-1902-g582a4c3ed
0.1.0~beta.20261024 (the product version)
downgrade
On a downgrade, apt install ./new.deb lists the package as DOWNGRADED and asks for confirmation. With -y it refuses unless --allow-downgrades is given. dpkg -l and software centers show "33.0.0-beta6-…" for an app whose About box and release page say 0.1.0-beta.
Root cause
cmake/linux/cpackconfig.cmake#L11-L15 sets CPACK_PACKAGE_VERSION to OBS_VERSION_CANONICAL (release builds) or OBS_VERSION (otherwise). Both come from git describe of upstream's tags. The release workflow passes the product version as OBS_RUST_VERSION (release-rust.yaml#L139), and cmake/common/versionconfig.cmake#L110-L114 reads it into OBS_RUST_RELEASE_VERSION, but CPack never uses it.
Fix plan
For OBS_BRAND_RUST, when OBS_RUST_RELEASE_VERSION is set, set CPACK_DEBIAN_PACKAGE_VERSION to it with the first - turned into ~ (0.1.0-beta.20261023 → 0.1.0~beta.20261023), so that 0.1.0~beta.X < 0.1.0. Add CPACK_DEBIAN_PACKAGE_EPOCH 1, because 0.1.0 sorts below the 33.0.0-… versions already installed. Without the epoch, the first fixed .deb would itself be a downgrade. Local builds without OBS_RUST_VERSION keep the current behaviour.
RED/GREEN test (CI-runnable)
ci/test_deb_version.py (static, no build): read the CPack configuration the way release-rust.yaml calls it, with OBS_RUST_VERSION set to two consecutive daily versions and a final 0.1.0. Check the resulting Debian versions with dpkg --compare-versions (or a Python port of the algorithm) so that the chain 33.0.0-beta6-1902-g582a4c3ed < v(day1) < v(day2) < v(0.1.0) holds. RED today: the version doesn't depend on OBS_RUST_VERSION. Also in the release job: dpkg-deb -f <deb> Version must equal 1:<OBS_RUST_VERSION with ~>.
Meets the definition of Ready: reproduction (dpkg-deb -f plus the dpkg --compare-versions table), root cause in cmake/linux/cpackconfig.cmake, a concrete fix (CPACK_DEBIAN_PACKAGE_VERSION from OBS_RUST_RELEASE_VERSION with ~, epoch 1), and a CI-runnable RED/GREEN test (ci/test_deb_version.py, static, same cmake -P approach as #2313). No dependencies, no open decision. P2, size:S.
Activity
zackees commentedon Oct 25, 2026
/ready
Meets the definition of Ready: reproduction (
dpkg-deb -fplus thedpkg --compare-versionstable), root cause incmake/linux/cpackconfig.cmake, a concrete fix (CPACK_DEBIAN_PACKAGE_VERSIONfromOBS_RUST_RELEASE_VERSIONwith~, epoch 1), and a CI-runnable RED/GREEN test (ci/test_deb_version.py, static, samecmake -Papproach as #2313). No dependencies, no open decision. P2, size:S.zackees commentedon Oct 25, 2026
Claiming: derive the .deb version from OBS_RUST_RELEASE_VERSION (
-→~, epoch 1) in a small cmake helperci/test_deb_version.pyruns the helper viacmake -Pand checks the dpkg ordering chain.cmake/linux/deb-version.cmake+ use it in cpackconfig.cmake.PR opens within the hour.
test: .deb version follows the OBS-Studio-Rust release version (RED, #…
build: .deb version is the OBS-Studio-Rust release version (#2299)
build: .deb version is the OBS-Studio-Rust release version (obs-rust#…