Skip to content
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

Setting RUNPATH to lib directory #306

Open
GertBurger opened this issue Aug 26, 2024 · 1 comment
Open

Setting RUNPATH to lib directory #306

GertBurger opened this issue Aug 26, 2024 · 1 comment

Comments

@GertBurger
Copy link

We vendor some 3rd party dependencies to reduce the number of system deps we have and to ensure consistency between installations.

Whilst evaluating this project as a basis for the python we'd like to ship we noticed that no RPATH or RUNPATH is set, which prevents loading of shared libraries from the most obvious location being the lib directory that is being shipped.

The only ticket I found that seems related is #227

I attempted to set the RUNPATH using pathelf but for some unknown reason it doesn't have any effect. Setting an RPATH worked but since it is deprecated and not really fit for our purpose we would rather not use it.

I'm not sure if it is possible to set a relocatable RUNPATH so setting a default one might not be possible. Being able to set one at all would be very useful.

My knowledge in this area is somewhat limited so I might be missing something obvious.

Thoughts?

P.S. the command was patchelf --set-rpath '/somepath/lib/' /somepath/bin/python3.9 where somepath is equivalent to the python directory in the release artifacts.

@mzpqnxow
Copy link

I put a note in #227 about this in case it's helpful

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

No branches or pull requests

5 participants
@GertBurger @mzpqnxow and others