nvidia: fix proton errors.

Proton sometimes errors out with:

  The NVIDIA driver was unable to open
  'libnvidia-glvkspirv.so.470.57.02'. This library is required at run
  time.

This is caused by an out of date glibc cache, so we now run ldconfig in
INSTALL. This solution was pointed out by mvf.

Unfortunately, this isn't the entirely correct solution: ldconfig should
always be run after package installations that touch /usr/lib, to avoid
similar issues. Until there's a simple solution for it (maybe general
purpose XBPS hooks), this is the best we can do.

Fixes: #32222
This commit is contained in:
Érico Nogueira 2021-08-05 09:27:02 -03:00 committed by Érico Nogueira Rolim
parent 8e89e30146
commit e815e69d7a
2 changed files with 4 additions and 1 deletions

3
srcpkgs/nvidia/INSTALL Normal file
View file

@ -0,0 +1,3 @@
case "${ACTION}" in
post) ldconfig -X || : ;;
esac

View file

@ -4,7 +4,7 @@ _desc="NVIDIA drivers for linux"
pkgname=nvidia
version=470.57.02
revision=1
revision=2
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="custom:NVIDIA Proprietary"
homepage="https://www.nvidia.com"