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

clang-build-analyzer 1.4.0 (new formula) #121315

Closed
wants to merge 1 commit into from

Conversation

ktf
Copy link
Contributor

@ktf ktf commented Jan 23, 2023

  • 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 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 brew install --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?

@BrewTestBot BrewTestBot added the new formula PR adds a new formula to Homebrew/homebrew-core label Jan 23, 2023
@SMillerDev
Copy link
Member

  ==> Testing clang-build-analyzer
  ==> c++ -c -ftime-trace /tmp/clang-build-analyzer-test-20230123-5633-12u1prm/test.cxx
  c++: error: unrecognized command-line option ‘-ftime-trace’

@BrewTestBot BrewTestBot added the macos-only Formula depends on macOS label Jan 23, 2023
@ktf
Copy link
Contributor Author

ktf commented Jan 23, 2023

‘-ftime-trace’ is there only for clang. I made the recipe macOS only.

@ktf
Copy link
Contributor Author

ktf commented Jan 23, 2023

Now it passes all the tests.

Formula/clang-build-analyzer.rb Outdated Show resolved Hide resolved
Formula/clang-build-analyzer.rb Outdated Show resolved Hide resolved
Formula/clang-build-analyzer.rb Outdated Show resolved Hide resolved
Formula/clang-build-analyzer.rb Outdated Show resolved Hide resolved
Formula/clang-build-analyzer.rb Outdated Show resolved Hide resolved
def install
system "cmake", "-S", ".", "-B", "build", *std_cmake_args
system "make", "-C", "build"
bin.install ["build/ClangBuildAnalyzer"]
Copy link
Member

Choose a reason for hiding this comment

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

Why aren't we using an install target?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@BrewTestBot BrewTestBot removed the macos-only Formula depends on macOS label Jan 24, 2023
@ktf
Copy link
Contributor Author

ktf commented Jan 24, 2023

Thank you for your review and changes. There was no particular reason for doing things as they were done, just inexperience with brew Formulas. I have applied all the suggested changes and squashed everything again in one single commit.

@ktf
Copy link
Contributor Author

ktf commented Jan 24, 2023

All the tests green again.

Formula/clang-build-analyzer.rb Outdated Show resolved Hide resolved
homepage "https://github.com/aras-p/ClangBuildAnalyzer"
url "https://github.com/aras-p/ClangBuildAnalyzer/archive/v1.4.0.tar.gz"
sha256 "dae8e7838145a72c01c397c3998d9f6801fc4dc819d552010d702cab7dede530"
license "Unlicense"
Copy link
Member

Choose a reason for hiding this comment

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

This does not seem accurate since the source includes third-party sources with different licenses.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What should I do in that case? Have all the licenses as a list?

Copy link
Member

Choose a reason for hiding this comment

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

Yes. You can use the all_of: syntax to specify an array of licenses.

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.

LGTM. Thanks!

@carlocab carlocab added the ready to merge PR can be merged once CI is green label Jan 26, 2023
@ktf
Copy link
Contributor Author

ktf commented Jan 26, 2023

Thank you for the detailed review.

@BrewTestBot
Copy link
Member

:shipit: @chenrui333 has triggered a merge.

@chenrui333
Copy link
Member

@ktf, thanks for your contribution to Homebrew! 🎉 🥇

Without awesome contributors like you, it would be impossible to maintain Homebrew to the high level of quality users have come to expect. Thank you!!!!

@github-actions github-actions bot added the outdated PR was locked due to age label Feb 26, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
new formula PR adds a new formula to Homebrew/homebrew-core outdated PR was locked due to age ready to merge PR can be merged once CI is green
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants