You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is that patchelf fails when invoked on the copy of the to-be-included library as the original permissions are retained and nothing guaranties that they are owner writable which is the case for all libraries on NixOS
I understand, there is an ongoing work to get rid of patchelf. In the meantime it could be mitigated by writing to a separate file via the --output flag of patchelf or fixing the permissions beforehand.
Your Python version (python -V)
Python 3.8.15
Your pip version (pip -V)
pip 22.2.2
What bindings you're using
No response
Does cargo build work?
Yes, it works
If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /)?
Yes
Steps to Reproduce
I guess it is enough to set permissions to e..g 555 of a library dependency which gets picked up by auditwheel
The text was updated successfully, but these errors were encountered:
1292: add_external_libs: ensure write permission on libraries r=messense a=vlaci
`std::fs::copy` also copies the original file permissions. If the original library at `lib_path` was not writable, e.g. because it had its permission set to 0o555, the copy inherited the same permission causing later file manipulations, like `patchelf --set-soname` to fail.
Fixes#1287
Co-authored-by: László Vaskó <1771332+vlaci@users.noreply.github.com>
Bug Description
The issue is that
patchelf
fails when invoked on the copy of the to-be-included library as the original permissions are retained and nothing guaranties that they are owner writable which is the case for all libraries on NixOSExample:
I understand, there is an ongoing work to get rid of
patchelf
. In the meantime it could be mitigated by writing to a separate file via the--output
flag of patchelf or fixing the permissions beforehand.Your Python version (
python -V
)Python 3.8.15
Your pip version (
pip -V
)pip 22.2.2
What bindings you're using
No response
Does
cargo build
work?If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash
/
)?Steps to Reproduce
I guess it is enough to set permissions to e..g
555
of a library dependency which gets picked up by auditwheelThe text was updated successfully, but these errors were encountered: