From e815e69d7a6d30c27c372584170a7c9dfdff839f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Nogueira?= Date: Thu, 5 Aug 2021 09:27:02 -0300 Subject: [PATCH] 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 --- srcpkgs/nvidia/INSTALL | 3 +++ srcpkgs/nvidia/template | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/nvidia/INSTALL diff --git a/srcpkgs/nvidia/INSTALL b/srcpkgs/nvidia/INSTALL new file mode 100644 index 00000000000..2461dca609f --- /dev/null +++ b/srcpkgs/nvidia/INSTALL @@ -0,0 +1,3 @@ +case "${ACTION}" in +post) ldconfig -X || : ;; +esac diff --git a/srcpkgs/nvidia/template b/srcpkgs/nvidia/template index 2ebd8c1b5e4..9c022ef6564 100644 --- a/srcpkgs/nvidia/template +++ b/srcpkgs/nvidia/template @@ -4,7 +4,7 @@ _desc="NVIDIA drivers for linux" pkgname=nvidia version=470.57.02 -revision=1 +revision=2 maintainer="Andrew Benson " license="custom:NVIDIA Proprietary" homepage="https://www.nvidia.com"