Commit Graph
2375 Commits
Author SHA1 Message Date
Jack Nagel 44544fe968 Update documentation for Dependency.expand 2013-01-31 15:40:06 -06:00
Jack Nagel 7522e4883b Proper recursive expansion of requirements with filtering
Expand requirements recursively while applying the same optional? and
recommended? filters that dependencies are run through. Options
generated by requirements are now checked against the correct list of
requirements, eliminating the temporary "best guess" logic in the
installer.
2013-01-31 15:40:06 -06:00
Jack Nagel 8df3f14d15 Create proxy classes for "partial" X11 dependencies
When a formula's dependency tree contains more than one X11 dependency,
they are de-duplicated by comparing the min_version attribute. However,
this can result in broken dependency trees if one of the X11Dependency
objects was actually specified as e.g. `:libpng`.

In practice, this only matters when one or more of the dependencies has
additional metadata that makes it distinct from the rest, i.e. an
:optional or :recommended tag.

To combat this, make these special, "partial" X11 dependencies instances
of different classes so that they are not de-duped.

It will still be necessary, at the time when requirements are expanded
by the installer, to de-duplicate any remaining X11 dependencies after
applying the optional/recommended filters in order to avoid duplicated
modifications to the environment (as ENV.x11 is not idempotent).

c.f. #17369.
2013-01-31 15:39:26 -06:00
Mike McQuaid 1da2d5dd92 Remove MD5 support.
Closes #17317.
2013-01-30 22:36:12 -08:00
Mike McQuaid dedc6aec75 brew-search: search homebrew/apache tap. 2013-01-30 22:15:37 -08:00
Mike McQuaid ff8f8ff0d9 Make local bottle installation more robust.
Use versions to better get hold of the filename.
2013-01-30 21:51:21 -08:00
Mike McQuaid 063d5e5b78 jpeg: support version format. 2013-01-30 21:29:19 -08:00
Mike McQuaid 6555c0a260 Add ruby/rake functions to use system framework version. 2013-01-30 21:29:19 -08:00
Mike McQuaid 8ab7cf827d Add bash and zsh completion directory functions. 2013-01-30 21:29:19 -08:00
Mike McQuaid 32874cbcb8 Add SourceForge bottle mirror selection.
Use ENV['HOMEBREW_SOURCEFORGE_MIRROR'].

Closes #15642.
Closes #17368.
2013-01-30 21:29:19 -08:00
Mike McQuaid fbbfc7474c Improve brew doctor autocrlf message.
Better version of ed357d.

References #15711.
References #17361.
References #17437.
2013-01-30 21:29:19 -08:00
Jack Nagel bf19835a29 Pass tag to class name style requirement declarations 2013-01-30 14:18:34 -06:00
Charlie Sharpsteen 77f0b38876 brew-help: Add options to example usage
Also, move the line containing `info`, `home` and `options` to the top of the
list as users should be running these before installation.

Ref. #13224.
2013-01-30 09:31:42 -08:00
Jack Nagel 7bec7abecd Fix passing multiple switches as a single word to the build
Fixes #17434.
2013-01-30 11:09:33 -06:00
Jack Nagel eff8a61254 doctor: core.autocrlf can be empty
c.f. #17361.
2013-01-30 01:26:28 -06:00
Jack Nagel 6797ae057a FormulaInstaller: actually select unsatisfied requirements
Fixes #17422.
2013-01-29 23:43:44 -06:00
Adam Vandenberg 7581bd843a Only check keg-only if we map to a formula 2013-01-29 20:45:33 -08:00
Adam Vandenberg dd5ea24d48 Require --force to link keg-only.
Closes #13349.
2013-01-29 20:31:33 -08:00
Mike McQuaid 91ccb21368 Add pour_bottle? method to Formula.
Allows a formula to selectively disable bottle pouring.
e.g. the default Boost bottle does not work with a brewed Python.

Fixes #17142
2013-01-29 17:14:11 -08:00
Mike McQuaid 3318b08a2e Don't use underscores in (new) bottle filenames.
Closes #14270
2013-01-29 17:14:09 -08:00
Mike McQuaid e9eac42daa Cleanup old bottle syntax. 2013-01-29 17:14:00 -08:00
Mike McQuaid ed357d9847 Improve brew doctor autocrlf check.
Closes #15711.
2013-01-29 17:14:00 -08:00
Mike McQuaid 3b5089f4fb Only print launchctl tmux warning conditionally. 2013-01-29 14:37:03 -08:00
Adam Vandenberg aef64d08ae Remove gmock.
Gmock and GTest should not be installed system-wide.

Closes #17358.
2013-01-29 12:13:04 -08:00
Adam Vandenberg fe2ece069c 0.9.4: optional/recommended support 2013-01-29 11:57:07 -08:00
Jack Nagel 3eb8b902ca Keg#lock: guard against nil in ensure
Fixes #17403.
2013-01-29 10:26:00 -06:00
Jack Nagel 19d5fc8a5e Update Xcode.version for 4.6 2013-01-29 09:52:02 -06:00
Misty De Meo cf0c4e90a6 Don't print git origin check without git repo 2013-01-29 09:48:43 -06:00
Jack Nagel 3dc5b69081 Update clang version regexp in CLT check 2013-01-29 07:44:19 -06:00
Jack Nagel 14774afb25 remove vim from the blacklist 2013-01-28 23:17:39 -06:00
Jack Nagel 70a9715209 Update latest CLT version 2013-01-28 23:02:37 -06:00
Jack Nagel b9210d30de doctor: fix typo 2013-01-28 23:02:25 -06:00
Jack Nagel 7486ff25e0 Fix clang version detection on Xcode 4.6+ 2013-01-28 14:40:58 -06:00
Jack Nagel 3a28868792 Fix compiler map key 2013-01-28 14:33:52 -06:00
Mike McQuaid 1969ebb5cd Xcode 4.6 released.
Closes #17383. Closes #17384.
2013-01-28 12:13:08 -08:00
Jack Nagel 8432089982 LanguageModuleDependency: call super() to generate tags list
Fixes #17379.
2013-01-28 11:23:25 -06:00
Jack Nagel 01dca28dca Filter optional and reccommended requirements 2013-01-28 10:35:15 -06:00
Jack Nagel f745129d81 Generate options for optional and recommended requirements 2013-01-28 10:35:15 -06:00
Jack Nagel f5d40bf8e3 DependencyCollector: return created dep from #add 2013-01-28 10:35:14 -06:00
Jack Nagel ca134adfbb Allow specifying a name attribute for X11Dependency 2013-01-28 10:35:14 -06:00
Jack Nagel 1d1c9ba55c Consider correct dependent when skipping build-time deps
We skip build-time deps when installing from bottles. However, the
current logic only considers the root, rather than the actual dependent
formula. Given

  A (bottled)
  |__B (not bottled)
     |__C (build-time)

C will be pruned from the effective dependency tree of A. This is wrong,
because C is required in order to build B.

Fix this by examining the current dependent rather than the root.

Fixes #17356.
2013-01-27 21:20:09 -06:00
Jack Nagel 1ef497780a Extract unsatisfied dependency logic from installer 2013-01-27 21:20:09 -06:00
Jack Nagel 90e254f8b3 Invoke super() in requirement subclasses 2013-01-27 21:20:09 -06:00
Adam Vandenberg 4cb21e4c39 audit: hint about depends_on Class 2013-01-27 14:54:48 -08:00
Jack Nagel d6ae459e63 Update require 2013-01-27 16:29:19 -06:00
Sema 4767bb572a doctor: fix transposed git command
Closes #17338.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-01-27 13:17:19 -06:00
Misty De Meo eb80cd17bc superenv: --use-gcc should specify gcc-4.2
Since 'gcc' is a symlink to 'llvm-gcc' on Xcode 4.3+, --use-gcc and
--use-llvm were doing exactly the same thing. Combined with the
previous commit, this allows users with either a leftover
/usr/bin/gcc-4.2 or a homebrewed apple-gcc42 to build with gcc.

This doesn't however fix Xcode-only systems with apple-gcc42.

Fixes #17243.
2013-01-26 22:57:56 -06:00
Jack Nagel bf1ce53366 Split dependency classes into separate files 2013-01-26 20:30:05 -06:00
Jack Nagel d10742a4a5 Generate options immediately following depends_on
Given

  depends_on 'gnutls' => :recommended
  depends_on 'libgcrypt' unless build.without? 'gnutls'

the dependency on libgcrypt should be enabled by default. However, the
corresponding option has not yet been generated, so the condition is
true and the dependency is disabled.

Instead, add a hook method that fires after each depends_on and adds the
appropriate option.
2013-01-26 18:20:36 -06:00
Jack Nagel 74a4c8e97d Don't force universal for build deps 2013-01-26 17:24:17 -06:00