24630 Commits

Author SHA1 Message Date
Max Howell
dfe1eb31ca Blacklist lzma since it was removed
Now when people search for it or try to install it they will receive a helpful message.
2011-08-31 13:02:23 +01:00
Eugene Ray
b6fa7ebcca Fix Xcode 4.2 cc compiles
It seems like latest build of Xcode 4.2 doesn't create "-4.2" links in /usr/bin. Because of this recipes fail with "configure: error: C compiler cannot create executables" error.

Closes Homebrew/homebrew#7254.
Closes Homebrew/homebrew#7276.

Signed-off-by: Max Howell <max@methylblue.com>

Amended to work as intended, since /usr/bin/cc is actually since Xcode 4.

Amended commit message. First line must be less than 72 characters! :P
2011-08-31 11:16:56 +01:00
Jan Lehnardt
27fd2d7a70 fix version parser for upcoming erlang bottle
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2011-08-31 08:57:30 +01:00
Charlie Sharpsteen
2e0a2cb175 formula.rb: Don't curl when DATA is the only patch
Executing `curl(*patches)` was failing on Leopard when `patches` was an empty
list. `git-bisect` identified 48552bb42a69ece4eb2a6d9acf81a0b47adb19c9 as the
commit that caused this bug to surface by adding `--insecure` to the arg list
on Leopard. This is odd because the following both exit with status 2:

    curl
    curl --insecure

The only apparent difference is that `curl --insecure` prints "no URL
specified!" to stderr along with the usage message.

Also renamed `patches` to `external_patches` as it is more descriptive.
2011-08-29 15:01:38 -07:00
Jack Nagel
864c81a61b Fix alpha-order mistake in brew bash-completion
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-08-29 10:31:45 -05:00
Jack Nagel
dde71e97e7 Add upgrade to the bash-completion script
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-08-28 14:12:53 -05:00
Max Howell
de56768c6e Prune LinkedKegs too 2011-08-28 11:40:03 +01:00
Charlie Sharpsteen
6d6da0c0ef brew-pull: Allow pull request numbers as arguments
If an integer is passed to `brew-pull`, such as `brew pull 6600`, it will be
interpreted as a pull request number. This has the same effect as the more
verbose command line:

    brew pull https://github.com/mxcl/homebrew/pull/6600
2011-08-26 09:44:57 -07:00
Max Howell
f52955ec98 Correct typo 2011-08-26 16:55:12 +01:00
Max Howell
1f5a39b977 git reset --hard after fetch; Fixes Homebrew/homebrew#7124
I believe this fixes it though I confess I didn't test. The guy who opened this issue is the expert.
2011-08-26 15:06:24 +01:00
Max Howell
fd96bb6e3a Apologies, forgot to amend the commit 2011-08-26 14:48:47 +01:00
Ben Burkert
f54a30a534 Only clone with a depth when targeting HEAD or a tag.
Closes Homebrew/homebrew#7101.

Signed-off-by: Max Howell <max@methylblue.com>
2011-08-26 14:31:49 +01:00
Max Howell
0822907d6d Some more sanity with ENV.compiler
Deprecated use_clang? etc. since the logic was such that multiple states could be set, when in reality only one compiler can be set.

Changed fails_with_llvm handling so if HOMEBREW_USE_LLVM is set then it tries to build even if the formula has fails_with_llvm set. Rationale: mostly they will no longer fail and we need to catch these cases.
2011-08-26 14:21:37 +01:00
Max Howell
c659829f29 Add ENV.clang; Fixes Homebrew/homebrew#6580
Also tidied it up a little, reducing duplication as per original patch.
2011-08-26 13:53:36 +01:00
Max Howell
4ba0e9ebae Use curl with --insecure when on OS X < 10.6
The SSL certificates on this old version of OS X are outdated and who knows if Apple will fix them.

Fixes Homebrew/homebrew#6103.
2011-08-26 13:27:55 +01:00
Max Howell
7c5073fff2 Feature new/removed internal commands
Removed updated external commands, like seriously, who cares? We could add it back as if --verbose is set I guess but in all honesty, if nobody complains then nobody cared.

# We removed many redundant comments
Removed many redundant comments.

Fixes Homebrew/homebrew#7191; though it could be fixed better.
2011-08-26 13:26:46 +01:00
Max Howell
0d6aff5e1b Fix brew update after new install for real this time?
Fixes Homebrew/homebrew#7220.
2011-08-26 11:25:09 +01:00
Charlie Sharpsteen
e527c1c83a Leopard: Eliminate moar Array.count from brew upgrade 2011-08-25 18:02:36 -07:00
Jack Nagel
b42052b279 Document HOMEBREW_BUILD_FROM_SOURCE
Additionally, add '--build-from-source' to the bash-completion script.
2011-08-25 00:08:30 -05:00
Jack Nagel
cd4b6df938 Add versions command to the man page
Additionally, document the '--build-from-source' option for the
`install` command.
2011-08-24 21:13:34 -05:00
Max Howell
be79906b62 Only use the bottle if its version is up-to-date
Rationale: if you edit a formula to use a different source URL it should build that and not the pour the bottle. Obviously.
2011-08-25 02:37:18 +01:00
Max Howell
4f03ad225e Output bottles to CWD
Rationale: more typical.
2011-08-25 02:32:41 +01:00
Charlie Sharpsteen
f7bd98875b Leopard: Fix undefined method count for Array
Leopard runs Ruby 1.8.6 while Snow Leopard runs 1.8.7 and `Array.count` was not
introduced until 1.8.7.

Using `Array.length` instead.
2011-08-24 17:45:19 -07:00
Max Howell
98fc60db69 brew update uses origin rather than full URL
This is more flexible for forks and personal customisations, and also more useful for us collaborators since the origin HEAD will be kept up-to-date.
2011-08-25 01:20:33 +01:00
Max Howell
36596de68c Force contributors to define a test by adding it to the create template
A little cheeky but it should help us to maintain higher quality.
2011-08-25 00:53:37 +01:00
Max Howell
ac60ff2b14 -march=native doesn't work at all. Gee.
Fixes Homebrew/homebrew#7185.
2011-08-25 00:36:37 +01:00
Chip Turner
3299ffe590 add arrandale to list of core2 CPUs 2011-08-25 00:36:37 +01:00
Jack Nagel
d5f7594748 ENV: allow a user-configurable number of make jobs
Let an environment variable, HOMEBREW_MAKE_JOBS, override the default
'-j<cores>' make flag.

Now we can more easily debug formula that normally build in parallel, or
(potentially) speed up lengthy builds.
2011-08-24 17:14:23 -05:00
Max Howell
94abb42567 Don't include LinkedKegs or Aliases with brew edit 2011-08-24 22:30:44 +01:00
Max Howell
b025fb1397 Use -march=native when we don't otherwise know
I believe this works nowadays. When I created Homebrew originally, it did nothing. Hence all the other logic.
2011-08-24 22:30:44 +01:00
Max Howell
b0c6970dec Recursively scan for keg-only deps before generating build ENV
Remove cairo dep from gtk formula as a consequence.
2011-08-24 22:30:44 +01:00
Max Howell
45ba18b4d5 Rename install.rb to build.rb for clarity and great justice
It was just confusing, and since the `brew upgrade` refactor this makes more sense too.

Shame it still downloads in there etc. but whatever. Homebrew 2 will fix!
2011-08-24 22:30:44 +01:00
Max Howell
13918ff6d9 Record which keg is linked
Will be useful for a variety of reasons, but for now, I'm just using it to ensure install won't install again if something is already installed (use brew upgrade instead).

But means that brew switch and that can work properly etc.
2011-08-24 22:30:44 +01:00
Max Howell
1f95b07ba5 Fix keg exception pretty output 2011-08-24 22:30:43 +01:00
Max Howell
6ac0a28523 Implement bottles again
Bottles now pour purely, without doing all the other unnecessary stuff that happened before the `brew upgrade` code shuffle.

Formula.pourable? removed since it was install-specific metadata and not related to the formula itself. Now all such logic is in the FormulaInstaller which is much cleaner.

I also changed the bottle cache location to the normal directory and added a .bottle pre-extension. Thus you can see everything in one directory without messing about.
2011-08-24 22:30:43 +01:00
Max Howell
19e387d92e brew upgrade
Consequence: you can no longer install when something is already installed, you must upgrade it. This doesn't apply if the formula in question was unlinked. You can still --force installs though.

Rationale: the old way of installing over the top would leave symlinks to multiple versions in /usr/local if the old version had a file the newer version didn't. The new upgrade command handles everything properly.
2011-08-24 22:30:43 +01:00
Max Howell
3a0cf31ed0 Tidy ENV.rb 2011-08-24 22:30:43 +01:00
Max Howell
4dc8318dc3 Observe all applicable options in handle_llvm_failure 2011-08-24 22:30:43 +01:00
Max Howell
39453f5a9d Auto-substitute certain variables in DATA patches
HOMEBREW_PREFIX for example.
2011-08-24 22:30:43 +01:00
Max Howell
4f4d70d457 Prettier brew uses output (columnate) 2011-08-24 22:30:43 +01:00
Max Howell
42cc28597c HOMEBREW_CURL_ARGS so that tests can be more silent 2011-08-24 22:30:43 +01:00
Max Howell
9713bb76b0 oh1 stdout display function 2011-08-24 22:30:42 +01:00
Max Howell
31885c2a99 Constants that are used once are dumb
It just means nobody knows what is being done without scrolling up and down, up and down the file like a doofus on a pogo stick.
2011-08-24 22:30:42 +01:00
Max Howell
e9aaef0e25 Revise cleanup text, we're removing, not uninstalling 2011-08-24 22:30:42 +01:00
Dave Bayer
84eae3c425 Fix uninstall.rb brew remove --force "Directory not empty" error
Finder activity such as moving the position of an icon can create an unexpected
.DS_Store file in a Cellar directory. This causes `brew remove --force` to throw
an error that is reported as

Error: Directory not empty - /usr/local/Cellar/<formula>

This fix avoids that error, by calling rmtree rather than rmdir.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-08-22 20:26:53 -07:00
Max Howell
471dc987e5 Specify that they are symlinks 2011-08-22 10:26:01 +01:00
Max Howell
79d78bf933 Blacklist MacRuby
For now we don't support this kind of thing because our formula is a worse option, even though you have to update it yourself.

Closes Homebrew/homebrew#6174
2011-08-19 16:01:39 +01:00
Charlie Sharpsteen
8a1bcf70a1 Contribution: Tweak bash completion for install
Selection of generic installation options, such as `--HEAD`, is now lumped
together with selection of formulae-specific options.

This allows any installation option to be tab-completed *before or after* the
formula name is specified.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-08-17 23:23:20 -07:00
Max Howell
df113d3ce6 Only error out for sudo brew install
Note this only happens if Homebrew is *not* installed sudo. Which is most of the time true.

Fixes Homebrew/homebrew#6899
2011-08-17 12:30:21 +01:00
Jack Nagel
32c746ef45 Add keg-only text to brew info output
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-08-11 11:46:35 -07:00