Commit Graph
3752 Commits
Author SHA1 Message Date
Jack Nagel 410154e386 Help autoconf find m4 on Xcode-only systems
Closes #24904.
2013-12-06 20:56:46 -06:00
Misty De Meo 898a0a30dd SoftwareSpec: compact array that may contain nil 2013-12-05 23:09:52 -08:00
Misty De Meo c20270cb9f bottle_filename: remove unused revision default 2013-12-05 23:08:04 -08:00
Misty De Meo 6fb6b9c226 Bottles: fix bottle_filename revision
Fixes #24981.
2013-12-05 23:06:50 -08:00
Adam Vandenberg 5bb22226ac fix typo in this notice 2013-12-05 20:26:40 -08:00
Jack Nagel 3895148319 Fix typo 2013-12-05 22:17:56 -06:00
Jack Nagel db8431f397 Only coerce to Option when needed
Fixes #24833.
2013-12-05 22:17:01 -06:00
Adam Vandenberg 1b6c6b2b53 Move jsl to homebrew-binary
Closes #24826.
2013-12-05 19:32:53 -08:00
Misty De Meo b95f2357d8 Use BottleCollector in Bottle SoftwareSpec 2013-12-05 18:24:51 -08:00
Misty De Meo b11be1e98b 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 #23434.
2013-12-05 18:24:45 -08:00
Jack Nagel 2a7ce1a78c 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 b316b571ca bottle: String is not Enumerable in 1.9+ 2013-12-05 16:39:39 -06:00
Jack Nagel c874d3e4e3 bottle: fix reporting matches with spaces in them 2013-12-05 16:39:39 -06:00
Jack Nagel 7fcda041de bottle: fix false-positives from static libs when checking relocatability 2013-12-05 16:39:39 -06:00
Jack Nagel 7f195edef7 bottle: only split on newlines 2013-12-05 16:39:38 -06:00
Jack Nagel 34bae6d5fe String isn't Enumerable in 1.9+ 2013-12-05 15:09:18 -06:00
Jack Nagel 975ce057bc Run post_install after linking and relocation
Closes #24962.
2013-12-05 12:48:56 -06:00
Elliot Saba ab29ca7379 Relocate libtool (.la) files as well as pkgconfig (.pc)
Ignore quotes, just do a global substitution on cellar and prefix.

Closes #24894.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-12-04 22:37:58 -06:00
Jack Nagel 70dc0c52fb 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 f8dd7a3a41 relocate_install_names: only one substitution is needed 2013-12-04 22:37:58 -06:00
Jack Nagel 557bd65546 relocate_install_names: use a single ensure_writable block 2013-12-04 22:37:57 -06:00
Jack Nagel 23856ec545 relocate_install_names: yielded names are already strings 2013-12-04 22:37:57 -06:00
Jack Nagel 6b50dfa95e Let fix_install_names fix up placeholders too 2013-12-04 22:37:57 -06:00
Jack Nagel cdfe45b1d3 Teach installer about prefix and cellar placeholders 2013-12-04 22:37:57 -06:00
Jack Nagel 7dd0223732 Remove special handling for relocatable pkgconfig files 2013-12-04 22:37:57 -06:00
Jack Nagel 1623b9ef3c Do relocation check while preparing bottle 2013-12-04 22:37:57 -06:00
Jack Nagel 1a3eb21379 Insert placeholders for prefix and cellar in relocatable bottles 2013-12-04 22:37:57 -06:00
Jack Nagel 3e733aef7c 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 75b77125e9 fix_install_names: extract change_dylib_id 2013-12-04 22:37:57 -06:00
Jack Nagel 870f72a40e fix_install_names: extract change_install_name 2013-12-04 22:37:57 -06:00
Adam Vandenberg e1b2ead292 loosen FileUtils audit 2013-12-04 20:07:38 -08:00
Jack Nagel 83691490ce Homebrew CVS is required for Xcode 5+ 2013-12-04 01:19:17 -06:00
Misty De Meo 6647e49225 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 97f0601157 Adjust tests for ac1fd38075 2013-12-03 22:23:14 -06:00
Jack Nagel ac1fd38075 Make CompilerSelectionError an InstallationError
Fixes #19962.
2013-12-03 22:16:37 -06:00
Jack Nagel 9f2d4f7f82 SubversionDownloadStrategy: handle changed repository URL
Fixes #22159.
2013-12-03 21:13:02 -06:00
Jack Nagel ce03469916 SubversionDownloadStrategy: no need to escape 'svn' 2013-12-03 21:13:02 -06:00
Jack Nagel bf9f480dd8 download_strategy: use clear_cache where appropriate 2013-12-03 10:14:11 -06:00
Jack Nagel d2e70e4f3e Move jscoverage to the boneyard 2013-12-02 16:22:43 -06:00
Jack Nagel b9030a7dbb 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 f0cea61ee6 Extract compute_and_install_dependencies 2013-12-02 12:49:58 -06:00
Jack Nagel 2cfb03f85e Re-check requirements if a bottle installation fails 2013-12-02 12:49:58 -06:00
Jack Nagel 0ee6a4d6f9 Don't mutate deps collection when expanding requirements
Fixes Homebrew/homebrew-science#213.
2013-12-02 12:47:50 -06:00
Jack Nagel 5cb9e2ce31 Always clear unsatisfied_deps after installation 2013-12-02 12:44:28 -06:00
Jack Nagel 5df0f56c3e unsatisfied_deps cannot be nil 2013-12-02 12:44:28 -06:00
Jack Nagel d1da0bc1e4 Rename effective_deps to unsatisfied_deps 2013-12-02 12:44:28 -06:00
Jack Nagel c505d94f83 Emit deprecation warning for --use-{gcc,llvm,clang}
Closes #24864.
2013-12-02 01:17:32 -06:00
Jack Nagel de3c7d94bf Fix typo 2013-12-02 01:16:50 -06:00
Jack Nagel 7f29c760b9 Yielded value is not used 2013-12-02 00:16:48 -06:00
Jack Nagel 9d48cc819d Revert "Disable bottles when HOMEBREW_CELLAR.parent != HOMEBREW_PREFIX"
This reverts commit fdf20dc439.

Closes #24831.
Closes #24780.
2013-12-01 17:06:56 -06:00