Starting from commit base 9820afb99e6fdc471cb820f321530c52ed2c31ac,
graphics/drm-*-kmod, graphics/nvidia-drm*-kmod* starts failing build
error: 'opt_linuxkpi.h' file not found
32 | #include "opt_linuxkpi.h" | ^~~~~~~~~~~~~~~~
in several places.
Fix builds by cherry-picking unmerged commitsseen in master
(development) branch of upstream drm-kmod,
https://github.com/freebsd/drm-kmod/commit/b6f7264f2e7dc6b2141f817f0374d88cd679d89a
introducing proposed fix at
https://github.com/freebsd/drm-kmod/pull/524
that relies on the commit.
Adapt NVIDIA counterparts with it, as it also fails once
depepding graphics/drm-*-kmod are fixed.
This is the temporary fix until upstream fixes the issue
and corresponding ports are updated. So this needs to be
reverted just before the fix lands onto ports tree.
At the same time, cleaned up version for NVIDIA counterpart
is needed to be committed, as patching to extracted drm-*-kmod
sourced should no longer needed, but NVIDIA specific parts are
still needed.
Reported by: O. Hartmann
Co-authored by: Jean-Sébastien Pédron
Co-authored by: Bjoern A. Zeeb
PR: 299334