Download or recompile glibc from the slackbuild scripts found
here.
If you dont want to hazzle with compiling it, i have added precompiled and patched (Added support for SHT_RELR and TLS) binaries
here.
This information and patches was gathered from
here.
If you decide to compile glibc your self, i recommend you to read and install Stuart Winter´s
slackkit and
documentation as its his glibc slackbuild that i used to add the patches to and compile glibc natively.
If you install the precompiled binaries make sure you use the command "upgradepkg aaa_glibc-solibs-2.33-arm-4.txz glibc-2.33-arm-4.txz"
and it
has to be in this order or you will have problems...
Get libwidevine by using
this script.
As this will install the libwidevine.so file under "/opt/WidevineCdm/" you can either rewrite the script so it installs "/usr/lib/chromium/" or you move the WidevineCdm directory to "/usr/lib/chromium/".
Third option is just to softlink libwidevine.so to chromium.
Code:
mkdir -p /usr/lib/chromium/WidevineCdm/_platform_specific/linux_arm/
ln -s /opt/WidevineCdm/_platform_specific/linux_arm/libwidevinecdm.so /usr/lib/chromium/WidevineCdm/_platform_specific/linux_arm/
ln -s /opt/WidevineCdm/manifest.json /usr/lib/chromium/WidevineCdm/
Third option is just to softlink libwidevine.so to chromium-ungoogled.
Code:
mkdir -p /usr/lib/chromium-ungoogled/WidevineCdm/_platform_specific/linux_arm/
ln -s /opt/WidevineCdm/_platform_specific/linux_arm/libwidevinecdm.so /usr/lib/chromium-ungoogled/WidevineCdm/_platform_specific/linux_arm/
ln -s /opt/WidevineCdm/manifest.json /usr/lib/chromium-ungoogled/WidevineCdm/
If you are using kodi, you can skip the last part (the script) as "inputstream helper" plugin will download and install widevine for you.
Last part to make chromium or chromium-ungoogled work is to change your user-agent:
Code:
# Remove this (if ungoogled its "chromium-ungoogled" instead of "chromium")
Exec=/usr/bin/chromium %U
# Add this
Exec=/usr/bin/chromium --user-agent="Mozilla/5.0 (X11; CrOS armv7l 10895.56.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36" " %U
Add this to the chromium.desktop/chromium-ungoogled.desktop launcher.
Note: When it comes to chromium/choromium-ungoogled i have patched it to enable Widevine support for ARM and also patched chromium.desktop/chromium-ungoogled.desktop launcher with user-agent information.
So you should not have to add this yourself.
chromium buildscript found at my
github.
Will see if i can upload chromium and chromium-ungoogled binaries for Slackware ARM to my github when i have compiled 93.0.4577.82.
But it takes some time to compile...
All this is tested and working for streaming site´s like "Netflix", "Disney plus", "C-More", "sfanytime" and "Boxer-Play".
Small note, this also resolves c-more streams using c-more kodi-plugin.
Also resolves playback issues with Spotify webplay.
Best regards:
Minime