nongnu: steam: Add ldconfig comment.

* nongnu/packages/steam-client.scm: Add comment explaining why ldconfig must be
  re-enabled in glibc.
This commit is contained in:
ison 2020-10-11 06:23:49 -06:00 committed by Pierre Neidhardt
parent d7b56982b6
commit 3f4febd80b
No known key found for this signature in database
GPG key ID: 9BDCF497A4BBCC7F

View file

@ -94,6 +94,24 @@
(description ngc-description (default #f))
(license ngc-license (default #f)))
;;; We must re-enable ldconfig in glibc for Steam to prefer our system libraries
;;; over Steam's runtime (which has incompatible Mesa and gcc). This is because
;;; the Steam script located at
;;; Steam/ubuntu12_32/steam-runtime/run.sh
;;; overrides $LD_LIBRARY_PATH with the following order enforced:
;;; * "Pinned" libraries (pinned_libs_{32,64} directories containing symlinks)
;;; * Output from `/sbin/ldconfig -XNv`
;;; * steam-runtime paths
;;; * Existing $LD_LIBRARY_PATH
;;; Without ldconfig Steam's runtime will have priority over system libraries as
;;; well as any paths supplied to Steam in the initial $LD_LIBRARY_PATH.
;;; "Pinned" library directories are created after installation, so we can't
;;; use those either.
;;; Disabling Steam's runtime is another solution, however that will add over
;;; 80 additional dependencies (see commit: @a12f42e6)
(define glibc-for-fhs
(package
(inherit glibc)