void-packages/srcpkgs/nvidia/INSTALL
Érico Nogueira e815e69d7a 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
2021-08-05 14:08:24 -03:00

3 lines
51 B
Text

case "${ACTION}" in
post) ldconfig -X || : ;;
esac