aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/os/mac
AgeCommit message (Collapse)Author
2016-04-03Update documentation after repository split.Mike McQuaid
2016-03-19Document that Xcode.prefix can be nilTim D. Smith
2016-03-19Revert "Avoid constructing paths by string interpolation"Tim D. Smith
This reverts commit 8c7f3d859e8f715b6c63e4fe75e7a636aee4167f.
2016-03-19Avoid constructing paths by string interpolationTim D. Smith
Closes Homebrew/homebrew#50154.
2016-03-19More specific test for default prefixTim D. Smith
cf. Homebrew/homebrew#50154
2016-03-19Avoid pathological trailing slashTim D. Smith
Resolves an issue where xcode-select output with a terminal slash leads to superenv failing to strip system library paths from ccld-style invocations. Fixes Homebrew/homebrew#49731. Discussion in Homebrew/homebrew#50154.
2016-02-25os/mac/ruby_mach: don't hide actual parse errorsMartin Afanasjew
The current approach of suppressing all output regardless of what the error is makes it very hard to debug any issues and misread but valid Mach-O files will be silently interpreted as non-Mach-O files instead. Prefer to fail if we are a Homebrew developer or running on the bot (`HOMEBREW_DEVELOPER=1`), so that problems will be noticed and fixed before the silent failure leads to hard-to-diagnose user problems. Closes Homebrew/homebrew#48817. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-02-07os/mac/xcode: expect Xcode 7.2.1Dominyk Tiller
2016-02-03os/mac: optionally use ruby_macho.William Woodruff
- and branch for dylib_id_and_dylibs - add branches for dylib id changing and change_install_name - rename MachO module to HomebrewMachO to prevent namespace clashes with MachO in ruby-macho. this will eventually be replaced entirely with direct calls to ruby-macho methods - break ruby-macho implementation out into separate RubyMachO module, and include either RubyMachO or CctoolsMachO (the original implementation) based on the HOMEBREW_RUBY_MACHO env var - move ArchitectureListExtension and RubyMachO into separate files - create {ruby_,cctools_,,}relocate.rb for isolation of different methods of mach-o relocation (ruby-macho vs. cctools) - fill in require_install_name_tool? for ruby_relocate.rb - rename {ruby_,cctools_,,}relocate.rb to keg, isolate requires in os/mac Closes Homebrew/homebrew#45001. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-02-03architecture_list: add new module.William Woodruff
remove old mach.rb, replace with cctools_mach.rb and prune ELF case move ArchitectureListExtension to separate file ELF support is maintained in Linuxbrew
2016-02-03os/mac/hardware: add Skylake CPU.ilovezfs
Closes Homebrew/homebrew#48781. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-19os/mac: use start_with? when possibleBaptiste Fontaine
Closes Homebrew/homebrew#48071. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-12-10os/mac/xcode: expect xcode 7.2Dominyk Tiller
2015-12-07MacOS: refactor sdk_path lookupMisty De Meo
* Pull SDK lookup code into a new `locator` class, which caches its results * SDKLocator only queries one SDK location, not all SDK locations * Build a map of all installed SDKs inside that location, instead of just the requested SDK * Ask xcrun for --show-sdk-platform-path first so that all SDKs can be found, instead of asking xcodebuild for a specific SDK * Add a new `SDK` class, which tracks the version and the prefix; add a new `MacOS.sdk` method which returns an `SDK` instance instead of a bare path; MacOS.sdk_path still returns a bare path
2015-11-29xcode: expect 7.1.1Dominyk Tiller
2015-11-01os/mac/hardware: reverse universal_archs entries.Ryan Hendrickson
The order ought not to matter, but GCC can fail with -arch i386 -arch x86_64 (producing an error like "FATAL:Bad fx_size (0x8) in fix_to_relocation_info()") but succeed with -arch x86_64 -arch i386. Closes Homebrew/homebrew#45401. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-29xquartz: add 2.7.8Martin Afanasjew
Closes Homebrew/homebrew#45254. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-10-24xcode: expect xcode 7.1Martin Afanasjew
Closes Homebrew/homebrew#45266. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-10-23os: centralize check for pre-release OS X versionsMartin Afanasjew
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-18use Utils.popen_read instead of ENV trick to escape pathXu Cheng
Closes Homebrew/homebrew#45021. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-18move mach.rb to os/mac/mach.rbXu Cheng
2015-10-01xcode: expect xcode 7.0.1Dominyk Tiller
2015-09-04xcode: update 10.11 clang expectationDominyk Tiller
2015-08-21Merge bottle install without Xcode branchMisty De Meo
Merge branch 'bottle_hooks'
2015-08-21Add guards to calls that would trigger Xcode install requestsWilliam Woodruff
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-21xcode: update 10.11 clangDominyk Tiller
2015-08-06more core file style updated by rubocopXu Cheng
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-30xcode: update clang expectation for 10.11Dominyk Tiller
2015-07-30xcode: update regexDominyk Tiller
Ensures we capture Clang's fourth-digit when it exists. This seems to be on pre-release versions of OS X only, but is the cause of the misdetection of CLT up-to-date status on 10.11 several weeks ago. For full explanation, see Homebrew/homebrew#42261. Closes Homebrew/homebrew#42261.
2015-07-09xcode: update clang for 10.11Dominyk Tiller
2015-07-08xcode: add 6.4 expectationDominyk Tiller
2015-06-27xcode: update clang versionDominyk Tiller
Closes Homebrew/homebrew#41095. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-06-16Add explicit branch for 10.11 in Xcode version listJack Nagel
2015-06-16"Mac OS X" -> "OS X" in copyJack Nagel
2015-06-14os: initial El Capitan supportDominyk Tiller
2015-05-21os: support xcode 6.3.2Dominyk Tiller
Closes Homebrew/homebrew#39909. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-24hardware: correctly detect early 2015 MacBook Pro.enami tsugutomo
Closes Homebrew/homebrew#38996. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-23mac/xcode: add xcode 6.3.1 supportDominyk Tiller
Closes Homebrew/homebrew#38514.
2015-04-09os: support xcode 6.3Dominyk Tiller
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-03-10os: support xcode 6.2Dominyk Tiller
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-02-27Include more features in Hardware::CPU.featuresJack Nagel
2015-02-27Make sysctl methods private rather than protectedJack Nagel
2015-02-27Drop unnecessary $?.success? checkJack Nagel
2015-02-27Move caching from sysctl_bool to sysctl_nJack Nagel
2015-02-27Add sysctl_n and sysctl_int methods to Mac hardware moduleJack Nagel
2015-01-04Use more https in urls and updated some lost linksViktor Szakats
Closes Homebrew/homebrew#35531. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-12-16Use Utils.popen_read to avoid shelling out in a few placesJack Nagel
2014-12-03os: xcode bumpDominyk Tiller
Bumps to the latest Xcode 6.1.1. Closes Homebrew/homebrew#34632. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-10-29Revert "Revert "xcode: use 6.1 on Mavericks.""Jack Nagel
This reverts commit 2b472a6e2634a7b7592abb7084b20a098f4a488b.