brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.99k stars 2.36k forks source link

Support for freebsd #41216

Open k2662 opened 2 months ago

k2662 commented 2 months ago

Platforms

all

Description

I love the brave browser, but can only use it on macOS. I am trying to switch to freebsd but that means I won't be able to use the brave browser.

fr0xk commented 3 weeks ago

I was expecting some explanation at least. It seems either Brave browser or FreeBSD ports maintainer, one of them don't care.

What stops brave to run on FreeBSD with usual compilation procedure?

Edit:

The build error suggests that Brave's build tools are failing due to a KeyError caused by FreeBSD's platform not being recognized within the Brave depot_tools ('freebsd` isn't defined in _PLATFORM_MAPPING in gclient.py). Specifically, the function _detect_host_os() fails because sys.platform does not match any keys in the mapping dictionary.

_PLATFORM_MAPPING = {
    'freebsd': 'linux',
    # other mappings
}

This one continues the build (but still segfaults at runtime)