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

Fix relocate osx libraries #7690

Conversation

maartenbreddels
Copy link

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
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
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.

None yet

2 participants