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

odin: added odin libraries for linux #182310

Merged
merged 2 commits into from
Sep 11, 2024

Conversation

xakep8
Copy link
Contributor

@xakep8 xakep8 commented Aug 24, 2024

  • Have you followed the guidelines for contributing?
  • Have you ensured that your commits follow the commit style guide?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?

Closes #182068

I've added the vendor libraries for linux and built them and also changed the test to verify it on linux.

@github-actions github-actions bot added the autosquash Automatically squash pull request commits according to Homebrew style. label Aug 24, 2024
@xakep8 xakep8 changed the title added odin vendor libraries for linux #182068 odin: added odin libraries for linux Aug 24, 2024
Copy link
Contributor

Thanks for contributing to Homebrew! 🎉 It looks like you're having trouble with a CI failure. See our contribution guide for help. You may be most interested in the section on dealing with CI failures. You can find the CI logs in the Checks tab of your pull request.

@xakep8 xakep8 marked this pull request as draft August 24, 2024 18:53
@SMillerDev
Copy link
Member

The solution is not to duplicate the block, but to figure out which parts should only be on macOS and make the rest unconditional. It also needs test adjustments so we know it works.

@github-actions github-actions bot added the automerge-skip `brew pr-automerge` will skip this pull request label Aug 25, 2024
@xakep8
Copy link
Contributor Author

xakep8 commented Aug 26, 2024

@SMillerDev Do I need to update the test?

@SMillerDev
Copy link
Member

Yes, because without it there is no way to know if this works

@xakep8 xakep8 force-pushed the odin_vendor_libraries_for_linux branch from 2848068 to ad692a8 Compare August 27, 2024 12:29
@github-actions github-actions bot removed the automerge-skip `brew pr-automerge` will skip this pull request label Aug 27, 2024
@xakep8 xakep8 force-pushed the odin_vendor_libraries_for_linux branch 3 times, most recently from 588ab6a to e68fa14 Compare August 27, 2024 18:27
@xakep8 xakep8 marked this pull request as ready for review August 27, 2024 19:34
Formula/o/odin.rb Outdated Show resolved Hide resolved
Formula/o/odin.rb Outdated Show resolved Hide resolved
@xakep8 xakep8 force-pushed the odin_vendor_libraries_for_linux branch 3 times, most recently from 2f525c7 to b912b6a Compare September 4, 2024 19:15
@xakep8 xakep8 force-pushed the odin_vendor_libraries_for_linux branch from b912b6a to b24d467 Compare September 6, 2024 12:10
@xakep8
Copy link
Contributor Author

xakep8 commented Sep 6, 2024

@SMillerDev I have made the changes and as per @laytan the issue with the shared library is an upstream issue with odin, is there any more change required to the code?

@xakep8 xakep8 force-pushed the odin_vendor_libraries_for_linux branch from b24d467 to 6b05bb4 Compare September 8, 2024 14:40
@github-actions github-actions bot removed the autosquash Automatically squash pull request commits according to Homebrew style. label Sep 8, 2024
Copy link
Member

@carlocab carlocab left a comment

Choose a reason for hiding this comment

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

Thanks for your work here; this is looking good. Let's just DRY it up.

Formula/o/odin.rb Outdated Show resolved Hide resolved
Formula/o/odin.rb Outdated Show resolved Hide resolved
Formula/o/odin.rb Outdated Show resolved Hide resolved
Formula/o/odin.rb Outdated Show resolved Hide resolved
Formula/o/odin.rb Outdated Show resolved Hide resolved
@xakep8 xakep8 force-pushed the odin_vendor_libraries_for_linux branch from 6b05bb4 to a4821e5 Compare September 11, 2024 10:20
Copy link
Member

@carlocab carlocab left a comment

Choose a reason for hiding this comment

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

Thanks, looking good! A few minor tweaks.

After applying these, please run

brew style --fix odin

to fix any remaining brew linter issues.

Formula/o/odin.rb Outdated Show resolved Hide resolved
Formula/o/odin.rb Outdated Show resolved Hide resolved
Formula/o/odin.rb Outdated Show resolved Hide resolved
@xakep8 xakep8 force-pushed the odin_vendor_libraries_for_linux branch 2 times, most recently from b74d29a to 14dfa31 Compare September 11, 2024 10:50
Formula/o/odin.rb Outdated Show resolved Hide resolved
Formula/o/odin.rb Outdated Show resolved Hide resolved
Formula/o/odin.rb Outdated Show resolved Hide resolved
@xakep8
Copy link
Contributor Author

xakep8 commented Sep 11, 2024

@carlocab I've made all the requested changes and I am pushing my new code in a bit kindly review that for any changes required.

Linked back the vendor libraries for odin on linux. Use of shared library is still not working as it is an upstream issue.
Closes Homebrew#182068

odin: added vendor deps and build from source for odin

odin: changes .dylib to .so

odin: fixed lint

odin: fixed lint

odin: attempted fixes for macos-arm64

odin: attempted fixes for macos-arm64

odin: attempted fixes for macos-arm64

odin: attempted fixes for macos-arm64

odin: added tests to verify it runs on linux

odin: fixed tests for linux

odin: fixed tests for linux

Fixed all tests for linux.
Closes Homebrew#182068

odin: fixed tests

Fixed tests for linux.
Closes Homebrew#182068

odin: fixes shared library on linux

Closes Homebrew#182068
The tags during the building and linking phase where placed in the wrong way and the gcc compiler was not treating the linking of the shared objects as a shared library. Fixed them and all tests run perfectly.

odin: changed the structure to if...else... block

changed the structure of code as per review.

odin: fixed all tests

Closes Homebrew#182068
Fixed all tests. The shared library test fails because of issue with odin.

odin: changed the code to make build steps unconditional

odin: fixed styling issues.

odin: made the requested changes.

odin: fixed linting issues.
@xakep8 xakep8 force-pushed the odin_vendor_libraries_for_linux branch from 14dfa31 to b13a6ef Compare September 11, 2024 11:00
Copy link
Member

@carlocab carlocab left a comment

Choose a reason for hiding this comment

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

Thank you; very nice work!

Copy link
Contributor

🤖 An automated task has requested bottles to be published to this PR.

@github-actions github-actions bot added the CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. label Sep 11, 2024
@BrewTestBot BrewTestBot added this pull request to the merge queue Sep 11, 2024
Merged via the queue into Homebrew:master with commit c14f1e1 Sep 11, 2024
15 checks passed
@xakep8 xakep8 deleted the odin_vendor_libraries_for_linux branch September 13, 2024 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

odin: vendor libraries are not available on Linux
6 participants