Make "pgroonga" 0.9.0 to be optional resource in postgresql formula #44739
Make "pgroonga" 0.9.0 to be optional resource in postgresql formula #44739
Conversation
63cd957
to
d156773
Compare
|
This PR should solve sandbox issue, but test-bot CI reports tests failure. |
| depends_on "openssl" | ||
| depends_on "readline" | ||
| depends_on "libxml2" if MacOS.version <= :leopard # Leopard libxml is too old | ||
| depends_on :python => :optional | ||
| depends_on "groonga" => :build if build.with? "pgroonga" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If two variables are the same block them:
if build.with? "pgroonga"
depends_on "groonga" => :build
depends_on "pkg-config" => :build
end
On El Capitan it's using the deprecated system OpenSSL instead of ours. It probably needs something like The other failure is a sandbox failure elsewhere, with the test trying to use a configuration file we no longer permit: |
c74f13a
to
ea43ed2
Compare
|
| # Now build and install pgroonga as optional resource | ||
| if build.with? "pgroonga" | ||
| resource("pgroonga").stage do | ||
| ENV.append_path "PATH", Formula["postgresql"].bin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be just bin here. You don't need Formula["postgresql"] to point itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've confirmed that building pgroonga succeeded using bin here.
|
Also our CI won't test non default option. So you should test this locally. |
I'm not sure it's worth adding tests for non-default options. We've refused to do this several times over the last couple months even because it opens the floodgates to having a test element for every option even though we'd never use it. Has our position changed here? |
I was unaware this. Please ignore my comment on adding new test. But still this option need to be tested locally. |
|
I'm fine if we want to have that team discussion; just didn't know if I'd missed something somewhere :) |
This reverts commit ea43ed2. with-openssl does not assume argument.... :/
Hmm, |
|
@BrewTestBot test this please |
|
This is passing the CI now. The OpenSSL issue got fixed with the version bumps & changes merged yesterday. How does |
Ah..., yes. Is this not suitable for Homebrew's policy? |
|
It's fine if that's the case. Just wanted to check it was installing into the prefix and not a generic |
|
Merged in 022faf8. Thank you for another contribution to Homebrew @cosmo0920 🌟 |
|
Thanks! I'm appreciate to make to be pgroonga optional resource in postgresql formula! |
Revised #41174 with
optional resourcetechnique.