Bug 253741 - graphics/mesa-devel: disabling OPTIONS_MULTI_DRI is not effective
Summary: graphics/mesa-devel: disabling OPTIONS_MULTI_DRI is not effective
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jan Beich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-21 12:06 UTC by Evgeniy Khramtsov
Modified: 2021-02-21 12:06 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (jbeich)


Attachments
compressed full poudriere logs (66.11 KB, application/octet-stream)
2021-02-21 12:06 UTC, Evgeniy Khramtsov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Evgeniy Khramtsov 2021-02-21 12:06:57 UTC
Created attachment 222698 [details]
compressed full poudriere logs

If one disables DRI drivers like this:
graphics_mesa-devel_UNSET+= DRI LLVM r600 radeonsi radv VAAPI

DRI driver i965 will be disabled as an option:
root@localhost:/usr/ports/graphics/mesa-devel # make -V DESELECTED_OPTIONS
DRI LLVM VAAPI VDPAU i965 r600 radeonsi radv

But generated MESON_ARGS will still build i965:
root@localhost:/usr/ports/graphics/mesa-devel # make -V MESON_ARGS
-Dgallium-omx=disabled  -Dgallium-opencl=disabled  -Dgallium-xa=disabled  -Dgallium-xvmc=disabled  -Dplatforms=x11,wayland  --native-file=binary_alias.ini   -Ddri-drivers=i965 -Dgallium-drivers=iris -Dvulkan-drivers=intel -Dglvnd=false -Dlibunwind=enabled -Dllvm=disabled -Dgallium-va=disabled -Dgallium-vdpau=disabled -Dvulkan-device-select-layer=true -Dvulkan-overlay-layer=true -Dzstd=enabled

Poudriere logs are attached.

Additional info: when I tried to add conditionals for enabled options to Makefile with <bsd.port.options.mk> or <bsd.port.pre.mk>, I could affect {SELECTED,DELESECTED}_OPTIONS with IMPLIES, but selected options weren't enabled in make config.