Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 888783

Summary: dev-qt/qtwebengine-5.15.7_p20221122 fails to find libwidevinecdm.so (ie. Netflix shows error code M7701-1003 in falkon)
Product: Gentoo Linux Reporter: Andrei Slavoiu <ansla80>
Component: Current packagesAssignee: Qt Bug Alias <qt>
Status: RESOLVED FIXED    
Severity: normal CC: ionen
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/qt/qtwebengine/commit/b99042fb839021a0a3d2fe0cac7ac3899c4acbba
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch based on upstream commit that applies cleanly

Description Andrei Slavoiu 2022-12-28 19:38:16 UTC
Version 5 of qtwebengine does not search for widevine in the paths where Gentoo's www-plugins/chrome-binary-plugins installs it. The correct path was only added in version 6, it should be backported, see URL for the commit.

Note that the audio codecs part of the commit does not apply cleanly. I didn't bother to fix it, just kept the path changes only.

Reproducible: Always
Comment 1 Ionen Wolkens gentoo-dev 2022-12-28 20:10:55 UTC
fwiw qutebrowser's ebuild been handling this by passing:

    --widevine-path="${EPREFIX}"/usr/$(get_libdir)/chromium-browser/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so

to qtwebengine when USE=widevine, but still passing it for qt6 webengine (despite it can find it) because of EPREFIX and libdir (albeit libdir should be static given chrome-binary-plugins is a prebuilt and only available for amd64).

Note both webengines (incl qt5) can find it in the in /opt if google-chrome is installed.
Comment 2 Andrei Slavoiu 2022-12-28 21:28:59 UTC
Created attachment 845519 [details, diff]
Patch based on upstream commit that applies cleanly
Comment 3 Andreas Sturmlechner gentoo-dev 2023-03-15 08:22:04 UTC
Thanks for your contribution, this patch was added already with qtwebengine-5.15.8_p20230106.