Skip to content

Fix relocate osx libraries#7690

Closed
maartenbreddels wants to merge 2 commits intopyinstaller:developfrom
maartenbreddels:fix_relocate_osx_libraries
Closed

Fix relocate osx libraries#7690
maartenbreddels wants to merge 2 commits intopyinstaller:developfrom
maartenbreddels:fix_relocate_osx_libraries

Conversation

@maartenbreddels
Copy link
Copy Markdown

Using codesign on osx fails if .so and .dynlib are not in the right locations. Right now they end on in Resources, but they should go into MacOS.
The same happens for executable, for instance the "plasma-store-server" ends up in Resources, but should also go to MacOS. I am not sure however how to recognize binaries (will they have +x?).

@rokm
Copy link
Copy Markdown
Member

rokm commented Jun 6, 2023

If the .dylib and .so files ended up in Resources, then they were marked as data files (their TOC entries have DATA) during analysis stage. This happens either if you manually add them via --add-data instead of --add-binary (or if you pass them to datas argument instead of binaries when initializing Analysis in the spec), or if you have a custom hook that lists those files in datas variable instead of binaries one.

Either way, you should look into why the entries are mislabeled during Analysis, instead of adding hard-coded work-arounds to BUNDLE code (nonetheless because I'm currently rewriting that part of code, and all relocation exemptions will be removed).

@maartenbreddels
Copy link
Copy Markdown
Author

Thank you for the detailed explanation, also in spacetelescope/jdaviz#1960 !

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants