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

Audit libraries to check for problematic RPATH/RUNPATH when building #173

Merged
merged 17 commits into from
Oct 4, 2021
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
staticx: Check for un-fixable RUNPATH in pyinstaller hook
  • Loading branch information
JonathonReinhart committed Oct 4, 2021
commit c882a076312f7dba1e71a82dde58b2b65d95d188
5 changes: 5 additions & 0 deletions staticx/hooks/pyinstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ def _add_required_deps(self, lib):
# Silence "you do not have execution permission" warning from ldd
make_executable(lib)

self.sx.audit_library(lib)
# Unfortunately, there's no easy way to fix an UnsupportedRunpathError
# here, because staticx is not about to to modify the library and
# re-pack the PyInstaller archive itself.

# Try to get any dependencies of this file
try:
deps = get_shobj_deps(lib, libpath=[self.tmpdir.name])
Expand Down