Skip to content

TST: rework the sharedlib-in-package test package #783

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

dnicolodi
Copy link
Member

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 the RPATH handling.

@dnicolodi dnicolodi force-pushed the rpath-tests branch 13 times, most recently from 0460133 to 556faac Compare July 30, 2025 16:55
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 the RPATH handling.
meson-python does not support `install_rpath` yet and anyhow `install_rpath`
is not exposed in the introspection data and thus cannot be set by
meson-python when building the Python wheel. 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.
@dnicolodi
Copy link
Member Author

@rgommers This PR reworks some of the tests involving RPATH entries and adds more to demonstrate the shortcoming of the current implementation. All tests are made to pass but contain comments on the observed wrong behaviors. Next I'll split the RPATH handling patch into smaller pieces easier to review.

@dnicolodi
Copy link
Member Author

@rgommers This only adds or reworks tests. I'll merge it soon and start to work on fixing the issues identified by these tests, unless you see issues with this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant