[Bug 271629] GLX broken after pkg upgrade b/c nvidia glx symlink was overwritten

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 25 May 2023 15:36:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271629

            Bug ID: 271629
           Summary: GLX broken after pkg upgrade b/c nvidia glx symlink
                    was overwritten
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: gallatin@FreeBSD.org

After my last 2 monthly updates via beadm (which does a pkg upgrade), I noticed
that the /usr/local/lib/xorg/modules/extensions/libglx.so symlink had been
updated to point at .xorg/libglx.so

The result of that is that nothing related to GLX worked.  Eg, glxinfo crashed
with:

name of display: :0.0
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  155 (NV-GLX)
  Minor opcode of failed request:  4 ()
  Resource id in failed request:  0x2200004
  Serial number of failed request:  37
  Current serial number in output stream:  37

Manually fixing the link, so that it looks like this fixes my issue:

libglx.so@ -> .nvidia/libglx.so

I have the following Xorg / nvidia related pkgs installed:

<11:33am>beast/gallatin:~>pq | egrep nvidia\|xorg
linux-c7-xorg-libs-7.7_10
nvidia-driver-390-390.154
nvidia-settings-470.86_1
xorg-fonts-7.7_1
xorg-fonts-100dpi-7.7
xorg-fonts-75dpi-7.7
xorg-fonts-cyrillic-7.7
xorg-fonts-miscbitmaps-7.7
xorg-fonts-truetype-7.7_1
xorg-fonts-type1-7.7
xorg-server-21.1.8_2,1
xorgproto-2022.1

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