6622 Commits

Author SHA1 Message Date
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
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
Mike McQuaid
0031e1947d brew-test-bot: build changed dependencies first.
And don't uninstall them in-between. This should fix the issues where
if e.g. OpenSSL changes in a pull request then it's only the dependents
after it alphabetically would be built against the new version.
2014-09-16 09:59:09 +01:00
Mike McQuaid
babcad25e3 brew-test-bot: add --dry-run mode. 2014-09-15 14:23:12 +01: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
Jack Nagel
976bb9b057 Print each line of --env output atomically 2014-09-14 01:39:38 -05:00
Jack Nagel
529b060dbb Remove unnecessary conditional
If ARGV.named.empty?, then ARGV.formulae.map(&:name) == [].
2014-09-14 01:26:45 -05:00
Jack Nagel
081036c81c Remove InstallationError superclass
None of these subclasses share any behavior other than what is inherited
from RuntimeError, so we can just get rid of the superclass.
2014-09-14 01:10:20 -05:00
Jack Nagel
909c2bd59e Replace loop + delete with array difference 2014-09-13 20:04:05 -05:00
Jack Nagel
2332e6525d Remove unused attribute from BuildError 2014-09-13 19:49:27 -05:00
Jack Nagel
a607c71123 Pass the ENV hash into the BuildError constructor 2014-09-13 19:47:30 -05:00
Jack Nagel
20516ee39b Use the superclass properly 2014-09-12 21:31:48 -05:00
Jack Nagel
1f3bbe64e0 Make parameter names match superclass parameter names 2014-09-12 21:31:48 -05:00
Jack Nagel
c85c165fe9 Remove default argument from Homebrew::InstallationError
This class is never instantiated directly, and all subclasses
initializers have different signatures and do not rely on this.
2014-09-12 21:26:24 -05:00
Jack Nagel
1ace6f147d Make exception subclasses use their superclass properly 2014-09-12 21:24:56 -05:00
Jack Nagel
ddeac0284b Don't use undent on keg-only reasons
It will cut off the beginning of any interpolated lines.

Fixes Homebrew/homebrew#32259.
2014-09-12 20:54:41 -05:00
Jack Nagel
759b6ce1a9 Use safe_system when invoking install_name_tool 2014-09-11 23:26:48 -05:00
Jack Nagel
1e537b5797 Use multiple-argument form of quiet_system 2014-09-11 23:25:18 -05:00
Jack Nagel
28c1c4ee15 Use only strings in ENV.x11 2014-09-11 16:56:21 -05:00
Jack Nagel
1c5995776f The build environment should only deal with strings 2014-09-11 16:50:56 -05:00
Jack Nagel
c98fe91f13 Don't directly assign Pathname objects to environment variables
Fixes Homebrew/homebrew#32234.
2014-09-11 16:50:56 -05:00
Jack Nagel
c5885757e5 Store the object itself in the failed download set
Patches don't respond to "name".
2014-09-10 22:09:15 -05:00
Mike McQuaid
9531ecc72a Use bundler for test gem dependencies.
Closes Homebrew/homebrew#31986.
References Homebrew/homebrew#31981.
2014-09-10 13:29:14 +01:00
Dominyk Tiller
8205ebabcb Prefer Xcode 6.1 on 10.10
More Yosemite changes. Within two weeks or so, Xcode should be made
available on the App Store, at which point 10.9 will need to go from
“5.1.1” to “6.0” but whilst Yosemite is in Beta *everyone* should be
using the Xcode Beta builds according to Apple, so Yosemite should be
on 6.1 for the foreseeable, even when Apple releases Xcode 6.0 to 10.9
& below. 6.1 is still using the same Clang version number at this point.

Closes Homebrew/homebrew#32201.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-09-10 00:44:37 -05:00