Bug 271629 - GLX broken after pkg upgrade b/c nvidia glx symlink was overwritten
Summary: GLX broken after pkg upgrade b/c nvidia glx symlink was overwritten
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Jan Beich
URL:
Keywords: regression
Depends on:
Blocks: 271686
  Show dependency treegraph
 
Reported: 2023-05-25 15:36 UTC by Andrew Gallatin
Modified: 2023-08-12 23:03 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Gallatin freebsd_committer freebsd_triage 2023-05-25 15:36:29 UTC
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
Comment 1 Jan Beich freebsd_committer freebsd_triage 2023-05-27 20:30:18 UTC
Regressed by ports 88b0ae2bb9c6: files/pkg-install.in -> files/pkg-post-deinstall.in lost .nvidia/libglx.so.1 check used by nvidia-driver < 410 (lack libglvnd support)
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-08-12 22:59:56 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0d5b62609e7d66aa4f64519ba822c83498874cd0

commit 0d5b62609e7d66aa4f64519ba822c83498874cd0
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-08-12 22:35:29 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-08-12 22:58:06 +0000

    x11-servers/xorg-server: unbreak nvidia-driver < 410 after 88b0ae2bb9c6

    Restore libglx.so -> .nvidia/libglx.so hardlink as symlink when
    xorg-server is reinstalled after nvidia-driver.

    PR:             271629
    Reported by:    gallatin

 x11-servers/xorg-server/Makefile                  | 2 +-
 x11-servers/xorg-server/files/pkg-post-install.in | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)
Comment 3 Jan Beich freebsd_committer freebsd_triage 2023-08-12 23:00:34 UTC
Split from the cleanup (bug 271686) in case of regressions.