Commit Graph
3735 Commits
Author SHA1 Message Date
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
Jack Nagel 71d8ae8c3f Ensure cellar path is replace correctly for relocatable bottles 2013-12-01 17:05:02 -06:00
Jack Nagel 2b12d806eb Skip path replacement when it would be a no-op 2013-12-01 17:05:02 -06:00
Jack Nagel cffccf5e42 Extract repeated regexp to a method 2013-12-01 17:05:02 -06:00
Adam Vandenberg 10054a87c3 Move lmutil to homebrew-binary
Closes #24843.
2013-12-01 13:59:27 -08:00
Mike McQuaid 90cf3ba458 bottle: make writing commit message more robust. 2013-12-01 10:26:20 -08:00
Jack Nagel fdf20dc439 Disable bottles when HOMEBREW_CELLAR.parent != HOMEBREW_PREFIX 2013-11-30 16:44:14 -06:00
Jack Nagel 8bc77f5342 Revert "disable :any bottles due to #24780"
This reverts commit 31bab6e52b.
2013-11-30 16:35:58 -06:00
Adam Vandenberg 31bab6e52b disable :any bottles due to #24780 2013-11-30 10:47:46 -08:00
Jack Nagel 0177fd5877 Flush stdout before leaving Formula#system 2013-11-29 21:05:28 -06:00
Jack Nagel 7eab376139 Revert "FormulaInstaller: flush before closing writes."
This reverts commit 5ce8f7a3a4.
2013-11-29 21:05:27 -06:00
Adam Vandenberg 107ab9c04a support .lz archives
Closes #24775.
2013-11-29 15:18:49 -08:00
Jack Nagel 841bf8f838 Implement MacOS.dev_tools_prefix a different way
Avoid producing a dev_tools_path of "//usr/bin".

Fixes #24751.
Closes #24754.
2013-11-28 19:27:33 -06:00
Adam Vandenberg ce226e7aca Move cmucl to homebrew-binary 2013-11-28 12:42:45 -08:00
Adam Vandenberg c16cced13e Move aimage to boneyard
No longer maintained; homepage suggests alternatives.

Closes #24728.
2013-11-28 11:56:26 -08:00
Adam Vandenberg 8745782008 typo 2013-11-28 11:21:54 -08:00
Jack Nagel 1435beb067 Require Formula before using it 2013-11-27 17:30:21 -06:00
Jack Nagel fbecd2018d Adjust optimization flags if the CPU does not support SSE4
Tentatively fixes #21778, #24363.
2013-11-27 17:25:27 -06:00