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

add macos strip state checking #36

Open
dothebart opened this issue Aug 4, 2020 · 0 comments
Open

add macos strip state checking #36

dothebart opened this issue Aug 4, 2020 · 0 comments

Comments

@dothebart
Copy link
Collaborator

dothebart commented Aug 4, 2020

detecting whether binaries on mac are stripped is a PITA. The cheapest way of doing so is:

  • create a copy of the file in /tmp/test_this_file using the python pathlib
  • invoke strip on /tmp/test_this_file
  • compare the filesize of the original file and this file. If they match, source was stripped - if not - not.
  • delete temporary file.

Part of this: research howto invoke strip, try on the shell in advance. Maybe stripped files change in size anyways? The build-folder on the CI should have a makefile invoking strip, hence this can be used for getting the syntax.
After revalidating that this approach is viable with a go binary (i.e. starter => not stripped) and and a c++ binary (arangod => stripped) on the interactive shell,
The implementation of this can be done on linux, since strip is also available there too.

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

1 participant