-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
geocouch: fix multiple audit warnings (mostly concerning using system… #436
Conversation
… file operations instead of Ruby methods)
This probably isn't worth putting much effort into. Thinking about killing it off. |
Oh ok. Didn't take too much effort though :) |
@@ -137,4 +139,6 @@ def caveats; <<-EOS.undent | |||
run 'brew info geocouch'.) | |||
EOS | |||
end | |||
|
|||
test {} |
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.
Can this test be modified to do something more substantial than e.g. --version
or --help
? See cmake.rb
for an example of an application formula with a good test and tinyxml2.rb
for an example of a library formula with a good test. Thanks!
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.
Thank you for the response. So, what's the preferred action plan for now? Should I enhance this now or wait until it's merged into couchdb formula?
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.
You can just wait until it's merged in to couchdb
. We'll take care of most of the audit problems as part of that merge, and the code will change enough that you'll need to restart from the new formula, if there's any more work to be done.
What would be very helpful is if you could help us devise a test for the geocouch
component of couchdb
. Is there something simple we can run against couchdb
to verify that the geocouch
extension has been installed and is working? Something "Hello world" level. If you have ideas, drop them in comments on #475.
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.
Actually, I'm not a user of couchdb or geocouch, but I can research it and think of some simple test cases, sure. I'll keep in touch
The main issue can be seen by doing |
Briefly scanning this formula, it's troubling. Not only it violates sandbox by almost rewriting other formula's installation, but also it tries to call I suggest to either kill this formula, or put it as an option of couchdb. |
This seems like the best idea to me 👍 |
Or there is a third option. Treating it as a modified version of couchdb. i.e. to install its own copy of couchdb and mark it conflicting with the original version of couchdb. |
The conflicting modified version of couchdb would probably be a bummer: there's no "provides couchdb", so anything that |
Here's a PR to fold I don't have a test for it though. Anyone here enough of a GeoCouch user that they could describe how to do a "Hello World" for it? |
Just want to add an caveat, we could introduce a Generally speaking, either combining two formulae as one or treating them as conflicted versions have each their own pros and cons. And I have no strong opinion on which approach is better. |
Passing on this for now in favour of #475. Thanks for the PR, @Abashinos! |
Fixes issues with couchdb/geocouch's installation model not working with Homebrew sandboxing. Closes #436 Fixes #471 Closes #475. Signed-off-by: Andrew Janke <[email protected]>
brew audit --strict --online <formula>
(where<formula>
is the name of the formula you're submitting)?brew install <formula>
?Fixed several warnings in audit for this formula. Replaced system calls to
cd
andln
commands with Ruby methods. Updated sha256 to match current one fetched from url.