Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

watchman: 2.5.1 - file watching service. #20349

Closed
wants to merge 9 commits into from

Conversation

dsummersl
Copy link
Contributor

Created a new formula for Facebook's file watching service.

Created a new formula for Facebook's file watching service.
Updated formula based on reviewer feedback:
 * Added runtime dependency pcre
 * Opened a support ticket with watchman for the weird compilation issue that
   requires two `make` commands to be issued.
 * Moved post build details to a caveat section.
Added patch provided by watchman maintainers to fix broken make command. See URL
provided in the change set.
@dsummersl
Copy link
Contributor Author

I've added a patch to the formula provided by the maintainers for the broken make command.

end

test do
# TODO testing requires 'arc': https://github.com/facebook/watchman#tools
Copy link
Contributor

Choose a reason for hiding this comment

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

There are scripts under travis/ that fetch and run the tests for the travis environment; I'm happy to take a patches that tweak them to run for homebrew (probably just to skip the top half of travis/deps.sh)

@wez
Copy link
Contributor

wez commented Jun 9, 2013

I tagged and pushed v2.6 with the build fix so that you can de-cruft your build formula; thanks!

@dsummersl
Copy link
Contributor Author

Thanks wez! I'll test/try the 2.6 tag and checkout the travis scripts.

Changes:
 * Updated to v2.6.
 * Removed patch for makefile (no longer needed).
 * Changed pcre dependency to recommended, and modified configuration step to
   account for its presence.
@dsummersl
Copy link
Contributor Author

I've updated to v2.6 (removed patch to makefile).

At this point I haven't added the test phase - it requires a couple more packages (arcanist and libphutil) that aren't in brew. To test correctly with these libraries I think I'd need to make formulas for those dependencies as well?

@wez
Copy link
Contributor

wez commented Jun 10, 2013

FWIW, from my perspective, you shouldn't need to run the tests if you are installing a tagged release (we shouldn't release it if it is known broken!), so I consider the test portion of this something that could be implemented later, if at all.

# display OSX specific notes about file handle size limits:
<<-EOS.undent

The default per-process descriptor limit on current versions of OS X is
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this documentation exist on the web somewhere we can provide a link to?

Choose a reason for hiding this comment

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

Yes, and a link is provided right before the end of the section.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sid0 is right - I provided a link to the documentation in the caveats section - should it go somewhere else?

Copy link
Contributor

Choose a reason for hiding this comment

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

If this block of text is available at the URL provide, let's not duplicate the block of text in the formula.

Copy link
Member

Choose a reason for hiding this comment

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

One sentence and a link should suffice.

@dsummersl
Copy link
Contributor Author

Is there anything else I need to do for this before it is accepted?

@adamv
Copy link
Contributor

adamv commented Jul 30, 2013

Remove the failing test and squash to a single commit for review

@wez
Copy link
Contributor

wez commented Jul 31, 2013

Note that we're going to tag 2.8 in the next day or two; you should probably verify it against master

@sunshowers
Copy link

2.8 turned out to be a little broken, so we've tagged 2.8.1. Please update your patch to use that.

def install
system "./autogen.sh"
if build.with? 'pcre'
system "./configure", "--disable-debug", "--disable-dependency-tracking",
Copy link
Contributor

Choose a reason for hiding this comment

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

Build a list of arguments in an args array, and conditionally add --with-pcre if needed.

@dsummersl
Copy link
Contributor Author

wez and sid0 - I've tried 2.8 and 2.8.1, neither of them compile for me. I was however able to compile 2.6 and 2.7 - I've opened a bug over on watchman's site: facebook/watchman#9

@dsummersl dsummersl mentioned this pull request Aug 2, 2013
@dsummersl
Copy link
Contributor Author

Squashed and issued new pull request: #21611

@dsummersl dsummersl closed this Aug 2, 2013
@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants