6206 Commits

Author SHA1 Message Date
Adam Vandenberg
aea849109d Redact electric-fence
Closes Homebrew/homebrew#31203.
2014-09-24 20:03:34 -07:00
Jack Nagel
799a2a456e Use Dir.glob and array operations to remove whitelisted files 2014-09-24 19:58:10 -05:00
Jack Nagel
586756209c Dir.exist? is not in 1.8 2014-09-24 17:51:36 -05:00
Jack Nagel
612da7c3b0 Make sure the directory exists before chdir 2014-09-24 17:40:17 -05:00
Jack Nagel
0d370bc329 Revert "Revert "Whitelist MacFuse headers""
This reverts commit e81b82cc725ede00c1292a50a076bb8a652ccecd.
2014-09-24 17:40:17 -05:00
Jack Nagel
e603704e41 Revert "Revert "Simplify unbrewed file whitelists""
This reverts commit 338a451a47c884eb9ca96d7b0023417a1eaa4d3d.
2014-09-24 17:40:17 -05:00
Jack Nagel
1bd76b9a6e Revert "Revert "Whitelist OSXFuse headers""
This reverts commit f96ed45fe19855d0f8acc37d5d77d16d607dfce3.
2014-09-24 17:40:16 -05:00
Jack Nagel
ad8556ccea Revert "Revert "Match whitelisted files using fnmatch""
This reverts commit 91be9f5344d5931ddae6e4f905c18a607fa9e9f1.
2014-09-24 17:40:16 -05:00
Mike McQuaid
dfce2bb7c7 brew-man: Rubify, make an internal command.
Closes Homebrew/homebrew#32472.
2014-09-24 15:23:33 -07:00
Mike McQuaid
86ded7833c brew-cleanup-installed: Rubify, make internal cmd. 2014-09-24 15:22:59 -07:00
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
bd8559c791 brew: add contributed tap commands to PATH.
This means that taps root and `cmd` directories are added to the PATH.

This should enable migration of some of our contributed commands into
taps (e.g. `homebrew-boneyard`) and make it easy for third parties to
be able to maintain these. It might also make stuff easier for existing
tools like e.g. `brew-cask` and `boxen`.

Closes Homebrew/homebrew#32471.
2014-09-24 15:14:16 -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
a6a4cd4c91 Remove incorrect comment from example formula
You can use any number of "/" operators, just as you can "+".
2014-09-20 00:44:52 -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
7a4e2fe24d Update brew-test-bot for compiler selection changes 2014-09-18 17:07:11 -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