nixpkgs-suyu/pkgs/development/tools/build-managers
Jan Tojnar 74ea2b2123
meson: Fix rpath clearing
Meson allows projects to set `build_rpath` property, containing paths
that will be added during build but will be removed when installing.

When Meson removes build_rpath from `DT_RUNPATH` entry, it just writes
the shorter ␀-terminated new rpath over the old one to reduce
the risk of potentially breaking the ELF files
(when the linker does string de-duplication or something).
But this can cause much bigger problem for Nix, as it can produce
cut-in-half-by-␀ store path references.

For example, in systemd’s libudev, it was removing three `$ORIGIN`-relative paths from

    $ORIGIN/../libsystemd:$ORIGIN/../basic:$ORIGIN/../shared:…␀

resulting in the following `DT_RUNPATH` entry:

    …␀store/v589pqjhvxrj73g3r0xb41yr84z5pwb7-gcc-9.3.0-lib/lib␀

We previously handled this in `fix-rpath.patch` but the method we prevent
Meson from removing paths added to rpath through `NIX_LDFLAGS` was changed
during 0.55.0 update and I forgot about this second purpose of the patch.

Let’s re-add this clearing code, as it worked without issues for a long time.
2020-08-12 12:17:39 +02:00
..
alibuild alibuild: 1.5.4rc3 -> 1.5.5 2020-03-31 09:29:48 -07:00
apache-ant treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
apache-maven maven: Wrap mvnDebug for convenience 2020-05-15 16:56:58 +02:00
arpa2cm
bam
bazel bazel: use installShellCompletion for completions 2020-07-17 15:38:49 +02:00
bear treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
bloop Bloop: adapt derivation to darwin 2020-07-28 11:36:42 -07:00
bmake bmake: 20200629 -> 20200710 2020-08-01 21:00:22 -07:00
boot treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
buck
cmake Merge staging-next into staging 2020-07-30 18:28:15 +02:00
colormake colormake: use fetchFromGitHub 2020-05-29 20:00:56 -04:00
conan conan: 1.25.0 -> 1.27.0 2020-07-01 12:45:39 -07:00
doit treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
drake treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
dub treewide: add quotes to recently-changed urls 2020-03-28 00:05:50 +01:00
gn gn: 20190403 -> 2020-03-09 2020-03-24 14:41:11 +01:00
gnumake gnumake42: bring this version back 2020-07-06 10:55:32 +02:00
gradle gradle: 5.6.4 -> 6.5.1 2020-07-04 14:56:12 -07:00
gup
icmake treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
jam treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
kati treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
leiningen treewide: remove the-kenny from maintainers 2020-05-09 10:28:57 +01:00
mage buildGoModule packages: set doCheck = false 2020-08-10 16:02:30 +10:00
meson meson: Fix rpath clearing 2020-08-12 12:17:39 +02:00
mill mill: 0.7.4 -> 0.8.0 2020-08-02 06:42:01 +00:00
mk treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
msbuild treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
ninja treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
pants
qbs qbs: 1.15.0 -> 1.16.0 2020-05-10 05:13:15 +00:00
rake treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
rebar treewide: remove the-kenny from maintainers 2020-05-09 10:28:57 +01:00
rebar3 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
redo treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
redo-apenwarr redo-apenwarr: install bash completion 2020-07-07 04:20:00 -05:00
redo-c redo-c: Initial 0.2 2020-07-10 00:48:57 +02:00
redo-sh treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
remake treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
rocm-cmake rocm-cmake: init at 3.5.0 2020-07-13 20:00:20 +02:00
samurai samurai: 1.0 -> 1.1 2020-04-01 18:58:42 -07:00
sbt sbt: 1.3.12 -> 1.3.13 2020-06-30 14:57:54 +00:00
sbt-extras sbt-extras: 2019-10-21 -> 2020-06-01 (#89289) 2020-06-01 08:46:15 +00:00
scons scons: 4.0.0 -> 4.0.1 (#93415) 2020-07-19 11:41:41 +02:00
shards shards: 0.9.0 -> 0.10.0 2020-04-22 17:30:22 +08:00
tup tup: fix setup hook location 2020-06-13 11:03:55 +05:30
waf waf: 2.0.19 -> 2.0.20 2020-04-21 08:40:14 +02:00
wafHook Merge pull request #79593 from thefloweringash/wafhook-phases 2020-03-22 01:59:41 -04:00