466 Commits

Author SHA1 Message Date
Mike McQuaid
902e058f3e
Merge pull request #5501 from indirect/indirect/future-sdks
Treat future SDKs as "latest"
2019-01-21 10:32:36 +00:00
Mike McQuaid
170c5493a4
Update deprecations
- Add some `odeprecated`
- Make some `odeprecated` now `odisabled`
- Remove `odisabled` code.
- Remove old update migrations
- Remove GCC 4.0 compiler
- Remove Tiger-only code
- Remove 32-bit-only code
- Remove use of LD64
- Remove GCC 4.3 - 4.8 support.
2019-01-08 19:13:46 +00:00
Andre Arko
e63eff2201
Treat future SDKs as "latest"
Some SDKs return a number higher than the hard-coded `latest_version`
in this file. With the current `==` check, those higher version numbers
are treated as "not the latest". This prevents machines with
higher-versioned SDKs from being able to use Homebrew.

To resolve that problem, this PR changes the check to `>=`, which allows
machines with higher-versioned SDKs to also use Homebrew to install
packages.
2019-01-08 00:26:22 -08:00
Chongyu Zhu
d66c7ef973
xcode: upgrade for Xcode 10.1 release
The version of CLT package that comes with Xcode 10.1 is 1000.10.44.4,
which could be bumped at a later date since the Software Update is not
reliable at this moment.
2018-11-05 12:41:51 +08:00
Mike McQuaid
737b84b54b
brew style --fix fixes. 2018-11-02 17:29:23 +00:00
EricFromCanada
20167e5f1b Adjust comments to tidy API docs output. 2018-10-18 21:42:43 -04:00
Chongyu Zhu
c6a2e280a2
xcode: fix expected Clang version for CLT with Xcode 10 (10A255) 2018-10-02 02:51:29 +08:00
Mike McQuaid
b94a19af60
xcode: note CLT is now updated in System Preferences.
This should avoid some confusion.
2018-09-30 16:58:53 +01:00
Chongyu Zhu
e6b80ae7fd
xcode: update expected version on High Sierra with Xcode 10 (10A255) 2018-09-19 23:30:24 +08:00
Chongyu Zhu
6002fa7f13
xcode: update expected Clang version on Mojave with Xcode 10 (10A255) 2018-09-19 18:46:58 +08:00
Markus Reiter
e9b9ea49a1 Update to RuboCop 0.59.1. 2018-09-17 03:45:59 +02:00
Mike McQuaid
d7eca0b57c
Use Bundler to manage vendor directory
Rather than having to manually keep track of what version each thing in
here is and copy files around by hand on update let's use Bundler's
standalone mode and careful use of `.gitignore` to help us do it.

This means a `bundle update --standalone` will allow us to update all
gems in vendor.

We could consider vendoring other gems this way in future but I'd
suggest only doing this for gems with no dependencies or at least gems
with no native extensions. The only gem this applies to that we
currently use is `ruby-prof` and I'm not convinced it's widely used
enough to warrant vendoring for everyone. Perhaps that's another
criteria: it should be functionality that's used by non-developer
commands and/or normal Homebrew usage.
2018-09-13 15:24:18 +01:00
Mike McQuaid
80d75bc0d8
Homebrew/.rubocop: tweak rules.
Adjust the rules based on the current codebase. Remove various enable,
disables and default values that are unnecessary. Add more comments
explaining why. Make minor changes needed to enable a few more rules.
2018-09-02 20:15:09 +01:00
Mike McQuaid
bcb1ec5499
Improve Homebrew/brew line length.
Use 124 max line length everywhere. Also, reduce tap max line length to
189 as Homebrew/homebrew-core has that as a maximum now. In future
Homebrew/homebrew-core will also be reduced to 124 maximum line length.
2018-09-02 16:15:09 +01:00
Dominyk Tiller
a30eea6ab9
pkgconfig: update 10.14 sqlite version 2018-08-14 05:19:25 +01:00
Dominyk Tiller
1cf2ea79cf
xcode: update expected versions for Mojave 2018-08-14 00:02:19 +01:00
Misty De Meo
b66f2b207e
SDK: minor readability tweaks 2018-08-08 10:45:48 -07:00
Misty De Meo
5765dac86c
Xcode: allow requesting Xcode/CLT SDKs specifically 2018-08-08 10:45:48 -07:00
Misty De Meo
4f8a751579
SDK: allow finding CLT SDK path where present 2018-08-08 10:45:48 -07:00
Misty De Meo
ea84ffc62e
Xcode: adjust separate_header_package? logic 2018-08-08 10:45:48 -07:00
Misty De Meo
8450ffa8ad
OS::Mac: look up CLT SDK on 10.14+ 2018-08-08 10:45:45 -07:00
Dominyk Tiller
be2dd62869
xcode: update expected Clang on 10.14 2018-07-13 10:50:54 +01:00
Mike McQuaid
4ffc8b137b
Merge pull request #4281 from mistydemeo/fix_unparsed_clang_exception
Xcode: fix version detection with unknown clang
2018-07-12 09:35:57 +01:00
Misty De Meo
de9d462b76 CLT: correct header package bundle ID 2018-07-06 15:18:35 -07:00
Misty De Meo
296f3c309e CLT: add checks for the header package 2018-06-13 17:24:32 -07:00
William Woodruff
8bb4c4f96f
mach: Always report Mach-O parsing errors
This retains the raise-on-error behavior for developers, but
otherwise only prints an error message.
2018-06-06 11:22:21 -04:00
Misty De Meo
7f2cebd4df Xcode: fix version detection with unknown clang 2018-06-05 14:53:24 -07:00
Dominyk Tiller
595c232866
xcode: recognise/expect Xcode 9.4 on 10.13 2018-06-05 06:46:32 +01:00
Dominyk Tiller
b092f1d0a9
pkg-config: add initial files for 10.14 2018-06-05 05:31:43 +01:00
Dominyk Tiller
194c48e9d2
xcode: add initial support for Xcode 10.0 2018-06-05 05:31:40 +01:00
Dominyk Tiller
0c12ab5e83
mac/version: add symbol for macOS Mojave 2018-06-04 19:44:46 +01:00
ilovezfs
807a383bc5 Xcode 9.3 2018-04-17 06:26:12 -07:00
Mike McQuaid
7166289ad7 os/mac/xcode: revert an installed? guard removal.
Fixes #4084.
2018-04-17 12:05:09 +01:00
Mike McQuaid
85edbd28b1 Remove Xcode.installed? guards.
It's safe since 600d58f4ca3d85894c66a38802965fd94d4ea469 when
MacOS::Xcode.version started returning `Version::NULL` where
appropriate.
2018-04-17 10:58:51 +01:00
Mike McQuaid
9fca172d03 Fix HOMEBREW_RUBY_WARNINGS="-w"
Fix various circular requirements, method redefinitions, etc.
2018-04-07 20:28:56 +01:00
Nikoli Dryden
11817fe1f7
Generalize the regex determining the Xcode version.
The current regex only matches a single digit for each component of the version (e.g. 9.2). This modifies it to match multiple digits in each component, so that e.g. 10.42 will be matched.
2018-03-05 19:44:11 -06:00
Shaun Jackman
97932c1abf Move linkage_checker from os/mac to generic 2018-02-28 11:18:27 -08:00
Andrew Janke
c946da88ab linkage_checker: Distinguish indirect deps from undeclared deps 2018-02-10 10:26:54 -05:00
Mike McQuaid
b70b5429d0 Deprecate default_formula Requirement DSL
This has been a nightmare in terms of the complexity to our dependency
system and the whack-a-mole required on bugs. If a Requirement resolves
to a Formula it should just use `depends_on "formula"` instead. This
matches the effective behaviour all users of bottles (the vast majority
of users and installs) and what we're doing in Homebrew/homebrew-core.
2018-01-14 13:27:43 +00:00
Shaun Jackman
5d9149a4b9 LD64Dependency is needed on macOS only
Move ld64_dependency.rb to os/mac/.
2018-01-03 10:52:12 -08:00
Mike McQuaid
1aee4e1e1c Xcode 9.2
Update all the necessary versions but also cleanup some related
indentation and point the `Xcode.md` document to the code rather than
duplicating it there (which means it sometimes ends up outdated).
2017-12-08 14:59:15 +00:00
Shaun Jackman
d79c5ade1a Implement linkage for Linux 2017-12-03 16:22:51 -08:00
Mike McQuaid
8b9ac2b2e0 x11_requirement: remove custom minimum version.
This isn't desired or needed. Ensure older code still works, though.
2017-12-03 13:33:16 +00:00
Shaun Jackman
baa3d187d6 Add CVSRequirement and SubversionRequirement
Use these two requirements in DependencyCollector.
Remove the unused function MacOS::Xcode.provides_cvs?
2017-11-25 09:45:08 -08:00
Mike McQuaid
cd0db51343 diagnostic: check if Xcode needs CLT installed.
Require the CLT on all but the latest version of macOS to avoid the
continuous workarounds for SDK weirdness.
2017-11-17 21:35:49 +00:00
Mike McQuaid
ee4172159b
Merge pull request #3377 from maxim-belkin/extend-pathname
pathname: new methods and improvements
2017-11-10 17:49:27 +00:00
Maxim Belkin
de0b93f912
pathname: improvements, cleanups, and new methods
- atomic_write: close file before renaming to prevent error:
  'Device or resource busy'
- ensure_writable: preserve executable bit
- new elf? and dynamic? methods
2017-11-07 14:18:25 -06:00
ilovezfs
4cc72cf3be
Merge pull request #3409 from DomT4/xcode
Xcode 9.1 Updates.
2017-11-06 23:22:50 -08:00
Mike McQuaid
e300713f25 xcode: check Xcode installed before using version.
This avoids infinite recursion described in:
https://github.com/Homebrew/brew/pull/3422#issuecomment-342001451
2017-11-05 20:22:01 +00:00
Mike McQuaid
389188ac4f mac/xquartz: compare with existing Version class. 2017-11-05 15:39:43 +00:00