Commit Graph
2143 Commits
Author SHA1 Message Date
Jack Nagel 6d8ff451d1 debrew: take input from same line as prompt 2012-11-09 15:18:01 -06:00
Jack Nagel ba7590369f Formula#system: don't try to close a closed stream
The new formula debugger users continuations to jump back up the stack,
and thus anything that has the potential to be executed twice (i.e.
ensure blocks) needs to to be essentially idempotent.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-11-09 14:04:08 -06:00
Jack Nagel 84cc549473 Fix typo in postgres requirement 2012-11-08 16:24:52 -06:00
Jack Nagel 781bd000d0 Factor out MySQL and Postgres requirements 2012-11-08 16:01:59 -06:00
Jack Nagel ecab32340d Fix curlrc existence check
Enumerable#one? is not available under Ruby 1.8.6. Further, we really
want #any? here, as setting both HOME and CURL_HOME can trigger a false
negative.

Fixes #15883.
2012-11-06 19:02:02 -06:00
Jack Nagel afa5150fab Move conflict message into conflict class 2012-11-06 17:48:34 -06:00
Jack Nagel 4b136ed377 Fix framework install names 2012-11-06 13:04:40 -06:00
Jack Nagel fdab0f48fd Inject framework paths into stdenv compiler flags 2012-11-06 12:32:10 -06:00
Jack Nagel b6c538b803 Link Frameworks into top-level Frameworks directory 2012-11-06 12:32:09 -06:00
Jack Nagel a2fe085153 Combine duplicated postfix conditionals 2012-11-06 12:32:09 -06:00
Jack Nagel 5123a77842 Hoist top-level directory list into a constant 2012-11-06 12:32:09 -06:00
Charlie Sharpsteen 6e29cdc24e doctor: Remove fuse.pc from the whitelist
Having a third-party `fuse.pc` file will conflict with the `fuse4x` formula.
2012-11-03 15:44:51 -07:00
Jack Nagel 1ca93beebb Add Xcode 4.5.2 to standard compilers map
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-11-01 14:13:26 -05:00
Adam Vandenberg 9fc68bdb38 Error out on lowercase --head parameter to install.
Fixes #14815.
2012-11-01 08:08:40 -07:00
Max Howell 19511b2750 Fix build failure being non-verbose when --verbose 2012-10-31 11:28:29 -04:00
Max Howell 09f83c6273 Only show the troubleshooting link
This has to be a last resort right? If all we show is that link (plus preceding un-deletable output) and they don't click it then maybe we should just close the ticket and hope they'll use MacPorts instead.
2012-10-31 11:28:29 -04:00
Sijawusz Pur Rahnama 38f121bd68 Add support for 7zip archives
Closes #15723.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-29 14:57:23 -05:00
Charlie Sharpsteen a365abf0ae brew-update: Guard non-directory files in Taps
Skip any entries returned by `Dir["Library/Taps/*"].each` that are not
directories.
2012-10-28 12:34:43 -07:00
Adam Vandenberg 55c03df39e formula: shorten path helpers 2012-10-28 08:54:54 -07:00
Camillo Lugaresi dbfe304575 debrew: formula debugging for homebrew
A new feature for easing the pain of working with complex formulas, or
formulas for large packages. When running brew in debug mode (-d), if an
exception propagates outside the formula's install method, you now get a menu
which lets you return to the point where the exception was raised and perfom
several useful actions, such as:
- printing a backtrace
- entering IRB to examine the context and test ruby code
- entering the debugger (if ruby-debug is available)
- entering a shell
- ignoring the exception or proceeding with the raise as normal

Signed-off-by: Max Howell <mxcl@me.com>

* Fixed conflict in build.rb.
* Removed old debug handling in Formula.brew.

Closes #10435.
2012-10-28 11:39:02 -04:00
Max Howell 451b2adc62 Specify where to get the CLT package 2012-10-28 10:52:07 -04:00
Stephen Nelson ef2597847b Homebrew should not ignore curlrc
Added doctor check for .curlrc rather than silently ignoring it (#13836).

Closes #15419.

Signed-off-by: Max Howell <mxcl@me.com>

Removed test in doctor where it actually curl'd a file. It's enough to warn if the curlrc exists. I understand people want to remove the warnings, but the point in the doctor is to help diagnose and not to be some ramification of your UNIX system.
2012-10-28 10:52:07 -04:00
Adam Vandenberg b40e5323ca Pathname: add exec and jar helpers
Closes #13318.
2012-10-27 19:28:42 -07:00
Jack Nagel fbfc30fe1c tests: define assert_empty for Ruby <= 1.8
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-25 22:09:23 -05:00
Jack Nagel 6ec361aa12 ComparableSet#merge returns self
Set#merge is supposed to return self, and Formula#recursive_requirements
depended on this being true.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-25 15:54:55 -05:00
Jack Nagel 511138f863 test_cleaner: add missing require
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-25 14:29:43 -05:00
Jack Nagel fb490be58b Allow requirements to record tags
To allow

  depends_on :x11 => :optional

and friends to work as expected, make requirements record any tags and
add special handling to the X11Dependency to record both a minimum
version and additional tags.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-25 14:28:53 -05:00
Jack Nagel 0bb42201a0 Move requirement subclasses to a separate file
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-25 12:51:36 -05:00
Jack Nagel b4f65f5171 FormulaInstaller: disambiguate show_header usage
show_header should default to false (we don't want to display it in the
case of installing a single formula without dependencies), but it only
worked this way by accident.

The assignment "show_header = true" creates a local variable named
show_header, and in the case where needed_deps is empty and this
assignment is not actually executed, the latter usage evaluates the
local variable instead of calling the method.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-24 22:59:24 -05:00
Jack Nagel b95bcd65cd Return the block value in ARGV.filter_for_dependencies
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-24 17:54:16 -05:00
Adam Vandenberg 8c29e7c672 doctor: check that Xcode prefix actually exists
Closes #14373.
2012-10-24 11:16:57 -07:00
Adam Vandenberg dfca17982e Cleaner: add (commented-out) debugging information for permission changes
The cleaning step changes permissions on files. Added a commented-out block
that will show permission changes when doing verbose builds.

Since this output is not generally useful for even normal verbose builds,
added as commented-out code (I'm sorry) so that maintainers can uncomment
it when this functionality is needed for debugging.
2012-10-24 09:20:56 -07:00
Adam Vandenberg 3831d104a7 Make --ignore-dependencies work again 2012-10-23 16:05:01 -07:00
Misty De Meo c205a01701 Fix Keg tests
* unreverse expected/actuals
* don't assume linked file order is guaranteed - it wasn't!
2012-10-23 17:10:12 -05:00
Adam Vandenberg 84b7a15d10 Add relinking instructions.
Closes #15488.
2012-10-22 12:27:17 -07:00
Adam Vandenberg 489672ac06 Latest Xcode is 4.5.1 2012-10-22 10:01:24 -07:00
Adam Vandenberg 710b907487 Allow varags to skip_clean 2012-10-21 13:24:02 -07:00
Adam Vandenberg 4e617d2400 audit: loosen ARGV check 2012-10-21 13:24:00 -07:00
Misty De Meo f52ebe5fc7 brew ln --force is now brew ln --overwrite
* Renames --force to --overwrite, freeing up brew ln --force for #13349
* Changes --dry-run to preview linking by default, rather than
  overwriting. An overwrite dry-run can be simulated via both
  --dry-run --overwrite
* Adds some basic Keg tests
2012-10-20 21:00:46 -05:00
Mike McQuaid 20851b9c01 Add Jenkins version matching (and test). 2012-10-16 10:31:35 +01:00
Jack Nagel 9ca734097e Reduce code footprint of standard compilers map
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-15 18:17:22 -05:00
Jack Nagel 6ccd4a9a45 Flatten share_mkpaths
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-15 18:03:07 -05:00
Jack Nagel 761acc47a7 Test coverage for DownloadStrategyDetector
While at it, make it use class methods instead; no reason to instantiate
an object for this.

Eventually there should be some functional tests for the individual
strategies as well.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-15 17:45:48 -05:00
Jack Nagel c9d54c1724 GitDownloadStrategy: avoid unnecessary checkout
By default, git checks out the fetched ref after cloning the repo, but
this is unnecessary as we explicitly check out the desired ref during
staging. This also silences some unnecessarily confusing output.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-15 15:29:23 -05:00
Jack Nagel 4100fc549d GitDownloadStrategy: silence checkout actions in non-verbose mode
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-15 15:29:23 -05:00
Jack Nagel b75e31e0c8 GitDownloadStrategy: silence status check
"git status -s" is used to detect if the repository was corrupted during
an interrupted clone, but it can leak output to the terminal, so use
quiet_system.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-15 15:29:23 -05:00
Misty De Meo 71ef411c22 Manage Requirements using ComparableSet
ComparableSet only allows a single object of a given class,
choosing the object with the greatest value. This was mainly created
for Requirements, so that, e.g., two X11Dependencies of differing
strictness don't both end up in the same requirement set.

Fixes #15240.
2012-10-15 09:46:29 -05:00
samueljohn 88f2347dfa wxwidgets: A more common name for wxmac.
- Change the blacklist to hint that we include wxpython with wxwidgets.

Closes #15407.

Signed-off-by: Max Howell <mxcl@me.com>
2012-10-11 09:25:59 -04:00
Jack Nagel 943bff10d4 Don't munge tapped formula names in Formula.factory
This started happening as a result of bbc167b, which avoids reloading
previously defined formulae. The exception alters its message if the
name parameter appears to be a tapped formula, but this is lost if we
only pass in the "stem" of the pathname.

Long-term this probably needs some restructuring, perhaps with a
separate exception for tapped formula, but for now this should re-enable
the more useful error message.

Fixes #15374.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-09 14:49:38 -05:00
Jack Nagel 60b8a5792b Advise brew update before filing issues about compiler versions 2012-10-06 13:20:19 -05:00