nixpkgs/pkgs/development
Jan Tojnar de910a040b
meson: fix rpath fixup
In common distributions, RPATH is only needed for internal libraries so
meson removes everything else. With Nix, the locations of libraries
are not as predictable, therefore we need to keep them in the RPATH. [1]

Previously we have just kept the RPATH produced by the linker, patching
meson not to remove it. This deprived us of potentially replacing it
with install_rpath provided by project so we had to re-add it manually,
and also introduced a vulnerability of keeping build paths in RPATH.

This commit restores the clean-up but modifies it so the items starting
with /nix/store are retained.

This should be relatively safe since the store is immutable, however,
there might be some unwanted retainment of build_rpath [2] if it contains
paths from Nix store.

[1]: https://github.com/NixOS/nixpkgs/issues/31222#issuecomment-365811634
[2]: http://mesonbuild.com/Release-notes-for-0-42-0.html#added-build_rpath-keyword-argument
2018-03-22 07:30:58 +01:00
..
arduino
beam-modules
bower-modules/generic
compilers edk2, OVMF: Build on aarch64 2018-03-21 23:19:26 +02:00
coq-modules coqPackages.contribs.containers: make available for Coq 8.7 2018-03-21 09:27:50 +01:00
dotnet-modules/patches
eclipse/ecj
em-modules/generic Emscripten 1.37.16 to 1.37.36 (#37291) 2018-03-18 13:34:46 +01:00
go-modules
guile-modules
haskell-modules Merge pull request #37509 from pikajude/darwin-hs-dynamic 2018-03-21 14:36:08 -07:00
idris-modules idrisPackages: add packages 2018-03-20 07:16:21 +01:00
interpreters Renpy and pygame_sdl2 update - 6.99.14 (#33943) 2018-03-21 21:26:29 -05:00
java-modules jogl: temporary workaround for openjdk8 2018-03-19 08:44:21 +00:00
libraries Merge pull request #37236 from matthewbauer/auto-update/activemq 2018-03-21 23:42:28 -05:00
lisp-modules
lua-modules
misc
mobile titaniumenv: fix renaming strategy 2018-03-21 16:08:56 +01:00
node-packages
ocaml-modules Merge pull request #37385 from coreyoconnor/google-drive-ocamlfuse-update 2018-03-20 00:17:43 +00:00
perl-modules
pharo
pure-modules
python-modules Renpy and pygame_sdl2 update - 6.99.14 (#33943) 2018-03-21 21:26:29 -05:00
qtcreator
r-modules
ruby-modules
stm32/betaflight
tools meson: fix rpath fixup 2018-03-22 07:30:58 +01:00
web kore: fix clang build 2018-03-20 00:00:42 +01:00