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

Change PREBUILD_STRIP_BIN to path to strip binary #13

Merged
merged 1 commit into from
Feb 18, 2020

Conversation

christianbundy
Copy link
Contributor

Problem: The strip binary wasn't found when we looked in the expected
location: /usr/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-strip. It's
unclear why this is happening, but we need to change the environment
variable PREBUILD_STRIP_BIN so that it points at a valid binary.

Solution: We found three binaries that seem to look like strip:

  • /usr/arm-linux-gnueabihf/bin/strip
  • /usr/bin/arm-linux-gnueabihf-strip
  • /usr/bin/x86_64-linux-gnu-strip

The first two are the exact same binary, confirmed with sha256sum, and
since their version string contains "crosstool" I'm guessing that
they're the right binary. Since both are probably valid, I've chosen the
one that starts with /usr/arm-linux-gnueabihf because it means that we
have to change fewer lines in the Dockerfile.

I've tested to ensure that $PREBUILD_STRIP_BIN --version correctly
runs the binary and returns basic version information, which suggests
that this should Actually Work, For Real This Time.

Problem: The strip binary wasn't found when we looked in the expected
location: `/usr/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-strip`. It's
unclear why this is happening, but we need to change the environment
variable `PREBUILD_STRIP_BIN` so that it points at a valid binary.

Solution: We found three binaries that seem to look like `strip`:

- /usr/arm-linux-gnueabihf/bin/strip
- /usr/bin/arm-linux-gnueabihf-strip
- /usr/bin/x86_64-linux-gnu-strip

The first two are the exact same binary, confirmed with `sha256sum`, and
since their version string contains "crosstool" I'm guessing that
they're the right binary. Since both are probably valid, I've chosen the
one that starts with `/usr/arm-linux-gnueabihf` because it means that we
have to change fewer lines in the Dockerfile.

I've tested to ensure that `$PREBUILD_STRIP_BIN --version` correctly
runs the binary and returns basic version information, which suggests
that this should Actually Work, For Real This Time.
Copy link
Member

@vweevers vweevers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another gold star for you :)

@vweevers vweevers merged commit 4b69593 into prebuild:master Feb 18, 2020
@christianbundy
Copy link
Contributor Author

Thanks for the quick merge!

@vweevers
Copy link
Member

👍 I have to hit the hay. You can send a PR to leveldown in the mean time if you want, I'll then try to get a release out the door tomorrow.

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

Successfully merging this pull request may close these issues.

2 participants