nixpkgs-suyu/pkgs/development
Will Dietz 503f8efbcd epoxy: explicitly search libGL path as fallback
Don't rely on questionable impact of DT_RPATH on dlopen().

This is a bit of a messy subject, but probably the clearest
reference to motivate *not* relying on how dlopen() behaves
in the presence of RPATH or RUNPATH is the following:

https://sourceware.org/ml/libc-hacker/2002-11/msg00011.html

FWIW the dlopen() manpage only mentions the the RPATH
and RUNPATH in the "executable file for the calling program";
no mention of the executable files for libraries--
this has been brought to the attention of the relevant
parties and AFAICT nothing has been done.

The best reference for glibc behavior is
apparently to ... "try it and see".
Luckily a generous soul did exactly that
and reported the findings:

https://www.spinics.net/lists/linux-man/msg02291.html

Qt wrote on the subject a bit when they were bit by this,
linking to the above articles (directly or indirectly).

See:
http://blog.qt.io/blog/2011/10/28/rpath-and-runpath/

--------

Since we know the path of libGL at build-time for libepoxy,
there's a simple solution we can use to avoid all of this:
simply teach libepoxy to explicitly look in the libGL path.

This commit patches libepoxy to accomplish this,
looking to "LIBGL_PATH" as a fallback if it cannot find
the libraries otherwise.

---------

This fixes use of libepoxy w/musl on NixOS!
2018-04-02 12:35:37 -05:00
..
arduino
beam-modules
bower-modules/generic
compilers Merge remote-tracking branch 'upstream/master' into HEAD 2018-03-30 08:14:35 +02:00
coq-modules coqPackages.bignums: make it available for Coq 8.8 2018-03-27 16:19:33 +00:00
dotnet-modules/patches
eclipse/ecj
em-modules/generic
go-modules
guile-modules
haskell-modules cabal-install: fix build of the latest version 2018-03-29 20:46:32 +02:00
idris-modules Move all nixpkgs doc files in to the doc directory 2018-03-25 19:52:00 -04:00
interpreters python3: 3.6.4 -> 3.6.5 2018-03-30 08:17:24 +02:00
java-modules
libraries epoxy: explicitly search libGL path as fallback 2018-04-02 12:35:37 -05:00
lisp-modules
lua-modules
misc
mobile treewide: refactor to use libglvnd 2018-03-26 14:01:49 +03:00
node-packages Merge pull request #37749 from grahamc/nixpkgs-docs 2018-03-26 08:24:52 -04:00
ocaml-modules ocamlPackages.lwt_ppx: init at 3.3.0 2018-03-27 20:34:08 +00:00
perl-modules
pharo
pure-modules
python-modules Merge remote-tracking branch 'upstream/master' into HEAD 2018-03-30 08:14:35 +02:00
qtcreator
r-modules Merge remote-tracking branch 'origin/master' into staging 2018-03-28 09:36:47 -04:00
ruby-modules
stm32/betaflight
tools Merge pull request #37935 from jtojnar/meson-0.45 2018-03-30 23:20:39 +02:00
web