[Bug 266247] x11/nvidia-xconfig: add compatible version with legacy driver

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 06 Sep 2022 04:00:16 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266247

            Bug ID: 266247
           Summary: x11/nvidia-xconfig: add compatible version with legacy
                    driver
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: theron.tarigo@gmail.com

Created attachment 236387
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=236387&action=edit
fix

With nvidia-driver-390 (or older) or nvidia-secondary-driver-390,
`nvidia-xconfig --enable-all-gpus` fails with:
> WARNING: error retrieving symbol nvCfgIsPrimaryDevice from libnvidia-cfg.so.1:
>         Undefined symbol "nvCfgIsPrimaryDevice"
> ERROR: Unable to determine number of GPUs in system; cannot honor
>       '--enable-all-gpus' option.

nvidia-xconfig is required for functionality of nvidia-hybrid-graphics-390 for
legacy Nvidia Optimus GPUs.

The library incompatibility occurs since libnvidia-cfg.so.1 is part of nvidia
driver port, not the xconfig port.

Ideally nvidia-xconfig version should always match driver version, but the
existing ports do not accomplish this.
Using nvidia-xconfig 390.151 for drivers 390 and earlier, and nvidia-xconfig
470.86 for drivers 470 and newer seems sufficient.

-- 
You are receiving this mail because:
You are the assignee for the bug.