Commit Graph
354 Commits
Author SHA1 Message Date
Mike McQuaid 57db2e539e Revert "Merge pull request #2597 from MikeMcQuaid/vendor-gems"
This reverts commit 3e4547f52e, reversing
changes made to 6edf9382bc.
2017-05-07 17:28:39 +01:00
Mike McQuaid e1bbab6ca6 Revert "Merge pull request #2603 from MikeMcQuaid/tweak-gem-vendoring"
This reverts commit 2372872974, reversing
changes made to 3e4547f52e.
2017-05-07 17:28:37 +01:00
Mike McQuaid 33f83be10e Tweak Gem vendoring.
If people have `HOMEBREW_RUBY_PATH` set then things explode in a rather
confusing fashion. Instead, run `bundle` for them with the arguments
that they'd want.

Also, move `macho` requires into the module itself; it's a pain having
to do everything for Bundler before requiring `pathname` which is a core
Ruby class.
2017-05-07 15:33:54 +01:00
Mike McQuaid ee253e465b Vendor all Homebrew's gems.
Homebrew's actually ended up using a fair few gems. While we want to
avoid Bundler at runtime (and this PR still does that, in fact uses
Bundler even less at runtime than it did before) writing our own version
to use at build-time seems redundant.
2017-05-07 13:52:57 +01:00
JCount 4b90f5fdc8 xcode: update Sierra CLT version to 802.0.42 2017-04-24 17:32:10 -04:00
Mike McQuaid 45a7730f61 Fix and remove various TODOs.
Fix those that can be done so without tearing Homebrew to pieces and
remove the comments for those that can never be done.
2017-04-23 15:10:18 +01:00
Mike McQuaid ba3c46d24f More deprecations.
Deprecate more methods. Internal APIs have been verified to be unused
elsewhere and removed. External APIs have had deprecation methods added.
Existing deprecations have been either upgraded to produce warnings or
no longer deprecated and the reasoning documented.
2017-04-22 16:28:07 +01:00
JCount 19ed38df24 xcode: 8.3.2 is latest version 2017-04-19 19:06:24 -04:00
Mike McQuaid ce1920f7df xcode: 8.3.1 is latest version.
Our CI images are already updated with it.
2017-04-10 21:06:36 +01:00
EricFromCanada c5bac087b3 update latest versions of Xcode for 10.11 & 10.12 2017-03-28 11:16:02 -04:00
EricFromCanada 60f6dfea14 update suggested Xcode/CLT download URLs 2017-03-28 11:12:34 -04:00
William Woodruff 0dda8a13f1 keg: Skip relocation when dylib ID/install name doesn't change. 2017-03-12 12:29:35 -04:00
FX Coudert ac8dd9ae7d Don't list duplicate dylibs for universal 2017-03-04 14:05:32 +01:00
Markus Reiter 94dceeab1d Move require_relocation? from os/mac/keg to keg. 2017-02-11 13:43:00 +01:00
Markus Reiter d94636cde9 Allow overriding MacOS.version. 2017-01-24 23:43:56 +01:00
Mike McQuaid 50c1fea4ea xcode: reduce minimum CLT version.
This should be 1.0.0 to be nicer to 10.7 users.

Fixes #1893.
2017-01-23 21:22:54 +00:00
Mike McQuaid a17f38dd36 xcode: use default location when possible.
Xcode can be installed anywhere but for most people it's in
`/Applications/Xcode.app` so just look there if `xcode-select` isn't
helpful before looking at Spotlight which can return weird results on
e.g. backup disks.

Fixes #1587.
2017-01-09 21:10:55 -08:00
Mike McQuaid 2c6915a48f xcode: general cleanup. 2017-01-09 21:10:55 -08:00
Mike McQuaid 4a39070c26 xquartz: use default location when possible.
Xcode can be installed anywhere but for most people it's in
`/Applications/Xcode.app` so just look there by default before looking
at Spotlight which can return weird results on e.g. backup disks.
2017-01-09 21:10:55 -08:00
Mike McQuaid e50102d91e ENV: deprecate old methods.
These should have been deprecated long ago but we didn’t really have
the necessary framework to do so.
2016-12-30 20:20:13 +00:00
Mike McQuaid e950aa11d1 Remove Xcode prerelease warnings.
At this point we probably do want to know about issues that crop up in
betas so we can fix them before the new version of Xcode is released.
Additionally, this doesn't really work well any more with our new
tag-based workflow as it means we need to cut a new tag immediately
after a new Xcode is released.
2016-12-19 18:01:36 +00:00
Mike McQuaid 477faf073b Never trigger too old CLT check on <10.7.
While we fake a CLT for these versions they never shipped with the CLT
so cannot update it.
2016-12-18 15:31:17 -08:00
dersvenhesseandGitHub b3174aa3e2 XCode 8.2 is stable 2016-12-12 23:29:35 +01:00
Mike McQuaid 43f8d2c7a0 xcode: cleanup Xcode::Version usage.
Don't wrap `MacOS.version` which does comparisons properly already and
avoid stupidly long lines.
2016-12-05 11:09:21 +00:00
Sorin Ionescu 282c0a30b6 Fix macOS version comparison 2016-11-26 13:59:55 -05:00
Mike McQuaidandGitHub 694cc876ef Merge pull request #1415 from robinkunde/semver
Update macOS Xcode tool checks do use Version class for comparisons
2016-11-13 10:53:34 +00:00
Robin Kunde e97ce7e7ae move semantic version comparisons into separate class 2016-11-12 15:37:32 -05:00
William Woodruff 9267511e6b os/mac: Rename MachO -> MachOShim
Prevents namespace conflict with vendored ruby-macho.
2016-11-09 17:35:56 -05:00
William Woodruff 032ed07bce os/mac: Allow MachO.dynamically_linked_libraries to be filtered by dylib type.
This allows us to filter out weak linkages during audits, preventing
a false error from occurring when the dylib cannot be found.
2016-11-09 17:35:56 -05:00
Mike McQuaid 4015d0465a xcode: add checks for Xcode/CLT minimum versions. 2016-11-05 10:58:38 -04:00
Robin Kunde 2c79868229 Update latest clang version for 10.12 2016-10-31 00:51:38 -04:00
Robin Kunde 5326eecb9d Update macOS Xcode tool checks do use Version class for comparisons instead of strings 2016-10-31 00:51:21 -04:00
dersvenhesseandGitHub 70cc7790f6 Updated latest versions since XCode 8.1 release 2016-10-28 23:34:12 +02:00
dersvenhesseandGitHub 4701eff45f XCode 8.1 is stable 2016-10-27 23:35:52 +02:00
Markus Reiter 546a91f78e Add —language option. 2016-10-03 02:34:53 +02:00
Markus Reiter b703c81ca6 Stub MacOS.languages instead of setting HOMEBREW_LANGUAGES. 2016-10-03 02:34:53 +02:00
Markus Reiter 87299af225 Add test for language stanza. 2016-10-03 02:34:53 +02:00
Markus Reiter 1a25f1ec6d Make MacOS.language less opinionated. 2016-10-03 02:34:52 +02:00
Markus Reiter 00b3dde0b2 RuboCop: MacOS 2016-09-25 00:16:31 +02:00
Markus Reiter 58e36c7319 Fix Style/GuardClause. 2016-09-24 12:24:35 +02:00
Markus Reiter 23eac7ab89 Fix DoubleNegation. 2016-09-23 15:30:06 +02:00
Mike McQuaidandGitHub 9001855d64 Merge pull request #1086 from woodruffw/macho-cosmetics
Remove old cctools references now that only ruby-macho is used.
2016-09-23 10:40:08 +01:00
William Woodruff 846a5b79b6 Remove old cctools references now that only ruby-macho is used. 2016-09-22 14:36:24 -04:00
Dominyk Tiller 5575c17629 xcode: prefer Utils.popen_read 2016-09-22 18:15:47 +01:00
Dominyk Tiller b089520682 xcode: revert expectation of 10.11 8.0 CLT 2016-09-22 18:15:47 +01:00
Dominyk Tiller 860f4bd11f xcode: expect Xcode 8.0 on OS X 10.11 2016-09-22 17:30:56 +01:00
William Woodruff d16e4a782e os/mac: Delete old cctools-based relocation code.
Disable check for $HOMEBREW_NO_RUBY_MACHO now that no alternative exists.
2016-09-20 17:48:21 -04:00
Mike McQuaidandGitHub 7ef74614e7 Merge pull request #985 from MikeMcQuaid/drop-mavericks
os/mac: mark Mavericks as outdated.
2016-09-20 08:20:25 +01:00
Mike McQuaid a09799f25a os/mac: fall back to old environment.
Can't see how this could ever happen but let's safe-guard it just in
case (as ilovezfs saw it).
2016-09-19 09:17:35 +01:00
Mike McQuaid b383d95352 os/mac: mark Mavericks as outdated. 2016-09-18 19:59:08 +01:00