5069 Commits

Author SHA1 Message Date
Mike McQuaid
50aa91940d brew-test-bot: use global cache again. 2013-12-10 20:20:37 +00:00
Mike McQuaid
67840c691e brew-test-bot: move logic from Jenkins to Ruby. 2013-12-10 20:14:15 +00:00
Jack Nagel
a933b58507 versions: restore original constant
Before:

  f1 = Formula.factory('tree')
  f1.versions
  f2 = Formula.factory('tree')
  f1.class == f2.class # => false

After:

  f1 = Formula.factory('tree')
  f1.versions
  f2 = Formula.factory('tree')
  f1.class == f2.class # => true
2013-12-09 21:13:45 -06:00
Jack Nagel
b6cbd08e93 Implement hash equality for Version 2013-12-09 19:43:07 -06:00
Jack Nagel
8f42185e18 bottle: re-raise interrupt after cleanup 2013-12-09 19:38:20 -06:00
Jack Nagel
4afd633570 bottle: clean up after interrupts 2013-12-09 17:35:05 -06:00
Jack Nagel
c3ac88d8c7 versions: delete unused method 2013-12-09 17:34:04 -06:00
Jack Nagel
291cdea687 Extract constants for checkums in tests 2013-12-09 15:57:50 -06:00
Jack Nagel
5e0a8668fb Silence more warnings 2013-12-09 15:15:53 -06:00
Jack Nagel
bac0536730 keg_only_reason and cc_failures are not DSL methods 2013-12-09 15:15:53 -06:00
Jack Nagel
e1480953e6 Use accessors to silence uninitalized ivar warnings 2013-12-09 15:15:52 -06:00
Jack Nagel
f579d90458 Expand requirements of default deps added by other requirements
Dependencies built from requirements with a default formula may
themselves have requirements, and these requirements may have default
formulae, which may have more requirements, etc., so we have to keep
expanding until this isn't the case.

Fixes Homebrew/homebrew#25025.
Fixes Homebrew/homebrew#25037.
2013-12-09 14:36:10 -06:00
Jack Nagel
08055e1776 Ensure option names are consistent for default formula requirements 2013-12-09 14:36:10 -06:00
Jack Nagel
901902b53b Compute recursive deps for default_formula deps 2013-12-09 14:36:10 -06:00
Jack Nagel
293bde278a Rename filter_deps to expand_dependencies 2013-12-09 14:36:10 -06:00
Jack Nagel
be5f9545dd Move dependency expansion logic up one level 2013-12-09 14:36:10 -06:00
Jack Nagel
0b9c29a667 Use separate collection for requirement deps 2013-12-09 14:36:10 -06:00
Jack Nagel
677c78d77e Pass deps collection to be expanded as a parameter 2013-12-09 14:36:10 -06:00
Jack Nagel
109e9dc58b Silence some Ruby 2.1 warnings 2013-12-09 13:44:45 -06:00
Larry Shaffer
08ff164edd brew-bundle: exit on command failure
Closes Homebrew/homebrew#25053.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-12-09 10:24:13 +00:00
Jack Nagel
cc4776cc23 versions: fix bottle filename usage 2013-12-08 16:41:35 -06:00
Jack Nagel
b45cadd19a bottles: fix options hashes
Defaults can't be specified in the parameter list, as they will be
overwritten by whatever is passed in. Instead the defaults must be
merged with the argument in the method body.
2013-12-08 16:41:35 -06:00
Jack Nagel
b30f409995 bottle: fix typo'd option name 2013-12-08 16:41:35 -06:00
Jack Nagel
3d8bf53187 bottle: don't repeat output for hardlinked files 2013-12-08 16:18:12 -06:00
Mike McQuaid
0f7ae17699 formula: don't print verify message, use resource.
See discussion:
81d420492c (commitcomment-4804596)
2013-12-08 21:58:03 +00:00
Mike McQuaid
a762f21e33 formula, resource: output when verifying checksum.
References Homebrew/homebrew#24566.
2013-12-08 21:37:40 +00:00
Patrick Stadler
6e7e3317cf add "bundle" command to zsh completion
Closes Homebrew/homebrew#25055.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-12-08 13:11:44 -08:00
Benoit Daloze
ee1d8512bf Fix typo in example formula
Closes Homebrew/homebrew#25028.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-12-07 09:25:47 -08:00
Jack Nagel
009541c446 Help autoconf find m4 on Xcode-only systems
Closes Homebrew/homebrew#24904.
2013-12-06 20:56:46 -06:00
Misty De Meo
a9823bc518 SoftwareSpec: compact array that may contain nil 2013-12-05 23:09:52 -08:00
Misty De Meo
492ce9cc5e bottle_filename: remove unused revision default 2013-12-05 23:08:04 -08:00
Misty De Meo
2c175a9d7d Bottles: fix bottle_filename revision
Fixes Homebrew/homebrew#24981.
2013-12-05 23:06:50 -08:00
Adam Vandenberg
5252c35f34 fix typo in this notice 2013-12-05 20:26:40 -08:00
Jack Nagel
55e9908799 Fix typo 2013-12-05 22:17:56 -06:00
Jack Nagel
b2b0f711b1 Only coerce to Option when needed
Fixes Homebrew/homebrew#24833.
2013-12-05 22:17:01 -06:00
Adam Vandenberg
1564a89f44 Move jsl to homebrew-binary
Closes Homebrew/homebrew#24826.
2013-12-05 19:32:53 -08:00
Misty De Meo
e2af1cbeeb Use BottleCollector in Bottle SoftwareSpec 2013-12-05 18:24:51 -08:00
Misty De Meo
079d0556ad Add BottleCollector
The BottleCollector collects bottle tags and sha1s, and allows tags
to be fetched using more advanced logic than just fetching identical
tags.

Closes Homebrew/homebrew#23434.
2013-12-05 18:24:45 -08:00
Jack Nagel
d6ab345be5 bottle: always perform a full relocation check
Even if the prefix check fails, it is useful to see the results from the
cellar check.
2013-12-05 18:41:45 -06:00
Jack Nagel
62170811dd bottle: String is not Enumerable in 1.9+ 2013-12-05 16:39:39 -06:00
Jack Nagel
d9afb4f9ea bottle: fix reporting matches with spaces in them 2013-12-05 16:39:39 -06:00
Jack Nagel
41a810c1b6 bottle: fix false-positives from static libs when checking relocatability 2013-12-05 16:39:39 -06:00
Jack Nagel
371a98fe66 bottle: only split on newlines 2013-12-05 16:39:38 -06:00
Jack Nagel
fb6867c363 String isn't Enumerable in 1.9+ 2013-12-05 15:09:18 -06:00
Jack Nagel
961e5a4e13 Run post_install after linking and relocation
Closes Homebrew/homebrew#24962.
2013-12-05 12:48:56 -06:00
Elliot Saba
3d76a2c8df Relocate libtool (.la) files as well as pkgconfig (.pc)
Ignore quotes, just do a global substitution on cellar and prefix.

Closes Homebrew/homebrew#24894.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-12-04 22:37:58 -06:00
Jack Nagel
0daa33668b Run relocation machinery on local bottles
Since we now use placeholders for the prefix and cellar, we need to run
the relocation machinery on all bottles.
2013-12-04 22:37:58 -06:00
Jack Nagel
2e89175eef relocate_install_names: only one substitution is needed 2013-12-04 22:37:58 -06:00
Jack Nagel
ca01b0ad97 relocate_install_names: use a single ensure_writable block 2013-12-04 22:37:57 -06:00
Jack Nagel
cf4e159d53 relocate_install_names: yielded names are already strings 2013-12-04 22:37:57 -06:00