5541 Commits

Author SHA1 Message Date
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
Jack Nagel
e3bd9b2607 Let fix_install_names fix up placeholders too 2013-12-04 22:37:57 -06:00
Jack Nagel
f2aaa5f0ac Teach installer about prefix and cellar placeholders 2013-12-04 22:37:57 -06:00
Jack Nagel
2b5e57a4bd Remove special handling for relocatable pkgconfig files 2013-12-04 22:37:57 -06:00
Jack Nagel
36701a89ba Do relocation check while preparing bottle 2013-12-04 22:37:57 -06:00
Jack Nagel
76153e9780 Insert placeholders for prefix and cellar in relocatable bottles 2013-12-04 22:37:57 -06:00
Jack Nagel
94ebe8e747 relocate_install_names: rewrite cellar names before prefix names
The cellar may overlap with the prefix, so if we replace the prefix
first, we will end up with paths like "@@HOMEBREW_PREFIX@@/Cellar"
instead of "@@HOMEBREW_CELLAR@@", which will break on installations
where the cellar and prefix are disjoint.
2013-12-04 22:37:57 -06:00
Jack Nagel
98cc0b3022 fix_install_names: extract change_dylib_id 2013-12-04 22:37:57 -06:00
Jack Nagel
e7633d876e fix_install_names: extract change_install_name 2013-12-04 22:37:57 -06:00
Adam Vandenberg
1d31200ad2 loosen FileUtils audit 2013-12-04 20:07:38 -08:00
Jack Nagel
36d3a2dfa8 Homebrew CVS is required for Xcode 5+ 2013-12-04 01:19:17 -06:00
Misty De Meo
5537abbe51 Adjust fails_with syntax for non-Apple compilers
The old version worked like this:

fails_with :gcc => '4.8.1'

That wasn't really flexible enough, and made it harder to distinguish
different releases in the same GCC series. Since no one was really
using it yet, this adjusts the syntax to be more similar to the
Apple compilers:

fails_with :gcc => '4.8' do
  release '4.8.1'
end

Like with Apple compilers, omitting `release` blacklists the entire
series.

This also unifies the `build` and `version` attributes and accessors,
and exposes them under both names.
2013-12-03 22:42:49 -08:00
Jack Nagel
c84f7d0ab2 Revert "Revert "Split bsdmake wrapper out from make wrapper""
I think enough time has passed that it is safe to do this now.

This reverts commit 1003161a848970e782633959904ea776dda7e48b.
2013-12-04 00:37:57 -06:00
Jack Nagel
d18a4001b4 Adjust tests for ac1fd380759ebe9aa3fe42465cd5d38b209c32b5 2013-12-03 22:23:14 -06:00
Jack Nagel
65a00e213b Make CompilerSelectionError an InstallationError
Fixes Homebrew/homebrew#19962.
2013-12-03 22:16:37 -06:00
Jack Nagel
fa5b633650 SubversionDownloadStrategy: handle changed repository URL
Fixes Homebrew/homebrew#22159.
2013-12-03 21:13:02 -06:00
Jack Nagel
94333c64c1 SubversionDownloadStrategy: no need to escape 'svn' 2013-12-03 21:13:02 -06:00
Jack Nagel
6d7a3d7fa4 download_strategy: use clear_cache where appropriate 2013-12-03 10:14:11 -06:00
Jack Nagel
099954499f Move jscoverage to the boneyard 2013-12-02 16:22:43 -06:00
Jack Nagel
6071e3b54c Fix tap migrations
When a `brew update` pulls down additions to tap_migrations.rb and the
removed formulae in the same update, the migrations will never run,
because tap_migrations.rb is loaded before the update takes place. Fix
this by loading it after the update.
2013-12-02 16:22:40 -06:00
Jack Nagel
690474dd3b Extract compute_and_install_dependencies 2013-12-02 12:49:58 -06:00
Jack Nagel
b5f83e60f9 Re-check requirements if a bottle installation fails 2013-12-02 12:49:58 -06:00
Jack Nagel
69dcc2592c Don't mutate deps collection when expanding requirements
Fixes Homebrew/homebrew-science#213.
2013-12-02 12:47:50 -06:00
Jack Nagel
bcfafca56b Always clear unsatisfied_deps after installation 2013-12-02 12:44:28 -06:00
Jack Nagel
24a853ebe5 unsatisfied_deps cannot be nil 2013-12-02 12:44:28 -06:00
Jack Nagel
2b23c163af Rename effective_deps to unsatisfied_deps 2013-12-02 12:44:28 -06:00
Jack Nagel
4443a9f2e1 Emit deprecation warning for --use-{gcc,llvm,clang}
Closes Homebrew/homebrew#24864.
2013-12-02 01:17:32 -06:00
Jack Nagel
ea992b02e5 Fix typo 2013-12-02 01:16:50 -06:00
Jack Nagel
98f25e4407 Yielded value is not used 2013-12-02 00:16:48 -06:00