Commit Graph
1758 Commits
Author SHA1 Message Date
Mike McQuaid e3d6099035 Further improve brew doctor issue wiki text.
Following feedback from @mxcl on bcda0d.
2012-07-26 07:53:27 +01:00
Mike McQuaid b8ec7268ee Fix brew doctor warnings and spurious newline.
Fixes the problems discussed in 34c970 to ensure that `brew doctor`
does not look like it is broken on user setup problems but still
returns a sensible exit code for e.g. BrewBot.
2012-07-25 22:54:44 +01:00
Jack Nagel 6d528e94bb Rename xctools_fucked?
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-25 12:04:42 -05:00
Jack Nagel a18f853679 Add MacOS::Xcode.provides_gcc?
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-25 12:04:42 -05:00
Jack Nagel 6a79970355 Use new Xcode module
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-25 12:04:41 -05:00
Jack Nagel 234dd8513b Add MacOS::Xcode.provides_autotools?
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-25 12:04:41 -05:00
Jack Nagel 16be488466 Move Xcode and CLT modules to a new file
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-25 12:04:41 -05:00
Jack Nagel 68fee2a11a Split Xcode and CLT methods into separate modules
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-25 11:58:01 -05:00
Jack Nagel 7c80aae844 MacOS: avoid checking clt_version in clt_installed?
Checking "not clt_version.empty?" is unnecessary if we are also checking
that dev_tools_path is /usr/bin.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-25 11:58:01 -05:00
Jack Nagel 9ef39e0f05 MacOS module cleanups
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-25 11:58:01 -05:00
Adam Vandenberg 3053cbc044 doctor: be consistent in path advice 2012-07-24 12:28:02 -07:00
Misty De Meo 02f66b5ef7 Revert 66a4ea1c80
Refusing to unlink files from another keg introduced issues when
files changed between formula versions; for instance, this
introduced issues when upgrading from gtk+ 2.24.10 to 2.24.11.

See #12778.
2012-07-24 09:52:12 -05:00
Adam Vandenberg ecb09ba396 doctor: check for DYLD_FALLBACK_LIBRARY_PATH 2012-07-23 16:08:05 -07:00
Sean Lee c6092e13be corrected the macruby download link
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-07-22 12:54:24 -07:00
Misty De Meo 68caf03faa doctor: Skip outdated check when offline
Fixes #13535.
2012-07-22 12:57:03 -05:00
Misty De Meo 66a4ea1c80 Keg#unlink: check destination before unlinking
Rather than skip unlinking if there's no linked keg record, check to
see whether the destination's realpath is the same as the source file
in the keg being unlinked.
2012-07-22 10:58:19 -05:00
Mike McQuaid f3ed0f0407 Fix bottling keg-only brews. 2012-07-22 16:09:58 +01:00
Misty De Meo 3870c93321 Keg#unlink: Don't try to unlink if keg is unlinked 2012-07-20 12:03:31 -05:00
Misty De Meo 365508f221 brew unlink: don't unlink an unlinked formula
This caused weird issues in the case that multiple formulae provide
the same file.
2012-07-20 11:00:48 -05:00
Jack Nagel 9ed848f061 MercurialDownloadStrategy: remove redundant chdir
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-19 17:45:38 -05:00
Felipe Navarro V c1f441ceb7 MercurialDownloadStrategy: check out subrepos
Closes #13495.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-19 17:44:37 -05:00
Jack Nagel 9af20b7601 Fix typo in comment
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-17 11:31:53 -05:00
Jack Nagel e037e5f806 Coerce advice to a string in ChecksumMismatchError
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-17 11:30:28 -05:00
Jack Nagel 5a78018bcf Formula: mirrors are always non-nil
Since 3ee9b7bd88 ("SoftwareSpec:
initialize @mirrors"), @active_spec.mirrors will always be non-nil.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-17 03:23:59 -05:00
Misty De Meo 8f4469c781 Add Ivy Bridge CPU family
Fixes #13434.
2012-07-16 16:26:47 -05:00
Misty De Meo a957528943 Update Xcode checks for 10.8 2012-07-12 14:34:00 -05:00
Jack Nagel 11963f038a doctor: fix incorrect usage of 'or'
Eventually I will stop making this mistake.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-12 03:01:28 -05:00
Misty De Meo 8b6e6af99c Fix brew link --dry-run
The last make_relative_symlink was missing the mode argument, which
caused spurious linking under certain circumstances.
2012-07-11 22:32:15 -05:00
Adam Vandenberg 40a944e58f use keg.linked? 2012-07-11 20:13:46 -07:00
Adam Vandenberg 86febc4b03 Add :bsdmake dependency 2012-07-10 09:53:03 -07:00
Adam Vandenberg cc6e012443 All symbols for autotools dependencies
The symbol versions of :autoconf, :automake and :libtool only activate
for OS X / Xcode combinations that do not provide autotools.
2012-07-10 08:55:17 -07:00
Adam Vandenberg d17e3b4aed Refactor dependencies in preparation for autotools symbol support 2012-07-10 08:54:55 -07:00
Charlie Sharpsteen a30f427ae2 quiet_system: Dump to /dev/null instead of closing
Some programs fail where they would otherwise succeed if stdout or stderr is
closed. For example, using mpicc from the mpich2 formula:

    quiet_system 'mpicc', '--version'

Fails with:

    LLVM ERROR: IO failure on output stream.

While

    system 'mpicc', '--version'

Succeeds.

Closes #13253.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-07-09 09:21:33 -08:00
Misty De Meo c3285f69b0 ARGV: add .dry_run? method
Add an ARGV.dry_run? helper method for '--dry-run'/'-n' now that
'-n' is being used as a git-style dry-run in two commands.

Closes #12898.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-07-09 12:01:09 -05:00
Misty De Meo bf051054b6 link: add --force and --dry-run options
`brew link` can now be made to delete any conflicting files using
the --force argument. It also has a --dry-run option, similar to
git clean -n, which will list any files which would be deleted
without touching the filesystem.

Closes #11811.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-07-09 12:01:09 -05:00
samueljohn e88c6828af ENV: remove -L from CFLAGS.
SDK/usr/include and lib now appended instead of prepended.
Prepending overwrote our precedence of HOMEBREW_PREFIX/include and lib.

Closes #13292.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-07-09 09:36:25 -07:00
Adam Vandenberg cd6fe1f444 Add some comments 2012-07-09 08:39:36 -07:00
Jack Nagel 96de6f072d Restore some things to failed install config dump
Closes #11091.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-08 12:27:19 -05:00
Jack Nagel ad4d524b2c Display compiler build numbers in config dump
But only display them if they are out of sync with the corresponding
Xcode version.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-08 12:26:10 -05:00
Jack Nagel ecae65f775 Always output X11 version and path in config dump
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-08 12:16:53 -05:00
Jack Nagel ed975b1280 fetch: remove dead code
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-08 10:47:57 -05:00
Jeff Clites c24260e271 Prevent error pipe object from being finalized
When the first error pipe object is finalized, the underlying file
descriptor is closed, breaking the pipe between the build script and the
main Homebrew process. Keep a reference to this object so it isn't
closed.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-08 02:35:26 -05:00
Adam Vandenberg 4089d87338 Remove brew install foo --help
This command was undocumented, only for autotools, and it is enough to do
`brew install foo -i` and then `./configure --help` in two steps.
2012-07-07 16:53:30 -07:00
Adam Vandenberg eef917b3d8 doctor: update xcode chceck
* 4.3.3 is the latest on 10.7
* Give up if we don't know what the latest is (10.8 and beyond)
2012-07-07 11:59:01 -07:00
Misty De Meo a26ca7b959 DownloadStrategy: Detect classes 2012-07-06 12:02:08 -05:00
Misty De Meo dd77bb890d Keg#unlink: skip find for non-extant files
In 1.8, Pathname.find would work (and do nothing) if the
source path didn't exist. In 1.9 this throws an exception
instead, so check whether the file exists before trying.
2012-07-06 10:32:56 -05:00
Adam Vandenberg db2d63dae8 Stop stripping binary files 2012-07-05 21:54:31 -07:00
Jack Nagel 0a82dd690b tests: expect that mirror lists are empty, not nil
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-05 20:33:28 -05:00
Jack Nagel a76bce6898 Decouple pathname from bottles
Pathname is one of the basic building block classes in Homebrew, and as
such it is preferrable that `require`ing it does not drag in other
Homebrew code; thus avoiding circular dependency situations. Its
dependency on bottles.rb gave it an implicit dependency on formula.rb,
among other things.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-05 20:32:55 -05:00
Jack Nagel 55bd6781dc Remove compat's implicit dependency on formula
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-05 20:32:49 -05:00