6354 Commits

Author SHA1 Message Date
Max Howell
95eb1b4a5d Remove redundant cflags
-fomit-frame-pointer is included for any optimisation level above O2 (including Os)

Setting MACOS_DEPLOYMENT_TARGET is unecessary if you are just setting it the same as the OS X you are running.
2009-12-02 12:17:14 +00:00
Max Howell
d3a52adce3 Nice the install process
Makes a big difference on OS X, you can still use the GUI and that.
2009-12-02 10:39:26 +00:00
Max Howell
a687871ae1 Alias gcc_4_0_1 to gcc_4_0
This is what we did for gcc_4_2 after all.
2009-12-02 10:39:06 +00:00
Max Howell
e1690dd4aa When not installed to /usr/local use -isystem
This means our include directory is prioritised above all -I but after all other system directories. This is how it should be.

Also helps fix Homebrew/homebrew#113.
2009-12-01 12:07:34 +00:00
Max Howell
4cea6157a1 include FileUtils into Formula
Thus mv, rm etc, functions are almost as handy as pure shell scripting, without issues related to spaces in filenames.
2009-12-01 12:07:34 +00:00
Max Howell
1dc9df13fb We can't rely on the $: order
Some gems and libraries seem to change the order.
2009-12-01 12:07:34 +00:00
Max Howell
9294e19859 brew --config output improved if no GCC 2009-12-01 12:07:34 +00:00
Max Howell
a011dd6762 Direct bug reports to the issues URL 2009-12-01 12:07:33 +00:00
Adam Vandenberg
224beabdd5 Refactor formula_test. 2009-11-19 14:13:31 -08:00
Adam Vandenberg
411874e0b6 Add command 'brew info --all'. 2009-11-19 14:03:08 -08:00
Adam Vandenberg
7366a41268 New command 'brew deps [formula]'
Where brew info will show the next-level-down dependencies, brew deps
will show all of the formulae that a given formula depends on.
2009-11-19 14:03:07 -08:00
Adam Vandenberg
56f82a33b1 Update bash and zsh for 'uses'. 2009-11-19 14:03:07 -08:00
Adam Vandenberg
95e398ab13 Add alias support to formulae
* brew install will find an aliased formula
* aliases are searched against
* warn when creating a new formula that has an existing alias.

If Subversion has an alias "svn", then warn when the user tries to
create a new formula "svn". The formula can still be created, though
the user should make sure it's not a duplicate of the existing
aliased one.

Subversion and Objective-Caml formulas get some alises here, so we have
something to test against.
2009-11-19 14:03:07 -08:00
Adam Vandenberg
af29299f37 Add brew command 'uses'
'uses' shows the formulas that depend on a formula given on the
command-line.
2009-11-19 14:03:07 -08:00
Adam Vandenberg
ed4992f467 Add a Formulary class for managing the Formulae
These methods could be static on Formula, but splitting them out makes
it clear to formular authors that these functions don't have anything
to do with writing new formulas.
2009-11-19 14:03:07 -08:00
Adam Vandenberg
59a686e3c2 Add extra message for unknown commands that are git commands. 2009-11-19 14:03:07 -08:00
Adam Vandenberg
be412369ae Also allow 'brew help'. 2009-11-19 14:03:07 -08:00
Adam Vandenberg
34c213097e Fix when 'edit' if/else indentation 2009-11-19 14:03:06 -08:00
Adam Vandenberg
4fbcf13e65 Move some helper functions into Hardware 2009-11-19 14:03:06 -08:00
Adam Vandenberg
83fc432eab Refactor formula_test. 2009-11-18 15:50:01 -08:00
Adam Vandenberg
6e7731aeff Add test for legacy prefix quoting. 2009-11-18 15:43:00 -08:00
Adam Vandenberg
47a38f49f1 Fix HOMEBREW_BREW_FILE for unit tests. 2009-11-18 15:39:51 -08:00
Adam Vandenberg
bc378d091b Compare against HOMEBREW_CELLAR using real paths.
The code in Keg.self.for path uses "path = path.parent.realpath" to walk
up subfolders looking for a Keg.

Because 'realpath' is in there, and the path is checked against
HOMEBREW_CELLAR, which  may be a symlink, we need to do realpath-to-realpath
comparisons in Keg. Otherwise, we will hit equivalent but symlinked folders,
not see that they are the same, and walk all the way up to / and then
error out.
2009-11-12 12:47:17 -08:00
Max Howell
55f7b826d9 Check for $! before installing
If an exception is thrown while parsing the formula file before the install.rb at_exit then it will be in $!. Marshal it back to the parent brew process.
2009-11-12 01:37:02 +00:00
Max Howell
00e227ac46 More tweaking of main exception handler output 2009-11-12 01:37:02 +00:00
Max Howell
6488212a54 Show kernel architecture in brew --config output 2009-11-11 21:51:44 +00:00
Max Howell
4bd32c615e Fix system() exception showing regression
Rather than showing a backtrace that says "couldn't find command blah". Admittedly it's possible that the error will be something else, but unlikely. And this is neater.

Ideally we'd push the bt through an error pipe like we do with install.rb. And I guess we'll do this eventually.
2009-11-11 19:42:35 +00:00
Max Howell
627034c441 Re-raise SystemExit so the correct exit code is set
The reason we rescue this exception at all is because otherwise our general purpose Exception handler catches it.
2009-11-11 18:56:37 +00:00
Adam Vandenberg
5e915653d7 Be specific about 3.1 point release. 2009-11-11 10:49:01 -08:00
Max Howell
fffa3eb22f dump_config for certain exceptions
Ideally we could do a get request and fill in the issue form at GitHub. Presumably though, we'd only do this if the user typed brew report or somesuch.

Someone should get that implemented!
2009-11-11 18:43:03 +00:00
Max Howell
8c21cd4c64 It's about time we bumped the version eh? 0.5 2009-11-11 18:43:03 +00:00
Max Howell
a0b89fe9a3 Include macports or fink info with brew --config 2009-11-11 18:43:02 +00:00
Max Howell
450845889b Include HEAD SHA with brew --config 2009-11-11 18:37:13 +00:00
Max Howell
45a1a2ba3c Tty.em; bold white underlined 2009-11-11 18:36:50 +00:00
Max Howell
fd3ddf8a72 Disable watch_out_for_spill temporarily
It's a great feature but it seems to conflict with our new system() replacement. Clearly the bug is still in our system() but what exactly it is is not clear and this bug sucks.

See Homebrew/homebrew#124
2009-11-11 17:29:34 +00:00
Max Howell
a46206bdc9 Ignore spill in all /*/Library/Caches 2009-11-11 17:29:34 +00:00
Max Howell
8e3f846911 My idea of tidy, sorry Adam… 2009-11-09 18:48:05 +00:00
Max Howell
b99324fbeb DRY gcc_build and llvm_build 2009-11-09 18:47:26 +00:00
Adam Vandenberg
20d7ef3d45 Add OS X, Ruby, compiler & hardware info to --config 2009-11-09 18:35:39 +00:00
Max Howell
04f3ddeac0 Ignore stdout during GitDownloadStrategy.stage 2009-11-09 18:24:36 +00:00
Max Howell
75c7c942a1 Don't ignore interupts during Formula.system
As I understand it (I tested too), signal propogation is handled by the parent Ruby process. However this was working mostly anyway. So I don't fully understand what is going on. However this seems to not hang in Process.wait where it was before for one test case.
2009-11-09 17:55:13 +00:00
Max Howell
1da26d89ea Don't use Kernel.system much
It just seems to behave strangely with SIGINT. Eg. SIGINT causes tar to exit, but the SIGINT is ignored by our process. This is not the case when used with curl.
2009-11-09 17:55:11 +00:00
Max Howell
590f64e302 Don't error out if .DS_Store is in a keg 2009-11-09 17:55:06 +00:00
Max Howell
20b7fa6ef8 Don't watch for spill for Quicktime stuff 2009-11-08 22:00:03 +00:00
Max Howell
bc364655fc Don't error out before Cellar is created
We need a test for this.
2009-11-08 16:23:08 +00:00
Max Howell
c35887b6f3 Warn users about Xcode versions that are too old
Closes Homebrew/homebrew#116
2009-11-08 16:22:15 +00:00
Max Howell
80b555057c Ignore spill for certain system paths 2009-11-08 15:21:15 +00:00
Max Howell
fe15b9b003 Reap the process or make zombies 2009-11-08 15:21:15 +00:00
Max Howell
96d790edc1 Simplify the library path determination code a little 2009-11-08 15:21:15 +00:00
Max Howell
86516e563f Set ENV[HOMEBREW_BREW_FILE]
Thus install.rb gets the path to the instantiating brew process rather than whichever is first in the PATH. Not to mention Homebrew doesn't *have* to be in the PATH.
2009-11-08 15:21:14 +00:00