-
Notifications
You must be signed in to change notification settings - Fork 10.9k
[Ruby] remove manual strip in ruby ext conf #33641
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
Conversation
de22278
to
f37c483
Compare
f37c483
to
f2378b6
Compare
Are we certain that the gem binary size didn't change? (especially on linux x86_64) |
Yes, there is the artifact link in the PR summary, the sizes are comparable to the build prior to this PR or the release packages in rubygems.org. |
Custom strip invalidates the signature, caused the arm64-darwin gem failed to run on M1 macs. Error in mac console: `Exception Type: EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))` Warning in gem build log: ``` # linking shared-object grpc/grpc_c.bundle # Stripping grpc_c.bundle # /opt/osxcross/target/bin/aarch64-apple-darwin20.2-strip: warning: changes being made to the file will invalidate the code signature in: /Users/jeff/work/ruby/grpc/tmp/arm64-darwin/grpc_c/3.2.0/grpc_c.bundle ``` Custom stripping is not really needed (any more), this diff removes it from `src/ruby/ext/grpc/extconf.rb`, the [gem artifact](https://console.cloud.google.com/storage/browser/grpc-testing-kokoro-prod/test_result_public/prod/grpc/core/pull_request/linux/grpc_distribtests_ruby/19833/20230708-181642/github/grpc/artifacts?pageState=(%22StorageObjectListTable%22:(%22f%22:%22%255B%255D%22))&prefix=&forceOnObjectsSortingFiltering=false) size didn't change and arm64-darwin gem runs fine on M1 mac. fixes: grpc#28631 fixes: grpc#29100
Please note that I'm in the process of fixing stripping upstream in rake-compiler-dock ... rake-compiler/rake-compiler-dock#104 I could have fixed it sooner if someone had filed an issue! 🤷 |
Custom strip invalidates the signature, caused the arm64-darwin gem failed to run on M1 macs.
Error in mac console:
Exception Type: EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))
Warning in gem build log:
Custom stripping is not really needed (any more), this diff removes it from
src/ruby/ext/grpc/extconf.rb
, the gem artifact size didn't change and arm64-darwin gem runs fine on M1 mac.fixes: #28631
fixes: #29100