Fixes relative to RPATH handfling#788
Conversation
3c3bcf5 to
f84c84f
Compare
c437265 to
2ab597f
Compare
This entries are not meaningful. This has the additional benefit of not returning an empty string RPATH entry for binaries with RPATH unset.
This reorganizes the test package to a flatter layout that helps visualizing all the parts involved in the test and introduces an asymmetry between the source layout and the installation layout that demonstrates the bugs in RPATH handling as currently implemented.
af28554 to
cf8cc06
Compare
meson-python does not support `install_rpath` yet and Meson does not expose it in introspection data prior to version 1.6.0. Use `link_args` to set the RPATH.
macOS requires using `@loader_path` in place of `$ORIGIN`.
This shows that build RPATHs are not correctly stripped.
This does not introduce any functional changes, except removing duplicates entries from RPATH. Fixes mesonbuild#813.
There is no need to perform the check for every native file installed.
for packages using internal shared libraries relocated by meson-python.
a32477f to
6dfee91
Compare
Revise tests to exercise support when executed with Meson > 1.6
|
This should fix RPATH handling for good. The only thing not included is automatic translation of the There is one case in which this may break projects that work now: when libraries or modules require setting an RPATH to dynamically link to a library installed in the Python install path (with something like @rgommers I think I added test cases for all scenarios we discussed. It would be great if you could test with packages that may be affected and that do not pin the meson-python version to any released version. |
Requires Meson 1.9.0.
Builds on top of #783 and replaces #724