Chromium does not compile under FreeBSD 13.3

No,I can't remove ubuntu2310_enable="YES" from /etc/rc.conf ; I want to copy the cdm stuff from /compat/linux to /compat/ubuntu2310 ; but to do this I need to know where this stuff is located.

You don't just copy. You compile and link the wrapper, which is hardcoded to use rel7 in /compat/linux
 
Help me to understand : if I enable linux_enable="YES" and I reboot,I will enable the drm but what will happens to the programs that I have installed under /compat/ubuntu2310 ; they will work ?
 
Code:
% pkg info -l foreign-cdm
foreign-cdm-20231203:
    /usr/local/lib/foreign-cdm/fcdm-fbsd.so
    /usr/local/libexec/fcdm-jail
    /usr/local/libexec/fcdm-worker
    /usr/local/share/chromium/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so
    /usr/local/share/chromium/WidevineCdm/manifest.json
    /usr/local/share/foreign-cdm/fcdm-setup-env
    /usr/local/share/licenses/foreign-cdm-20231203/LICENSE
    /usr/local/share/licenses/foreign-cdm-20231203/MIT
    /usr/local/share/licenses/foreign-cdm-20231203/catalog.mk

These directories aren't inside /compat/linux ; I have them on FreeBSD. So,if I enable ubuntu2310 instead of linux,I suppose that it does NOT change anything. And if anything does not change,if it does not work it's not caused by some mistake made by me. In this case,do you know why it does not work ? can you fix it ?
 
Regarding the package foreign-cdm-20231217_3...is it supposed to work ? I don't understand. The package works good but the port and the code on the repo,don't ?

UPDATE : it does not work even installing the package foreign-cdm-20231217_3 (and the port linux-widevine-cdm) :

Istantanea_2024-03-23_22-09-45.png
 
A side note :

I'm trying to use Chrome version 123.0.6312.58 that runs within the Linuxulator to check if I can watch the drm protected contents on www.nowtv.it , where I have an account. Unfortunately it does not work :

error : UNSUPPORTED_BROWSER

but,they say to support these browsers :

  • Google Chrome version 102 or later (on MAC and Windows)
  • Mozilla Firefox version 102 or later
  • Safari version 14 or later (only on Mac, not on PC with Windows)
  • Edge version 102 or later
 
I can't try because now chrome installed within the linuxulator stopped working. The point is that to try if I could watch the drm contents I have enabled linux and I have disabled ubuntu2310 inside the rc.conf (where I had installed chrome within the ubuntu2310 "vm") and this is what happens :

Code:
marietto# ./chrome

[0324/005343.414040:WARNING:chrome_main_linux.cc(80)] Read channel stable from CHROME_VERSION_EXTRA
[0324/005343.462347:ERROR:check.cc(365)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!
[0324/005343.466703:ERROR:icu_util.cc(148)] Can't find icudtl.dat
[0324/005343.466722:ERROR:icu_util.cc(223)] Invalid file descriptor to ICU data received.
zsh: trace trap (core dumped)

so,changing from ubuntu 23.10 to linux does matter. Anyway it is working with www.netflix.it , but not with www.nowtv.it ; very interesting. Maybe www.nowtv.it detects that I'm not running Windows.

:(
 
This is the User Agent used by Chromium :

Code:
Sec-Ch-Ua: "Not_A Brand";v="8", "Chromium";v="120"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Linux"
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

First of all,as you can see,the OS detected is wrong : I'm not using Linux ; I've launched Chromium from FreeBSD....
 
Ok. I've changed the User-Agent. Now it is like this :

Code:
Sec-Ch-Ua: "Not_A Brand";v="8", "Chromium";v="120"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Full-Version: "120.0.6099.224"
Sec-Ch-Ua-Arch: ""
Sec-Ch-Ua-Platform: "Linux"
Sec-Ch-Ua-Platform-Version: "14.0.0"
Sec-Ch-Ua-Model: ""
Sec-Ch-Ua-Bitness: "64"
Sec-Ch-Ua-Full-Version-List: "Not_A Brand";v="8.0.0.0", "Chromium";v="120.0.6099.224"
User-Agent: Mozilla/5.0 (MSIE 10.0; Windows NT 6.1; Trident/5.0)

Well,it is not enough. It still does not work,it says "browser not supported". Something else should be changed. Maybe Sec-Ch-Ua-Platform: "Linux" is not good ; how can I change it ?
 
firefox -P clean -safe-mode 'https://udger.com/resources/online-parser?action=my'

– for a profile that is named clean – gets:

User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0

That is, with firefox-124.0,2 on FreeBSD (15.0-CURRENT).
 
… they say …

Where, exactly – what's the address of the page?

The list above implies support for Mozilla Firefox version 102 or later on Linux (Linux is not specifically excluded).

This page (for UK users of NOW) does exclude Linux devices:

Postscripts​

I reckon, neither the Italian help area nor the English help area is entirely accurate.

From <https://www.nowtv.it/assistenza/art...osso-utilizzare-now#magneto-leadoo-article-28>:

1711259409442.png

Translated by Firefox – the highlighted points imply Microsoft Windows and Apple macOS only:

1711259641279.png


Found: <https://www.nowtv.it/assistenza/articolo/quali-sono-i-browser-supportati-da-now>
 

Attachments

  • 1711258531846.png
    1711258531846.png
    53.9 KB · Views: 17
I just change the Linux/FreeBSD part of User Agent to Windows, while preserving all other details - and it starts working fine after... User Agent-based enforcement is stupid easy to work around - all you need to know is how to change it for the browser.
 
I've booted Windows 10 and I have parsed the User Agent String :

Code:
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0

This is how it appears when I use Chromium :

Code:
Sec-Ch-Ua: "Not_A Brand";v="8", "Chromium";v="120"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Full-Version: "120.0.6099.224"
Sec-Ch-Ua-Arch: ""
Sec-Ch-Ua-Platform: "Linux"
Sec-Ch-Ua-Platform-Version: "14.0.0"
Sec-Ch-Ua-Model: ""
Sec-Ch-Ua-Bitness: "64"
Sec-Ch-Ua-Full-Version-List: "Not_A Brand";v="8.0.0.0", "Chromium";v="120.0.6099.224"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0

At this point I gone to nowtv.it ; it says "browser not supported" ; I'm almost sure that I should change the value Linux on the string "Sec-Ch-Ua-Platform" ;
 
I just change the Linux/FreeBSD part of User Agent to Windows, while preserving all other details - and it starts working fine after... User Agent-based enforcement is stupid easy to work around - all you need to know is how to change it for the browser.

I presume that you are talking without having an account to www.nowtv.it.
 
This is the user-agent that works on www.nowtv.it (has been parsed using Chrome under Windows 10) :

Code:
Sec-Ch-Ua: "Google Chrome";v="123", "Not:A-Brand";v="8", "Chromium";v="123"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36

I'm pretty sure that this string :

Code:
Sec-Ch-Ua-Platform: "Windows"

is what www.nowtv.it wants to see.
 
Please: which extension for Chromium did you choose, and why ?

I used User Agent Switcher. Is this not good ? It seems that the os used can't be changed only changing the user agent. Probably it is even not needed....There should be a different method to spoof the OS used....
 
Back
Top