Skip to content

packaging: Link the Rust metainfo and .deb to obs-rust - #2313

Merged
zackees merged 2 commits into
masterfrom
fix/2302-metainfo-urls
Oct 25, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/2302-metainfo-urls

Conversation

@zackees

@zackees zackees commented Oct 25, 2026

Copy link
Copy Markdown
Member

Fixes #2302

On Linux, software centres such as GNOME Software and KDE Discover sent "Report an issue" and the source link for the Rust build to upstream obsproject/obs-studio. The metainfo's developer and its homepage, bugtracker and vcs-browser URLs were literal strings, and the .deb's Homepage and Maintainer came from the upstream values.

Change

  • cmake/common/app-identity.cmake now defines four values: OBS_PROJECT_DEVELOPER_ID, OBS_PROJECT_DEVELOPER_NAME, OBS_PROJECT_HOMEPAGE and OBS_PROJECT_REPOSITORY.
    • They default to upstream's values. Under OBS_BRAND_RUST they become io.github.obs_rust, obs-rust and https://github.com/obs-rust/obs-studio.
  • The metainfo template uses those values.
    • donation and translate stay as they are; the issue leaves them for maintainers to decide.
  • The .deb under the Rust brand gets CPACK_DEBIAN_PACKAGE_HOMEPAGE and MAINTAINER from them.
  • ci/app_identity_check.py now fails when the homepage, bugtracker or vcs-browser link is not under github.com/obs-rust/. The release workflow already runs it on the built .deb and bundles, so this is the check on the shipped package.

Tests

  • RED (ci: Test that the Rust metainfo…): ci/test_metainfo_project_links.py configures the real template with cmake -P.
    • Three checks fail on master: the Rust brand's links and developer, the .deb settings, and the packaged check.
    • The upstream-brand check passes, and it still passes after the change.
  • GREEN: all four pass.
    • test_appdata_release_date, test_metainfo_screenshot, test_release_identity and test_no_upstream_updater still pass.
  • ./lint: the only failure is the unrelated local soldr broker mismatch in test_local_gate_probe.
  • Not run locally: appstreamcli validate on a built package. The release's existing metainfo checks run it.

The features ledger line is added.

@zackees zackees left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coordinator review: LGTM.

  • Values come from cmake/common/app-identity.cmake, so both the Linux (@ONLY) and FreeBSD (configure_file without @ONLY) metainfo configures pick them up; upstream brand output is byte-identical to before.
  • .deb Maintainer/Homepage overridden only under OBS_BRAND_RUST.
  • RED then GREEN present (ci/test_metainfo_project_links.py drives the real template with cmake -P); the shipped-package guard in ci/app_identity_check.py is the right place for the release check. Features ledger line added.
  • Nit (non-blocking): test_deb_names_obs_rust and test_packaged_check_reads_the_links are substring checks; fine as guards, but the release run of app_identity_check.py is the real proof.

Verdict: approve once CI is green.

@zackees

zackees commented Oct 25, 2026

Copy link
Copy Markdown
Member Author

Coordinator: the Qt Frontend Linux failure is master's (No module named 'platform_ifdef_ratchet', from #2311), not this PR. Fixed by #2330; rebase or rerun after it lands.

The metainfo's developer and homepage, bugtracker and vcs-browser URLs
were upstream literals, so software centres sent reports about this
build to obsproject/obs-studio. They now come from app-identity.cmake,
with obs-rust values under OBS_BRAND_RUST; the .deb's Homepage and
Maintainer follow. The release's packaged check (app_identity_check.py,
run on the built .deb and bundles) now fails on non-obs-rust links.

Fixes #2302
@zackees
zackees force-pushed the fix/2302-metainfo-urls branch from 4e2f885 to 0356ece Compare October 25, 2026 03:52
@zackees
zackees added this pull request to the merge queue Oct 25, 2026
Merged via the queue into master with commit 9035d72 Oct 25, 2026
32 checks passed
@zackees
zackees deleted the fix/2302-metainfo-urls branch October 26, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

packaging: the Linux AppStream metainfo sends bug reports and the project link to upstream OBS (obsproject/obs-studio)

1 participant