Bug 2250529
| Summary: | Widevine not working on Firefox under a specific (but not so unusual) set of conditions | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | NoisyCoil <noisycoil> |
| Component: | widevine-installer | Assignee: | Davide Cavalca <davide> |
| Status: | CLOSED ERRATA | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 39 | CC: | asahi-sig, davide, kalev, marcan |
| Target Milestone: | --- | Keywords: | Desktop, Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | widevine-installer-0^20231031git8fa12dd-2.fc40 widevine-installer-0^20231031git8fa12dd-2.fc39 widevine-installer-0^20231031git8fa12dd-2.fc38 widevine-installer-0^20231031git8fa12dd-3.fc40 widevine-installer-0^20240811git1923815-1.fc41 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-08-12 01:37:41 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 2250527 | ||
| Bug Blocks: | |||
|
Description
NoisyCoil
2023-11-19 13:37:25 UTC
As an afterthought, I think the reason why the plugin is not working when the user's default shell is the fish shell is not just because fish does not understand VAR=VALUE assignments and the `export` command, but even more basically because it just isn't reading /etc/profile{,.d/*} when it is invoked as a login shell. To see this, run
strace -e trace=openat fish -l 2>&1 | grep etc
and compare the output to that of
strace -e trace=openat bash -l 2>&1 | grep etc
or
strace -e trace=openat zsh -l 2>&1 | grep etc
fish's analogue of /etc/profile{,.d/*} is /etc/fish/conf{ig.fish,.d/*}.
Thus, this bug can arise either when the user's default shell doesn't understand `export` and VAR=VALUE, or when it just doesn't read /etc/profile{,.d/*} when invoked as a login shell, implying that any solution based on just changing the content of /etc/profile.d/gmpwidevine.sh won't fix the issue.
After some discussion upstream I agree that environment.d is preferable here. I've tested the PR and it works for me. I will close this bug report when it gets merged. I've left a comment with a suggestion there. Thank you for the fix! FEDORA-2023-471cd39ea3 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-471cd39ea3 FEDORA-2023-471cd39ea3 has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2023-562915c3d5 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-562915c3d5 FEDORA-2023-c5c91fef19 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-c5c91fef19 FEDORA-2023-c5c91fef19 has been pushed to the Fedora 38 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-c5c91fef19` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-c5c91fef19 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2023-562915c3d5 has been pushed to the Fedora 39 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-562915c3d5` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-562915c3d5 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2023-562915c3d5 has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2023-c5c91fef19 has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report. This broke Widevine for everyone *not* using fish, because openh264 is still not fixed and their script *clobbers* the path instead of appending to it. Our original solution relied on alphabetically running *after* openh264 to work. Now we run before and get clobbered. Reverting. We can revisit this after openh264 switches over to environment.d *and* to appending to the variable first. FEDORA-2023-d957f751a6 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-d957f751a6 FEDORA-2023-3d6752f5ba has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-3d6752f5ba FEDORA-2023-ea1faa4a96 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-ea1faa4a96 FEDORA-2023-d957f751a6 has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report. I think the revert commit description is triggering the closes, sorry :/ > This broke Widevine for everyone *not* using fish, because openh264 is still not fixed and their script *clobbers* the path instead of appending to it. For the record, fish has nothing to do with this. mozilla-openh264 is breaking stuff by not releasing an already-merged, fish-unrelated, one-month old fix (https://src.fedoraproject.org/rpms/openh264/c/01e104cfc7e5c92e529c7c703a37b06b37d755ec?branch=rawhide) to a non-working patch that was merged 4 months ago (https://src.fedoraproject.org/rpms/openh264/c/10b5521dd013e27d25cdc30162d44b1882f8bae2?branch=rawhide). @kalev FEDORA-2023-3d6752f5ba has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2023-ea1faa4a96 has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report. A new version of openh264 which does not overwrite `MOZ_GMP_PATH` has now been released. > We can revisit this after openh264 switches over to environment.d *and* to appending to the variable first. @marcan: they are still not using environment.d, but given the content of their profile.d file, > if [[ ":$MOZ_GMP_PATH:" != *":/usr/lib64/mozilla/plugins/gmp-gmpopenh264/system-installed:"* ]]; then > MOZ_GMP_PATH="${MOZ_GMP_PATH}${MOZ_GMP_PATH:+:}/usr/lib64/mozilla/plugins/gmp-gmpopenh264/system-installed" > export MOZ_GMP_PATH > fi now it could be safe to switch to environment.d anyway. FEDORA-2024-f1e0e4da25 (widevine-installer-0^20240811git1923815-1.fc41) has been submitted as an update to Fedora 41. https://bodhi.fedoraproject.org/updates/FEDORA-2024-f1e0e4da25 FEDORA-2024-33fdd1f8b6 (widevine-installer-0^20240811git1923815-1.fc40) has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-33fdd1f8b6 FEDORA-2024-735ac1b724 (widevine-installer-0^20240811git1923815-1.fc39) has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-735ac1b724 FEDORA-2024-f1e0e4da25 (widevine-installer-0^20240811git1923815-1.fc41) has been pushed to the Fedora 41 stable repository. If problem still persists, please make note of it in this bug report. Nope, that broke on KDE, this time due to https://bugs.kde.org/show_bug.cgi?id=491579 (just filed). The short-term workaround here (and probably safer option) would be to ship *both* environment.d and profile.d files. Other than that, we have to wait until the KDE side figures out how to fix this corner case. FEDORA-2024-ef1eae18e8 (widevine-installer-0^20240812giteab8c66-1.fc40) has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-ef1eae18e8 FEDORA-2024-2e0ed64767 (widevine-installer-0^20240812giteab8c66-1.fc39) has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-2e0ed64767 FEDORA-2024-ef1eae18e8 (widevine-installer-0^20240812giteab8c66-1.fc40) has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2024-2e0ed64767 has been pushed to the Fedora 39 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-2e0ed64767` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-2e0ed64767 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2024-2e0ed64767 (widevine-installer-0^20240812giteab8c66-1.fc39) has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report. The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days |