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

Include an arm64 shared library in the ruby gem #1733

Merged
merged 24 commits into from
Jan 13, 2024

Conversation

jdeff
Copy link
Contributor

@jdeff jdeff commented Dec 1, 2023

When running a Ruby on Rails application using Docker for Mac on my Apple Silicon machine, I am unable run oso because the shared library for linux included in the gem, libpolar.so, only supports x86_64 and my container is arm64. This change compiles both an x86_64 shared lib as well as a new aarch64 shared lib and adds them both to the gem.

PR checklist:

  • Added changelog entry.

Copy link

github-actions bot commented Dec 1, 2023

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@jdeff
Copy link
Contributor Author

jdeff commented Dec 1, 2023

I have read the CLA Document and I hereby sign the CLA

@jdeff jdeff changed the title Include an arm64 support in ruby Include an arm64 shared library in the ruby gem Dec 1, 2023
jdeff added 3 commits December 1, 2023 10:18
…asks

Rationale: 2.6.10 is what ships with macOS 14.0 even though support for it
stopped in March of 2022 and 3.2 is the latest stable version.
@jdeff jdeff force-pushed the arm64-support-in-ruby branch from 39ca190 to c1a839a Compare December 1, 2023 15:23
@jdeff jdeff marked this pull request as ready for review December 1, 2023 22:06
jdeff added 8 commits December 1, 2023 18:32
Disable new cops for existing violations
Add the host and bindings parameters so calls that contain them don't fail typecheck
…Github actions

The rationale for this is from the way that docs diffing works. Both the base branch and the new branch need to be able to build using the version of Ruby supported by that branch. Without this change, when a PR is introduced that updates the target Ruby version, a followup PR will be required to update the github action for building the 'base' branch's version of the docs. With this change, github actions will choose the version of Ruby targeted by the branch it is trying to build
@jdeff
Copy link
Contributor Author

jdeff commented Dec 11, 2023

Any thoughts on this PR? Maybe @gj?

@jdeff
Copy link
Contributor Author

jdeff commented Jan 5, 2024

Another friendly ping on this change. Any questions or concerns @gj? I understand the project is going to be deprecated, but we would still find this change useful.

@gj
Copy link
Member

gj commented Jan 6, 2024

Hey @jdeff, thanks for the follow-up, and I'm sorry for not responding sooner. I don't have any concerns; just need to test it out.

@gj
Copy link
Member

gj commented Jan 10, 2024

Hi @jdeff, this keeps getting bumped as other stuff comes up, but I will get to it. Hopefully this week.

gj added 4 commits January 11, 2024 23:36
Seeing if
[this](cross-rs/cross#724 (comment))
is a quick fix so I can avoid any deeper debugging.
This reverts commit 7feebd1.
Copy link
Member

@gj gj left a comment

Choose a reason for hiding this comment

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

Tested locally; LGTM!

@gj gj merged commit b545cf5 into osohq:main Jan 13, 2024
10 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 13, 2024
@jdeff jdeff deleted the arm64-support-in-ruby branch January 23, 2024 18:15
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