nixpkgs/pkgs
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
..
applications jetbrains.clion: 2017.3.3 -> 2017.3.4 2018-03-22 07:30:12 +01:00
build-support Merge pull request #36906 from nlewo/pr/docker-reproducible 2018-03-21 08:13:26 +01:00
common-updater common-updater: support updating source URL 2018-03-16 23:17:07 +09:00
data Merge pull request #37158 from oxij/pkgs/tor-browsers 2018-03-16 18:06:50 +00:00
desktops xfce.xfwm4: 4.12.3 -> 4.12.4 2018-03-21 22:19:46 +00:00
development meson: fix rpath fixup 2018-03-22 07:30:58 +01:00
games openrct2: 0.1.1 -> 0.1.2 2018-03-21 22:51:21 +00:00
misc Merge pull request #37491 from dtzWill/update/vim-plugins-many-2018-03-20 2018-03-21 15:56:37 -05:00
os-specific linux: 4.15.11 -> 4.15.12 2018-03-21 20:44:01 -04:00
servers squid4: 4.0.23 -> 4.0.24 2018-03-22 01:05:31 +01:00
shells bash-completion: 2.7 -> 2.8 2018-03-19 22:12:04 -07:00
stdenv cross stdenv: Make depsBuildBuild overrideable by config too. 2018-03-20 15:58:09 -04:00
test
tools nmap: 7.60 -> 7.70 2018-03-22 01:05:31 +01:00
top-level nullmailer: fix darwin build 2018-03-22 00:11:24 +01:00