Repository navigation
widevine: fetch the CDM from Google on the Mac - #2945
Merged
Merged
Conversation
[Medium impact] The PR appears safe to merge, with Mac playback qualification still required before promotion. SummaryAdds a Mac-only
|
maralcbr
force-pushed
the
asahi-import-widevine
branch
from
November 17, 2026 02:42
2f78c57 to
ebd8c3e
Compare
asahi-alarm's widevine package carries Google's libwidevinecdm.so, extracted from a ChromeOS Lacros image and binary-patched. Google's terms forbid copying, modifying or distributing it, so this package holds none of it. It ships the fixup script, a pinned URL and sha256 for the Lacros arm64 image, the Chromium manifest and links, and the Firefox prefs. widevine-fetch downloads, checks and patches the library on the Mac itself. A timer enabled by the package runs the fetch after boot and hourly. Offline runs exit cleanly, and the fetch does nothing in a chroot, so an image build never touches the blob. The install scriptlet only starts the timer on a booted system. Same pkgver as asahi-alarm with a higher pkgrel, so installed Macs swap over. The package is listed as `none` in the Mac inventory until edge qualifies it. Signed-off-by: Marcelo Alcantara <maralc@gmail.com>
Two fetches, a manual one and the timer's, shared the download and the staged library with no lock. A fetch could also finish after pre_remove had deleted its files and leave Google's library behind. widevine-fetch now holds a lock in /run/widevine for the whole run, and gives up once the package is gone. pre_remove stops the units and takes the same lock before cleaning up, and post_remove cleans up again. Signed-off-by: Marcelo Alcantara <maralc@gmail.com>
maralcbr
force-pushed
the
asahi-import-widevine
branch
from
November 17, 2026 02:59
03a7e89 to
9910583
Compare
Contributor
This was referenced Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Omarchy Mac drops the asahi-alarm repository for 4.6. Its
widevinepackage carries Google'slibwidevinecdm.so, extracted from a ChromeOS Lacros image and binary-patched for Asahi kernels. We can't host that, so this package carries none of Google's code and fetches the CDM on the Mac.Licence. asahi-alarm's
license=('custom')points to the Chrome/ChromeOS Additional Terms, which defer to the Google Terms of Service: you may not copy, modify, distribute, sell or lease any part of Google's software. Publishing the patched library frompkgs.omarchy.org, or baking it into the image on R2, would make Omacom a distributor of modified Google software. So:widevine_fixup.py, with its licence. It doesn't ship Google's EULA page either;chromeos-localmirrorand patched on the user's Mac;What the package does
/usr/bin/widevine-fetchdownloadschromeos-lacros-arm64-squash-zstd-120.0.6098.0, checks the pinned sha256 (38a57cc3…, the same as asahi-alarm's), extracts and patcheslibwidevinecdm.sointo/opt/WidevineCdm/chromium/_platform_specific/linux_arm64/, and adds thelinux_x64placeholder and Firefox's GMP link. When the hash still matches it does nothing.--forcefetches again.widevine-fetch.timeris enabled by a link the package ships, because the image builder only applies omarchy-mac's presets. It runs two minutes after boot and hourly after that. Once installed, a run only checks the hash. Offline (curl can't connect or resolve) it exits 0, so it never leaves a failed unit. A bad hash or HTTP error fails the unit and deletes the download./run/systemd/system, orsystemd-detect-virt --chroot) the fetch exits 0 without doing anything. The image builder's chroot has a private/run, so it can't trigger the fetch. The install scriptlet only starts the timer on a booted system, andpre_removedeletes the fetched files./usr/lib/chromium/WidevineCdmlink, the Firefox GMP directory, prefs andprofile.dscript are asahi-alarm's.pkgver(4.10.2891.0),pkgrel2,provides/conflicts=('chromium-widevine'). Upgrading from asahi-alarm's build removes its packaged library, and the timer installs ours within minutes.release/mac-inventory.txtlistswidevine noneuntil edge qualifies it.tests/aurora-edge/metadata.pycovers it as a Mac recipe.Upstream. asahi-alarm's recipe (checksum fixed 2026-02-28) is the newest for aarch64. The original codeberg recipe pins Lacros 128 with CDM 4.10.2710.0, and Lacros itself is discontinued. One finding: the CDM inside Lacros 120.0.6098.0 is really 4.10.2662.3, but asahi-alarm labels it 4.10.2891.0. The recipe keeps that label so installed Macs upgrade in place.
Evidence
pkgbuilds/widevine/test.sh, in the self-tests: no path named*.so*,*libwidevinecdm*or*squash*, no ELF or squashfs file, nothing over 64 KiB, no remote sources or build step, the scriptlet never fetches, and the fetch exits 0 in a container. A planted ELF fails it. Passes on aarch64 and x86_64.pacman -U, fetch,dlopenthrough Firefox's link, a no-op second run, an offline run exiting 0, andpacman -Rleaving no/opt/WidevineCdmor/var/lib/widevine.metadata.py,package-metadata.sh,pkgname-unique.sh,pinned-sources.sh,build-matrix.shandmac-package-set.shpass locally. namcap: warnings only.libwidevinecdm.so.Merge Danger
Door: two-way
Blast Radius: Mac installs on edge with widevine
sudo widevine-fetch. A Mac that can't reach Google stays without Widevine until it can.widevine none, a whole-channel aarch64edge -> rcpromotion is refused until the inventory names its qualified version, as for the packages in omarchy-pkgs#2943.