[Mesa-dev] [PATCH 08/14] meson: fix BSD build

Greg V greg at unrelenting.technology
Sat Jan 6 01:12:15 UTC 2018


On 01/06/2018 01:06, Dylan Baker wrote:
> Quoting Greg V (2017-12-31 08:55:22)
>> +is_like_linux = host_machine.system() == 'linux' or host_machine.system().contains('bsd') # FIXME: illumos?
> This won't cover dragonflybsd, which is just 'dragonfly'
>
> I think something like this would be better:
> is_like_linux = ['openbsd', 'netbsd', 'freebsd', 'dragonfly', 'linux'].contains(host_machine.system())
Yeah, looks good to me.
> I'd like to know what illumos returns, but I can't get it to run in VM. If you
> have access to an illumos machine, getting the result of:
> `python3 -c "import platform; print(platform.system().lower())"` so we can add
> that to meson's support os values.
I don't have a machine set up yet, but it's probably "sunos".
There was some discussion in Meson about converting that to "solaris": 
https://github.com/mesonbuild/meson/issues/1578
> As a nit, I'd prefer "system_is_linux_like" to just "is_like_linux" but I'm not
> set on that like the first change.
This can be bikeshedded for a long long time :) Maybe something like 
"system_has_kms_drm"?


More information about the mesa-dev mailing list