769 Commits

Author SHA1 Message Date
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
Shaun Jackman
f6093961ef Add Homebrew::DEFAULT_PREFIX for Linux
The default prefix is /usr/local on macOS
and /home/linuxbrew/.linuxbrew on Linux.
2018-09-11 09:57:08 -07:00
Mike McQuaid
bb5166b3c7
os/mac: also update install on version bumps.
I also just remembered this today so let’s add a comment reminder.
2018-09-06 11:48:13 +01:00
Mike McQuaid
56453bc8f8
os/mac: note installation docs need bumped too.
I noticed these contain a reference to our supported versions so should
be bumped whenever this version is bumped.
2018-09-03 17:00:02 +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
Mike McQuaid
b2bfa6247f
Merge pull request #4678 from sjackman/mdfind
OS::Mac.mdfind: No need to guard on OS.mac?
2018-08-18 12:06:05 +01:00
Dominyk Tiller
2060eb233d
Merge pull request #4676 from DomT4/10xDevTools
10x/Mojave: update dev tool expected versions
2018-08-15 16:40:51 +01:00
Mike McQuaid
3e890c11ad
Merge pull request #4679 from sjackman/os-linux
Warn if os/linux is loaded on generic OS
2018-08-14 08:59:04 +01:00
Shaun Jackman
c480dd39a9 Warn if os/linux is loaded on generic OS 2018-08-13 23:38:48 -07:00
Shaun Jackman
a447548600 OS::Mac.mdfind: No need to guard on OS.mac?
This code is only used on macOS.
2018-08-13 23:37:00 -07: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
eea18a5cb1
MacOS: update sdk_path_if_needed logic 2018-08-08 10:45:48 -07: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
e00720e872
MacOS.sdk_path: prefer Xcode if installed 2018-08-08 10:45:48 -07:00
Misty De Meo
47ce9e04e3
Mac: add sdk_path_if_needed 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
Markus Reiter
2452b27866 Refactor ErrorDuringExecution. 2018-07-19 16:41:27 +02: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
Markus Reiter
458a1e7903 Remove Locations module. 2018-06-09 09:01:09 +02: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
9640ef0540
mac: add 9.4 & 10.0 compilers 2018-06-05 06:48:26 +01: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
Maxim Belkin
e5435dfeb7
Cross-platform diagnostics. 2018-05-14 04:44:15 -05: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
Shaun Jackman
73ba9b3d88 Define OS::Mac on Linux
Define MacOS.version, MacOS.full_version, and MacOS::Xcode.version to
Version::NULL on Linux so that brew readall succeeds and Homebrew/brew
can tap Homebrew/core on Linux.
2018-02-20 11:22:40 -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
46775f556f
Merge pull request #3542 from MikeMcQuaid/xcode-9.2
Xcode 9.2
2017-12-10 17:45:51 +00: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