Skip to content

fix: remove svt-av1 and disable svt-av1 in dependents#17272

Open
binujp wants to merge 3 commits into
4.0from
bphilip/svt-av1-elide
Open

fix: remove svt-av1 and disable svt-av1 in dependents#17272
binujp wants to merge 3 commits into
4.0from
bphilip/svt-av1-elide

Conversation

@binujp
Copy link
Copy Markdown
Contributor

@binujp binujp commented May 15, 2026

Summary

Remove the svt-av1 component from the distro and explicitly disable svt-av1 support in dependent packages.

Changes

  • svt-av1: Removed from components, publish channels, lock file, and rendered specs
  • gstreamer1-plugins-bad-free: Added svtav1 to build.without — the %bcond svtav1 defaults ON via %{defined fedora} which is true in the AZL build environment, so the plugin was being built and shipping libgstsvtav1.so with a dependency on libSvtAv1Enc.so.3
  • libavif: Created dedicated libavif.comp.toml with build.without = ["svt"] — the svt bcond defaults ON in non-bootstrap builds

Testing

  • Built libavif — verified all 3 RPMs (libavif, libavif-tools, libavif-devel) have no svt-av1 dependency
  • gstreamer1-plugins-bad-free build pending (overlay adds svtav1 to existing build.without list using the same pattern as the other disabled bconds)

Part of the codec removal effort.

@binujp binujp marked this pull request as ready for review May 15, 2026 21:01
Copilot AI review requested due to automatic review settings May 15, 2026 21:01
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

Removes the svt-av1 component from the Azure Linux distro and prevents dependent components from implicitly enabling SVT-AV1 support (which would otherwise introduce build/runtime deps on SvtAv1Enc / libSvtAv1Enc.so).

Changes:

  • Removed svt-av1 from rendered specs, locks, and publish channel lists.
  • Disabled SVT-AV1-related build conditionals in gstreamer1-plugins-bad-free (svtav1) and libavif (svt) via build.without, generating corresponding *.azl.macros to force the bconds off.
  • Updated rendered specs/locks to reflect the component config changes (including release/changelog bumps).

Reviewed changes

Copilot reviewed 10 out of 13 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
specs/s/svt-av1/svt-av1.spec Removes rendered spec for the svt-av1 component.
specs/s/svt-av1/sources Removes source hash entry for svt-av1 rendered sources.
locks/svt-av1.lock Removes lock file for the deleted svt-av1 component.
base/comps/libavif/libavif.comp.toml Introduces component config to disable svt bcond (avoids SVT-AV1 dependency).
specs/l/libavif/libavif.spec Rendered spec updated to load generated macros and include Source9999, plus release/changelog bump.
specs/l/libavif/libavif.azl.macros New generated macros file forcing _without_svt.
locks/libavif.lock Updates input fingerprint for the new libavif component config.
base/comps/gstreamer1-plugins-bad-free/gstreamer1-plugins-bad-free.comp.toml Extends build.without to include svtav1 so the SVT-AV1 plugin is not built.
specs/g/gstreamer1-plugins-bad-free/gstreamer1-plugins-bad-free.spec Rendered spec release bump corresponding to config change.
specs/g/gstreamer1-plugins-bad-free/gstreamer1-plugins-bad-free.azl.macros Updates generated macros to force _without_svtav1.
locks/gstreamer1-plugins-bad-free.lock Updates input fingerprint for the gstreamer1-plugins-bad-free config change.
base/comps/components.toml Removes inline entries for libavif (now customized) and svt-av1 (removed).
base/comps/components-publish-channels.toml Removes svt-av1 from publish channel component list.

Comment on lines 14 to +18
[components.gstreamer1-plugins-bad-free]
build.without = ["extras", "dc1394", "onnx", "openh264"]
build.without = ["extras", "dc1394", "onnx", "openh264", "svtav1"]

# AZL does not ship svt-av1 — disable the svtav1 gstreamer plugin.
# The bcond defaults ON via %{defined fedora} which is true in the AZL build env.
Comment on lines +1 to +4
# AZL does not ship svt-av1 — disable svt-av1 codec support.
# The svt bcond defaults ON in non-bootstrap builds.
[components.libavif]
build.without = ["svt"]
@binujp binujp changed the base branch from tomls/base/main to 4.0 May 15, 2026 22:43
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.

Underlying changes generally look fine. Please break up the commits into separate ones:

  1. gstreamer1-plugins-bad-free
  2. libavif
  3. removal of svt-av1
    and have relevant commit messages for each.

This way, the rendered commit messages in the individual spec files will pertain to the changes performed onto the specific package

binujp and others added 3 commits May 18, 2026 14:39
Add svtav1 to build.without to disable the SVT-AV1 encoder plugin.
AZL defines %fedora which causes the svtav1 bcond to be enabled by
default, pulling in libSvtAv1Enc.so dependency.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add svt to build.without to disable SVT-AV1 encoder support in libavif.
This removes the runtime dependency on libSvtAv1Enc, allowing svt-av1
to be removed from the distro.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Remove svt-av1 package from Azure Linux. All reverse dependencies
(gstreamer1-plugins-bad-free, libavif) have been updated to build
without svt-av1 support.

Removed:
- components.toml entry
- components-publish-channels.toml entry
- locks/svt-av1.lock
- specs/s/svt-av1/ (rendered spec and sources)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@binujp binujp force-pushed the bphilip/svt-av1-elide branch from c12c275 to 1097604 Compare May 18, 2026 15:05
@github-actions
Copy link
Copy Markdown

📄❌ Rendered specs are out of date

FIX: — run this and commit the result:

azldev component render libavif

Or download the fix patch and apply it:

gh run download 26041962439 -R microsoft/azurelinux -n rendered-specs-patch
git apply rendered-specs.patch
Category Count
Content diffs 1
Extra files (untracked) 0
Missing files (deleted) 0

Content diffs

`specs/l/libavif/libavif.spec`
--- committed/specs/l/libavif/libavif.spec
+++ rendered/specs/l/libavif/libavif.spec
@@ -138,8 +138,8 @@
 
 %changelog
 ## START: Generated by rpmautospec
-* Fri May 15 2026 Binu Jose Philip <binujp@gmail.com> - 1.3.0-4
-- fix: remove svt-av1 and disable svt-av1 in dependents
+* Mon May 18 2026 Binu Jose Philip <binujp@gmail.com> - 1.3.0-4
+- fix(libavif): disable svt-av1 dependency
 
 * Thu Apr 30 2026 Daniel McIlvaney <damcilva@microsoft.com> - 1.3.0-3
 - feat: introduce deterministic commit resolution via Azure Linux lock file

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.

3 participants