Skip to content

widevine: ship the patched CDM in the package, as Omarchy 4.5 does - #3077

Merged
ryanrhughes merged 1 commit into
masterfrom
widevine-like-45
Nov 19, 2026
Merged

ryanrhughes merged 1 commit into
masterfrom
widevine-like-45

Conversation

@maralcbr

Copy link
Copy Markdown
Member

Widevine works on first boot again, with no prompt, the way asahi-alarm's widevine does on Omarchy 4.5. The owner chose 4.5's behaviour over the consent-only fetch from #3007.

What changes

  • The recipe builds the CDM at package time from the pinned ChromeOS Lacros 120.0.6098.0 image (_lacros_sha256). It patches it with widevine_fixup.py, as asahi-alarm's recipe does. The Chromium manifest and link, the Firefox GMP directory, prefs and profile.d script are asahi-alarm's.
  • The library is staged at /usr/lib/widevine/libwidevinecdm.so. The scriptlet installs it at asahi-alarm's /opt/WidevineCdm/.../linux_arm64/ path, adds the linux_x64 placeholder, and links Firefox's GMP directory.
    • Why not own the path directly: 4.10.2891.0-2 and -3 fetched the library to that path unowned. omarchy-update only overwrites /usr/share/omarchy/*, so owning it would make pacman refuse the upgrade on those Macs.
  • Upgrading from -2 or -3 stops the old fetch timer and deletes the old acceptance record and download cache. Removing the package deletes the installed library.
  • widevine-fetch is gone.
  • The package's licences are the image's WidevineCdm/LICENSE and the fixup's MIT licence.

Same pkgver, pkgrel 4. The upstream watch is unchanged: it still reads asahi-alarm's Lacros pin.

Test

  • pkgbuilds/widevine/test.sh passes in an Arch container. It covers:
    • what package() ships;
    • that the three /opt library paths aren't package-owned;
    • post_install;
    • post_upgrade over a fetched library;
    • post_remove.
  • The aarch64 build in this PR's CI is the real build: download, unsquashfs and patch.
  • Still to do: a fresh install and an upgrade from -3 on the M2 with edge, then DRM playback at https://bitmovin.com/demos/drm.

Build Google's CDM from the pinned Lacros image at package time, as asahi-alarm's recipe does, so Widevine works on first boot with no prompt. The library is staged in /usr/lib/widevine and the scriptlet installs it at asahi-alarm's /opt paths, so upgrades over a library that -2 or -3 fetched there unowned don't conflict. Drops widevine-fetch.

Signed-off-by: Marcelo Alcantara <maralc@gmail.com>
@ryanrhughes
ryanrhughes enabled auto-merge (squash) November 19, 2026 09:08
@greptile-apps

greptile-apps Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the stated M2 playback check should still happen before release.

Summary

Bundles the patched Widevine library so Chromium and Firefox can use DRM without a separate download or prompt.

  • The Widevine package now includes the patched library.
  • Upgrades clean up the old fetch install and remove its files.

No actionable issues found. Playback on an M2 remains a stated manual test before release.

Reviews (1) · Last reviewed commit: "widevine: ship the patched CDM in the pa..." · Reviewed by Greptile

@ryanrhughes
ryanrhughes merged commit 7fbc41c into master Nov 19, 2026
11 checks passed
@ryanrhughes
ryanrhughes deleted the widevine-like-45 branch November 19, 2026 09:16
@github-actions

Copy link
Copy Markdown
Contributor

Publish succeeded → live

Packages: widevine (aarch64, PR artifact)

  • edge/aarch64: widevine-4.10.2891.0-4-aarch64

Commit 7fbc41c · run

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.

2 participants