nixpkgs/pkgs/development
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
..
androidndk-pkgs
arduino
beam-modules
bower-modules/generic
chez-modules
compilers Merge pull request #95151 from yaroot/zulu 2020-08-11 11:49:15 -04:00
coq-modules coq-elpi: 1.4.1 -> 1.5.1 2020-08-11 13:49:51 +02:00
dhall-modules
dotnet-modules
em-modules/generic
go-modules
go-packages
guile-modules
haskell-modules
idris-modules
interpreters evcxr: 0.5.2 -> 0.5.3 2020-08-11 22:54:26 +02:00
java-modules
libraries Merge pull request #94018 from r-ryantm/auto-update/gthree 2020-08-11 23:35:50 +02:00
lisp-modules
lua-modules Merge #94790: luajit*: bugfix updates 2020-08-11 22:34:22 +02:00
misc
mobile
node-packages
ocaml-modules ocamlPackages.ppx_deriving_yojson: 3.5.2 → 3.5.3 2020-08-11 11:25:10 +02:00
perl-modules
pharo
pure-modules
python-modules python3Packages.pytesseract: 0.3.4 -> 0.3.5 2020-08-11 22:54:26 +02:00
r-modules
ruby-modules
tools meson: Fix rpath clearing 2020-08-12 12:17:39 +02:00
web