Commit Graph
931 Commits
Author SHA1 Message Date
risk 358f78a10a check for a valid $TMPDIR path in brew doctor
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-28 19:50:39 -07:00
Trevor Wennblom ee089053b3 Coerce flags to an array in remove_make_var!
This is needed for Ruby 1.9.x compatibility, but we still don't support
running Homebrew with anything other than a system provided 1.8.[67].

Fixes #6546

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-27 17:38:26 -07:00
Samuel Cochran 1b9598c34b Add MacOS.lion? for MACOS_VERSION == 10.7
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-27 08:16:16 -07:00
Max Howell 0416d4ce71 Set origin remote URL when updating git clones
Thus the url we use can change.

This only works provided the urls both contain git repos with the same blobs. But this should always be true.
2011-07-27 12:51:16 +01:00
Max Howell 09dbffc02d Raise if mirror can’t be determined
Adjust mirror ohai slightly.
2011-07-27 10:56:59 +01:00
Jan Lehnardt 8b5f9b6df6 Detect Apache mirror system and parse out the closest mirror.
All Apache Formulae should be updated to use the closer.vgi script
to specify downloads rather than a random mirror that could be out
of date or compromised. Apache's closer.cgi does periodic health
checks.

The base URL for the mirror system is

  http://www.apache.org/dyn/closer.cgi?path=#{filepath}

e.g.:

  http://www.apache.org/dyn/closer.cgi?path=/couchdb/1.0.3/apache-couchdb-1.0.3.tar.gz

Note: The addition of the "Actually downloading..." message is sub-optimal
as the message should probably be emitted in _fetch() rather than fetch(),
but I didn't want to change the way Homebrew works today, so I'm leaving
this for mxcl & team to sort out or adopt :)
2011-07-27 09:48:35 +01:00
Adam Vandenberg adfe65e931 Fix brew doctor when no Xcode is detected. 2011-07-26 16:01:30 -07:00
Jack Nagel ee2f510e18 doctor: be more forgiving about GREP_OPTIONS
Currently, `brew doctor` complains about GREP_OPTIONS being set,
regardless of its value. The cmake formula, for which this check was
introduced, is more specific about what actually makes it fail.

GREP_OPTIONS='--color=auto' will not cause the build to fail, so don't
warn about this.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-25 16:25:44 -07:00
Brant Bobby fc04e8c90f Fix typo in brew doctor command
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-22 11:47:13 -07:00
Charlie Sharpsteen 4810cf12a5 Retire check for GCC 4.0 under XCode 4.x
XCode 4.x only includes GCC 4.2. Therefore, having `brew doctor` report that
GCC 4.0 is missing only spreads fear, uncertainty and doubt over a situation
that is status quo.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-21 08:10:33 -07:00
Mislav Marohnić ad5c973a3f doctor: don't report wrong location of autoconf if it's missing
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-10 12:18:55 -07:00
Austin Seipp be1d490be5 sandybridge hardware identifier for brew --config
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-07-05 09:38:41 -07:00
Max Howell af3dec8361 Fix install names for keg-only brews too
Fixes #6065. Fixes #6218.
2011-07-04 09:31:48 +01:00
Max Howell 188ed78939 Fix install_name massaging for keg-only brews
Fixes #6065.

My pre-emptive fix that avoided calling Pathname.ensure_writable because I was not convinced it worked broke this function due to incorrect logic.

The lesson is, don’t write pre-emptive fixes. Wait until you've seen the bug first. All code has bugs in, so write less. I'm an idiot sometimes.
2011-06-28 17:28:37 +01:00
Adam Vandenberg e4d0fc5a20 formula.rb: put bottle attrs on separate line
This line is getting long, and having these on a separate line
will help with some rebasing in some work-in-progress branches.
2011-06-22 14:13:44 -07:00
Mike McQuaid ec041b1e0d Fix missing pourable? reference. 2011-06-22 18:00:45 +01:00
Mike McQuaid 3014739faa Build from source when we've options or 10.5. 2011-06-22 17:48:20 +01:00
Mike McQuaid 7b1f777905 Return an array from options. 2011-06-22 17:48:20 +01:00
Mike McQuaid 221442515f Renaming pouring method to pourable?. 2011-06-22 17:48:20 +01:00
Mike McQuaid cf1fee1fc8 Add stub options method. 2011-06-21 22:28:54 +01:00
Mike McQuaid 5f2e7aca87 Remove redeclared method. 2011-06-21 19:25:39 +01:00
Mike McQuaid b2e41ed95d Only pour bottles when not building from source. 2011-06-21 19:25:39 +01:00
Mike McQuaid 6c053e320f Fix bad pathname indentation. 2011-06-21 19:24:45 +01:00
Mike McQuaid 371818ffa9 Make bottle path. 2011-06-21 19:04:18 +01:00
Mike McQuaid 9c69c1bae3 Fix brew bottle versioning. 2011-06-21 19:04:17 +01:00
Adam Vandenberg 69f13cdd4f Move -- higher in argument list
A spurious "--" argument was being passed to the installer script.
2011-06-21 07:27:13 -07:00
Adam Vandenberg 2d8d8f3c6b Pathname: remove unused method starts_with? 2011-06-19 21:34:59 -07:00
Adam Vandenberg dbba2dfa41 brew-doctor: use String.start_with? 2011-06-19 21:32:54 -07:00
Adam Vandenberg 75760b24e7 back-port start_with? from 1.8.7
This allows its use in Leopard, which has Ruby 1.8.6.
2011-06-19 21:32:37 -07:00
Les Hill 166b199c6b doctor: check /usr/local for writablity
- Airfoil during the install of InstantOn changes /usr/local to
  root:wheel ownership

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-19 09:46:57 -07:00
Max Howell a6223736f9 Actually reset the permissions 2011-06-17 09:30:25 +01:00
Max Howell 508216ec2b Show summary headings when appropriate 2011-06-17 09:30:25 +01:00
Max Howell d5a7d18b1c Don’t output "nothing" messages
This is how we do it in general in Homebrew.
2011-06-17 09:30:25 +01:00
Max Howell 343ca84b8c Fix upgrading libdeps breaking stuff after cleanups
Fixes #2709.

By forcing dylibs to have an install_name id that is the HOMEBREW_PREFIX path, ie. the symlink’s path. Stuff that links to these dylibs will use this id and thus by immune to upgrades of underlying libraries.

Thus whatever keg is "current" ie. linked, will be the library that is used by the tool.

This fix is not retroactive. So there will still be breakage for existing installations of stuff.

The fix_install step in install is moved after the link step as the symlinking
is required to determine the eventual ids for each dylib.
2011-06-17 09:30:25 +01:00
Max Howell eb12255f83 Fix make_relative_symlink when names differ
Before we would always make the symlink itself have a basename the same as what it pointed to.

I don’t think this breaks any of the other usages as they were working by coincidence.
2011-06-17 09:30:25 +01:00
Adam Vandenberg 9d07b5ac84 Inclue HOMEBREW_USE_CLANG in --env output 2011-06-16 20:58:06 -07:00
Adam Vandenberg fb05f7f6c1 Make these methods on ENV. 2011-06-16 20:58:05 -07:00
Adam Vandenberg 950399ce61 Allow HOMEBREW_USE_CLANG env var 2011-06-16 20:58:05 -07:00
José Martínez 3da3f39a2f Allow --use-clang to override fails_with_llvm
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-16 20:45:56 -07:00
José Martínez 61cec92985 Add clang compiler option
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-16 20:45:52 -07:00
Adam Vandenberg 721a00e643 be more ruby-like 2011-06-16 20:35:09 -07:00
Adam Vandenberg 4c00eb6dcd audit: check for redundant 'version' 2011-06-16 20:31:55 -07:00
Jack Nagel d2330d6748 Fix brew-info when on branch master and github.user set
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-16 19:30:19 -07:00
Adam Vandenberg dc2b3937ef Fix issue checklist link 2011-06-16 15:40:12 -07:00
Adam Vandenberg 3720b6308d Style changes related to bottling. 2011-06-16 08:41:16 -07:00
Adam Vandenberg ea81950776 Allow underscore with these suffixes for version detection 2011-06-16 06:47:13 -07:00
Adam Vandenberg 10857e516f deps: document -n switch 2011-06-15 09:02:18 -07:00
Max Howell 57338d3c67 Don’t error out if the Cellar doesn’t yet exist 2011-06-15 13:04:06 +01:00
Max Howell 8bec9b18ef Fix first brew update with Git 1.7.4+; Fixes #5128
Behaviour for git checkout was changed such that the update would fail because it refused to checkout files on to existing files in the working directory.

This was bad behaviour anyway, we should make efforts to keep any local modifications to the Homebrew checkout. Everything is neatly resolved if we just do a --soft reset.

Closes #6017.
2011-06-15 13:02:48 +01:00
Mislav Marohnić cae8f9e21d refactor update command to use git diff instead of parsing pull output
This fixes reporting of which formulae changed in git versions where `pull`
output is not compatible.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-14 14:47:39 -07:00