Skip to content

fix(spice-gtk): remove dependency on opus to drop it#17127

Open
binujp wants to merge 1 commit into
tomls/base/mainfrom
bphilip/opus-spice-gtk-elide
Open

fix(spice-gtk): remove dependency on opus to drop it#17127
binujp wants to merge 1 commit into
tomls/base/mainfrom
bphilip/opus-spice-gtk-elide

Conversation

@binujp
Copy link
Copy Markdown
Contributor

@binujp binujp commented May 11, 2026

Remove opus-devel BuildRequires and add -Dopus=disabled to meson
build. This is to allow removal of the opus package from AZL.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com
Part of the effort to remove opus, opusfile, and mingw-opus from Azure Linux.

Copilot AI review requested due to automatic review settings May 11, 2026 05:13
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the spice-gtk component configuration to remove the build-time dependency on opus (which Azure Linux intends to drop) by removing opus-devel from BuildRequires and explicitly disabling opus support in the Meson build.

Changes:

  • Added a dedicated spice-gtk.comp.toml with overlays to remove opus-devel and inject -Dopus=disabled into the %build Meson invocation.
  • Updated the rendered spice-gtk.spec to reflect the removed BuildRequires and new Meson option.
  • Refreshed the spice-gtk lock fingerprint and moved the component entry out of the inline components.toml list.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
specs/s/spice-gtk/spice-gtk.spec Drops BuildRequires: opus-devel and adds -Dopus=disabled to the Meson configure flags in %build.
locks/spice-gtk.lock Updates the component input fingerprint to match the new component definition/overlays.
base/comps/spice-gtk/spice-gtk.comp.toml Introduces overlays to remove the opus BuildRequires and disable opus via Meson.
base/comps/components.toml Removes the inline [components.spice-gtk] entry now that the component is defined in a dedicated .comp.toml.

Comment on lines +15 to +17
regex = '-Dbuiltin-mjpeg=false'
replacement = """-Dopus=disabled \\
-Dbuiltin-mjpeg=false"""
description = "Disable opus audio codec in meson build"
type = "spec-search-replace"
section = "%build"
regex = '-Dbuiltin-mjpeg=false'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would it be cleaner to search for %meson \ or similar? That's a bit less specific.

Remove opus-devel BuildRequires and add -Dopus=disabled to meson
build. This is to allow removal of the opus package from AZL.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@binujp binujp force-pushed the bphilip/opus-spice-gtk-elide branch from 89112b8 to dc6c180 Compare May 11, 2026 15:04
Copy link
Copy Markdown
Collaborator

@christopherco christopherco left a comment

Choose a reason for hiding this comment

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

Fix regex anchor and merge conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants