[Bug 270361] Mk/Uses/meson.mk: add --auto-features=enabled to improve determinism

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 22 Mar 2023 14:20:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270361

--- Comment #34 from Jan Beich <jbeich@FreeBSD.org> ---
--auto-features=enabled or -Dauto_features=enabled passes -D<option>=enabled
for every "feature" option with "auto" as default. Meson will abort build if
the dependencies cannot be found. Port maintainers have to decide upfront
whether to specify all dependencies, expose meson options as port options or
explicitly disable stuff not available/desirable. If the port is too broken
(gstreamer1-plugins*) or upstream is uncompromising (mpv#10855) the previous
behavior can be restored by adding MESON_ARGS+=--auto-features=auto

"feature" options were introduced in Meson 0.47. Before that "auto" as default
was used in "combo" options. --auto-features has no impact on "combo". For
example, ports d7b48d44246e is missing in mesa-dri (until 23.1.0) as those are
still "combo".

-- 
You are receiving this mail because:
You are on the CC list for the bug.