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

poac 0.1.2 (new formula) #36880

Closed
wants to merge 3 commits into from
Closed

poac 0.1.2 (new formula) #36880

wants to merge 3 commits into from

Conversation

ken-matsui
Copy link
Contributor

  • Have you followed the guidelines for contributing?
  • 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 <formula>)?

@BrewTestBot
Copy link
Member

  • Dependency 'llvm' may be unnecessary as it is provided by macOS; try to build this formula without it.

@ken-matsui
Copy link
Contributor Author

ken-matsui commented Feb 11, 2019

@fxcoudert
Because std::visit is not implemented, get an error if without 'llvm' from dependency...
What would be the best thing to do?

@fxcoudert fxcoudert added the new formula PR adds a new formula to Homebrew/homebrew-core label Feb 11, 2019
Formula/poac.rb Outdated
depends_on "yaml-cpp"

def install
mkdir "bulid" do
Copy link
Member

Choose a reason for hiding this comment

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

build :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, thank you!


def install
mkdir "bulid" do
system "cmake", "..", *std_cmake_args
Copy link
Member

Choose a reason for hiding this comment

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

Somehow it looks like it is hardcoding the compiler path?

/usr/local/opt/llvm/bin/clang++  -DPOAC_PROJECT_ROOT=\"/tmp/poac-20190211-22098-1vavzz3\" -DPOAC_VERSION=\"0.1.2\" -I/usr/local/include -I/usr/local/opt/openssl/include  -std=c++17 -pthread -I/usr/local/opt/llvm/include -DNDEBUG   -fdiagnostics-color -Wall -Wextra -Werror -o CMakeFiles/poac.dir/main.cpp.o -c /tmp/poac-20190211-22098-1vavzz3/main.cpp
make[2]: /usr/local/opt/llvm/bin/clang++: No such file or directory
make[2]: *** [CMakeFiles/poac.dir/main.cpp.o] Error 1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I get the following error in case of no hardcoding the compiler path.

Call to unavailable function 'visit': introduced in macOS 10.14

Therefore, if macOS is not 10.14, able to build by using to llvm.

end

test do
assert_match /Usage/, shell_output("#{bin}/poac --help")
Copy link
Member

Choose a reason for hiding this comment

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

We need a test that exercises the some of the functionality of the app.

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

@ken-matsui
Copy link
Contributor Author

@fxcoudert
Is it possible to BrewTestBot pass through even if it depends on llvm?
If it is not possible, please close this.

@fxcoudert fxcoudert closed this Feb 22, 2019
@lock lock bot added the outdated PR was locked due to age label Mar 24, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 24, 2019
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants