5419 Commits

Author SHA1 Message Date
Mike McQuaid
3b8a6c0724 brew-tap-readme: make an internal command. 2014-09-24 15:22:51 -07:00
Mike McQuaid
8b6978b54d Move manpage to Homebrew (from Contributions).
As this is something we support and update.
2014-09-24 15:22:51 -07:00
Mike McQuaid
af8a9ff502 brew-aspell-dictionaries: make a developer command 2014-09-24 15:22:51 -07:00
Mike McQuaid
ce6d76ed1c brew-switch: make an internal command. 2014-09-24 15:22:51 -07:00
Mike McQuaid
3a432bcc2a brew-pull: make an internal command. 2014-09-24 15:22:46 -07:00
Mike McQuaid
706e8abe29 brew-gist-logs: make an internal command. 2014-09-24 15:22:46 -07:00
Mike McQuaid
7989b2169f brew-test-bot: fix error detection logic. 2014-09-24 15:22:46 -07:00
Mike McQuaid
b7c9025d93 brew-test-bot: make an internal command. 2014-09-24 15:22:37 -07:00
Mike McQuaid
05739585d1 Generate RDoc documentation.
This is currently still very messy and we probably want to work out the
best way to declare what parts of our DSL/what files are "public".

Still, even if this is a WIP I'd rather get something committed sooner
rather than later and start iterating on this as a replacement for
`example_formula.rb` and the formula cookbook.

To test:
```bash
cd $(brew --prefix)/Library/Homebrew && \
  rdoc formula.rb requirement.rb utils.rb &&\
  open doc/index.html
```

Closes Homebrew/homebrew#32470.
2014-09-24 15:08:10 -07:00
Mike McQuaid
2df9b0e7ff Revert "Match whitelisted files using fnmatch"
This reverts commit f9c8b5e1da7ac09c85a6ebf9a94624bb9c60bed5.

Closes Homebrew/homebrew#32609.
Closes Homebrew/homebrew#32613.
2014-09-24 15:03:07 -07:00
Mike McQuaid
bc5117b88d Revert "Whitelist OSXFuse headers"
This reverts commit f05d29e3fd0d056b78da6a0b0247e64f91014e04.
2014-09-24 15:03:06 -07:00
Mike McQuaid
068b21db19 Revert "Simplify unbrewed file whitelists"
This reverts commit 2885a92612173f480303b03da1da739eb68550d7.
2014-09-24 15:03:05 -07:00
Mike McQuaid
f9bc7788d2 Revert "Whitelist MacFuse headers"
This reverts commit 6319cac687fa722a1d005fe056e0dac22d91ef9c.
2014-09-24 15:03:04 -07:00
Jack Nagel
959327958c Whitelist MacFuse headers 2014-09-24 15:09:26 -05:00
Jack Nagel
892d7dc130 Simplify unbrewed file whitelists
Only the keys of the hashes are used, so we can just use arrays and
comments instead.
2014-09-24 15:08:19 -05:00
Jack Nagel
f9d5dbb19b Whitelist OSXFuse headers 2014-09-24 14:00:39 -05:00
Jack Nagel
71b0c773ec Match whitelisted files using fnmatch 2014-09-24 14:00:39 -05:00
Jack Nagel
e5c42895a8 Add doctor check for unbrewed header files 2014-09-24 13:16:33 -05:00
Jack Nagel
7b396a5e99 Note that the JDK is required for java dependencies
Closes Homebrew/homebrew#32224.
2014-09-23 20:06:09 -05:00
chdiza
22d8380b05 audit: make has_DATA? ignore commented-out lines
Before this change, audit would detect commented-out lines
containing the string 'DATA' as if there were no commenting.
Then it could complain, e.g., problem "'DATA' was found, but no
'__END__'", which would be a false alarm in that circumstance.

Closes Homebrew/homebrew#32568.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-09-23 15:19:13 -05:00
Jack Nagel
d7dddc8f08 Audit for outdated devel versions 2014-09-23 13:04:55 -05:00
Jack Nagel
d4fad50e76 Update CLT version check 2014-09-21 14:19:48 -05:00
Mike McQuaid
409a7bce96 XQuartz 2.7.7 2014-09-21 10:15:05 -07:00
Mike McQuaid
d4f8931027 Xcode 6.0.1 2014-09-21 10:15:05 -07:00
Jack Nagel
3de77e4e1a Stop recording the fails_with cause internally
The string passed as the cause is currently unused, so we don't need to
actually store it.
2014-09-21 00:57:32 -05:00
Dominyk Tiller
e582d2c87e Boneyarding Metalua
Proposing that we toss Metalua into the boneyard. Reasons:

1) It is hard-coded to look for Lua & Luac binaries, which are
obviously now pointing at Lua (5.2). I tried tweaking those hard-coded
lines with inreplace and had some success, but it still broke on
finding Luac. It complies ‘successfully’, but it won’t do very much.

2) There’s been no stable Metalua release for 5 years.

3) The HEAD build hasn’t worked in at least 8 months because the github
has moved away from compile scripts in favour of becoming Luarocks.

4) Honestly, interest in Metalua seems to be pretty low. If nobody has
noticed the HEAD build has been dead for 8 months…?

I feel like we’d be better scrapping this and pointing people at the
new Luarocks available for Metalua, which are on versions 0.7.2-1
compared to our shipped 0.5-rc2.
2014-09-20 21:44:05 -07:00
Jack Nagel
2d16f8c202 Make Pathname#atomic_write truly atomic
As we know, files cannot be moved across filesystems atomically. In that
case, FileUtils.mv will make a copy. But if we create the temp file in
the same directory as the target, we can avoid this and use File.rename
directly.

Additionally, the rename should be the absolute last step, so that the
original file is preserved if altering ownership and permissions fails.
2014-09-20 17:11:16 -05:00
Jack Nagel
6ad82e65da Don't to_s the cmd parameter in Homebrew.system 2014-09-20 13:53:09 -05:00
Jack Nagel
058f557f6a Stop invoking the editor through an interactive shell
This was added in d2ecfb9 / Homebrew/homebrew#12784 to fix a bug repotted in Homebrew/homebrew#12779, but
at that time we were invoking the editor via `system` rather than
`exec`.

Now we are using exec, and running it through an interactive shell seems
to cause other problems, for example, emacs does not suspend/resume
properly.

Fixes Homebrew/homebrew#32328.
2014-09-20 11:42:19 -05:00
Jack Nagel
2dfc8c8352 Whitelist oxsfuse files since we support externally installed oxsfuse 2014-09-19 23:20:12 -05:00
Jack Nagel
d6bceebeca Clarify "could not tap" warning
Closes Homebrew/homebrew#31451.
Closes Homebrew/homebrew#32223.
2014-09-19 18:22:48 -05:00
Mike McQuaid
202a8bd29e caveats: check if plist is a symlink.
Avoid problems like Homebrew/homebrew#32367.
2014-09-19 11:20:16 +01:00
Jack Nagel
fef8b0871d Remove obsolete nil guard
This was added in 3a7a3619f7016c75c3e53e944221bf7f6354a63b to make the
tests pass, but this method is now stubbed out in the tests, so we can
assume $? will be non-nil.
2014-09-18 21:56:48 -05:00
Jack Nagel
2f74d86fcc Make install name debug output more readable 2014-09-18 21:36:46 -05:00
Jack Nagel
56dd575f96 Pass command and arg list into ErrorDuringExecution constructor 2014-09-18 20:32:50 -05:00
Jack Nagel
662f887e9a Call reset in the superclass implementation of setup_build_environment 2014-09-18 16:44:20 -05:00
Jack Nagel
c5f2f6b539 Make --cc override the compiler selector 2014-09-18 15:50:54 -05:00
Jack Nagel
04dae13ae7 Replace CompilerQueue with predetermined priority lists 2014-09-18 15:50:54 -05:00
Jack Nagel
288c7974dc Move Compiler struct into CompilerSelector namespace 2014-09-18 15:50:54 -05:00
Jack Nagel
ae88549797 Remove fails_with? from the formula instance 2014-09-18 15:50:54 -05:00
Jack Nagel
84352d2728 Delay requiring irb until runtime
Fixes Homebrew/homebrew#32410.
2014-09-18 15:29:10 -05:00
Jack Nagel
c8bb68a795 Fix exiting the debugger menu with CTRL-D 2014-09-18 14:16:07 -05:00
Jack Nagel
79a6e59e6e Implement brew test --debug 2014-09-18 14:16:07 -05:00
Jack Nagel
1abcb0b348 Remove workaround for old debugger 2014-09-18 14:16:07 -05:00
Jack Nagel
3bbc9998a5 Rewrite debugger to remove monkeypatches and use of call/cc 2014-09-18 14:16:07 -05:00
Jack Nagel
67a9164278 Disable outdated Xcode doctor checks until the bots are updated 2014-09-18 10:35:59 -05:00
Jack Nagel
35618c8bfe Xcode 6.0.1
Closes Homebrew/homebrew#32394.
2014-09-18 10:21:49 -05:00
Jack Nagel
72d74053a2 Fix variable shadowing bug in requirement expansion
Long term we should probably rename the installer's "f" attribute to
"formula".
2014-09-16 22:32:18 -05:00
Jack Nagel
e717508b7b audit: access the homepage attribute once 2014-09-14 15:43:20 -05:00
Jack Nagel
f3b7c3236b Consistently call name on formula instead of relying on to_s 2014-09-14 11:19:30 -05:00