215 Commits

Author SHA1 Message Date
Martin Afanasjew
30cad0608f os: centralize check for pre-release OS X versions
Provide `OS::Mac.prerelease?` for pre-release checks and use it where
appropriate. This should simplify updating the test once a new OS X
release lands.

This also fixes a bug in `BuildError#dump`, where an empty warning
message was printed on El Capitan after a failed from-source build,
because the check there and the one in `check_for_unsupported_osx` were
out of sync.

Closes Homebrew/homebrew#45257.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-23 12:34:44 +01:00
Xu Cheng
646f94adfe move mach.rb to os/mac/mach.rb 2015-10-18 22:57:42 +08:00
Baptiste Fontaine
abfaa59e06 MacOS: full_version added
Closes Homebrew/homebrew#44988.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-18 22:57:42 +08:00
Dominyk Tiller
be8d348a6d os: add xcode 7.0.1 2015-10-01 05:51:35 +01:00
Xu Cheng
62be981016 use Pathname#executable? directly 2015-08-22 13:21:13 +08:00
William Woodruff
8793a68ee4 Add no-Xcode documentation for all classes, methods 2015-08-21 11:02:33 -07:00
William Woodruff
1face808f5 Add guards to calls that would trigger Xcode install requests
add guard in Formula#file_modified? to prevent git popup

add guard in Superenv.bin before calling MacOS::Xcode.version

add guard against missing Xcode/CLT in Xcode.uncached_version

return nil instread of 0 in uncached_version when Xcode/CLT are not present, to distinguish from linuxbrew behavior

checks against pour_bottle? and needs_relocation?, add guard around keg.relocate_install_names to check pour_bottle?/needs_relocation? as well

needs_relocation? becomes skip_relocation?, use cellar attr to indicate relocation instead of does_not_need_relocation

MacOS.can_build? becomes MacOS.has_apple_developer_tools?
2015-08-21 11:02:33 -07:00
William Woodruff
91e598cf3f Install: add BuildToolsError and BuildFlagsError
Add these new errors, and guards in formula installation and
cmd/{,un,re}install to match, move can_build? to the MacOS module,
flatten conditions, remove redundant can_build? check

reinstate removed (doctor) check
2015-08-21 10:59:09 -07:00
William Woodruff
85187bf6d3 MacOS: update locate_cctool
This becomes MacOS.{install_name_tool,otool}, only do check_xcode if
xcode is installed, otherwise emit a warning
2015-08-21 10:58:13 -07:00
BrewTestBot
13d544e11e Core files style updates.
Closes Homebrew/homebrew#42354.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 13:22:35 +01:00
Dominyk Tiller
0d12e4e601 mac: add xcode 6.4 expectation 2015-07-08 15:36:23 +01:00
Jack Nagel
929fd12650 Remove unused method 2015-06-27 16:25:44 -04:00
Dominyk Tiller
90c8b82d38 os: initial El Capitan support 2015-06-14 18:38:55 +01:00
Dominyk Tiller
ad467f0386 os: support xcode 6.3.2
Closes Homebrew/homebrew#39909.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-05-21 13:55:02 +01:00
Xu Cheng
2ea9d7749b non_apple_gcc_version: support gcc5
Closes Homebrew/homebrew#39899.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-05-19 16:10:17 +08:00
Dominyk Tiller
b7844d3b85 os/mac: add xcode 6.3.1 support 2015-04-23 09:23:20 +01:00
Dominyk Tiller
4d442b0316 os: support xcode 6.3
It’s Christmas. New stable OS X version, new Swift version, new Xcode,
new CLT and a new Clang version.

Closes Homebrew/homebrew#38468.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-09 11:25:15 +01:00
Dominyk Tiller
1c189cfc48 os: support xcode 6.2
Presume this will need to wait for the bots to be updated, but Xcode
6.2 has landed.

Closes Homebrew/homebrew#37549.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-10 08:33:08 +00:00
Viktor Szakats
fc2818b7a5 Use more https in urls and updated some lost links
Closes Homebrew/homebrew#35531.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-01-04 02:13:16 -05:00
Jack Nagel
9a2f2aee7e Use Utils.popen_read to avoid shelling out in a few places 2014-12-16 15:51:57 -05:00
Dominyk Tiller
b1a2104f0a os: xcode bump
Bumps to the latest Xcode 6.1.1.

Closes Homebrew/homebrew#34632.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-12-03 11:50:40 +00:00
Jack Nagel
35618c8bfe Xcode 6.0.1
Closes Homebrew/homebrew#32394.
2014-09-18 10:21:49 -05:00
Dominyk Tiller
8205ebabcb Prefer Xcode 6.1 on 10.10
More Yosemite changes. Within two weeks or so, Xcode should be made
available on the App Store, at which point 10.9 will need to go from
“5.1.1” to “6.0” but whilst Yosemite is in Beta *everyone* should be
using the Xcode Beta builds according to Apple, so Yosemite should be
on 6.1 for the foreseeable, even when Apple releases Xcode 6.0 to 10.9
& below. 6.1 is still using the same Clang version number at this point.

Closes Homebrew/homebrew#32201.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-09-10 00:44:37 -05:00
Dominyk Tiller
97af5a29f7 Initial Yosemite Support
Closes Homebrew/homebrew#31435.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-08-09 21:57:04 -05:00
Mike McQuaid
8cf69fac3f OS::Mac: allow clearing compiler version cache.
Without this it’s impossible for brew-test-bot to be able to verify if
installing GCC has allowed it to fix a compiler selection failure.
2014-07-24 08:51:09 +01:00
Jack Nagel
237fa3164d Use a hash to cache compiler version lookups 2014-07-13 10:50:56 -05:00
Jack Nagel
5c24b7330b Read if no block is passed to Utils.popen_read 2014-07-11 15:52:39 -05:00
Jack Nagel
677cd51977 Use Utils.popen_read in XQuartz version codepath 2014-07-11 15:41:54 -05:00
Jack Nagel
6c3c5b0a84 Loosen GCC version regexp to allow for custom version strings 2014-05-28 22:46:05 -05:00
Mike McQuaid
5955f2a395 os/mac: don't use Formula.factory unnecessarily.
Instead check if the path exists by using opt.
2014-05-06 16:45:50 +01:00
Jack Nagel
a8f0872cc0 Remove MacOS.dev_tools_path and MacOS.dev_tools_prefix
These methods are no longer required.
2014-05-01 18:36:46 -05:00
Jack Nagel
aa5a5a526f Rename Xcode.folder to MacOS.active_developer_dir
This reflects what Apple calls it in more recent versions of Xcode/OS X.
2014-05-01 18:36:46 -05:00
Jack Nagel
71055aa073 Move xctoolchain_path to Xcode module, where it belongs 2014-05-01 18:36:46 -05:00
Jack Nagel
564b5df261 Trust xcrun now that we error out early for bad xcode-select paths
Since ae177adb2bd55ee5ad6367e7639c4cf0c774b63a, we can safely assume
that xcrun works, and a functioning xcrun will search dev_tools_path and
xctoolchain_path, so we can stop doing extra work here.

On CLT-only 10.7 and 10.8, xcrun will not work, but all the tools will
be in /usr/bin, which we check before invoking xcrun. Further, in this
case, dev_tools_path will be /usr/bin, and xctoolchain_path will not
exist, so the fallbacks here are unnecessary.
2014-05-01 18:36:46 -05:00
Jack Nagel
89ed0c544b Remove unnecessary nil check 2014-05-01 18:22:39 -05:00
Jack Nagel
7052fe89b1 Fix caching of gcc_42_build_version 2014-05-01 16:57:14 -05:00
Jack Nagel
3040bd3aae Remove outdated comment 2014-05-01 16:47:28 -05:00
Mike McQuaid
55d277c335 Support core GCC formula as a GCC compiler.
It is activated by the same mechanism as the Homebrew/versions compilers
which now check if the GCC formula uses the same, correct version.

References Homebrew/homebrew#28418.
2014-04-23 08:10:48 +01:00
Jack Nagel
dbb527f352 The argument to MacOS.locate is always a string 2014-04-21 22:47:15 -05:00
Jack Nagel
7573855756 Only check Xcode prefix when non-nil 2014-04-21 18:52:12 -05:00
Jack Nagel
24e27465e0 Remove comments that no longer reflect any adjacent code 2014-04-21 18:51:43 -05:00
Jack Nagel
b78a4b7372 Don't call xcrun twice 2014-04-15 11:26:04 -05:00
Jack Nagel
2f052a2f65 Remove another unnecessary check 2014-04-15 11:26:03 -05:00
Clemens Gruber
dbe06bbbfc Add Xcode 5.1.1 (=Golden master build) clang version
Closes Homebrew/homebrew#28173.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-04-05 09:41:30 -05:00
Jack Nagel
4830bdb5b7 The argument to pkgutil_info is always a string 2014-04-01 20:49:11 -05:00
Jack Nagel
0d3121f781 Batch up mdfind calls when possible 2014-04-01 20:47:26 -05:00
Jack Nagel
5bd5e05541 Recognize Xcode 5.1 and CLT 5.1
Closes Homebrew/homebrew#27389.
Fixes Homebrew/homebrew#27390.
2014-03-10 15:26:36 -05:00
Mike McQuaid
2a2c9402b9 mac: note that we only track stable Xcode versions. 2014-01-22 17:48:47 -08:00
Misty De Meo
d7a6161751 Recommit ENV changes 2014-01-04 01:20:56 -08:00
Mike McQuaid
e3bb6f6e0b Revert "default_cc: locate already returns Pathnames"
This reverts commit 8ec6123d439e8f4d3586bbca6a426b726bd5e9dd.
2014-01-04 09:14:27 +00:00