Merge pull request #1019 from MikeMcQuaid/macos-rename

Use new "macOS" naming where appropriate.
This commit is contained in:
Mike McQuaid 2016-09-19 08:17:36 +01:00 committed by GitHub
commit 167af26a24
46 changed files with 116 additions and 116 deletions

View File

@ -70,23 +70,23 @@ unset BASH_ENV
HOMEBREW_SYSTEM="$(uname -s)" HOMEBREW_SYSTEM="$(uname -s)"
case "$HOMEBREW_SYSTEM" in case "$HOMEBREW_SYSTEM" in
Darwin) HOMEBREW_OSX="1" ;; Darwin) HOMEBREW_MACOS="1" ;;
Linux) HOMEBREW_LINUX="1" ;; Linux) HOMEBREW_LINUX="1" ;;
esac esac
HOMEBREW_CURL="/usr/bin/curl" HOMEBREW_CURL="/usr/bin/curl"
if [[ -n "$HOMEBREW_OSX" ]] if [[ -n "$HOMEBREW_MACOS" ]]
then then
HOMEBREW_PROCESSOR="$(uname -p)" HOMEBREW_PROCESSOR="$(uname -p)"
HOMEBREW_PRODUCT="Homebrew" HOMEBREW_PRODUCT="Homebrew"
HOMEBREW_SYSTEM="Macintosh" HOMEBREW_SYSTEM="Macintosh"
# This is i386 even on x86_64 machines # This is i386 even on x86_64 machines
[[ "$HOMEBREW_PROCESSOR" = "i386" ]] && HOMEBREW_PROCESSOR="Intel" [[ "$HOMEBREW_PROCESSOR" = "i386" ]] && HOMEBREW_PROCESSOR="Intel"
HOMEBREW_OSX_VERSION="$(/usr/bin/sw_vers -productVersion)" HOMEBREW_MACOS_VERSION="$(/usr/bin/sw_vers -productVersion)"
HOMEBREW_OS_VERSION="Mac OS X $HOMEBREW_OSX_VERSION" HOMEBREW_OS_VERSION="macOS $HOMEBREW_MACOS_VERSION"
printf -v HOMEBREW_OSX_VERSION_NUMERIC "%02d%02d%02d" ${HOMEBREW_OSX_VERSION//./ } printf -v HOMEBREW_MACOS_VERSION_NUMERIC "%02d%02d%02d" ${HOMEBREW_MACOS_VERSION//./ }
if [[ "$HOMEBREW_OSX_VERSION_NUMERIC" -lt "100900" && if [[ "$HOMEBREW_MACOS_VERSION_NUMERIC" -lt "100900" &&
-x "$HOMEBREW_PREFIX/opt/curl/bin/curl" ]] -x "$HOMEBREW_PREFIX/opt/curl/bin/curl" ]]
then then
HOMEBREW_CURL="$HOMEBREW_PREFIX/opt/curl/bin/curl" HOMEBREW_CURL="$HOMEBREW_PREFIX/opt/curl/bin/curl"
@ -121,11 +121,11 @@ export HOMEBREW_CURL
export HOMEBREW_PROCESSOR export HOMEBREW_PROCESSOR
export HOMEBREW_PRODUCT export HOMEBREW_PRODUCT
export HOMEBREW_OS_VERSION export HOMEBREW_OS_VERSION
export HOMEBREW_OSX_VERSION export HOMEBREW_MACOS_VERSION
export HOMEBREW_USER_AGENT export HOMEBREW_USER_AGENT
export HOMEBREW_USER_AGENT_CURL export HOMEBREW_USER_AGENT_CURL
if [[ -n "$HOMEBREW_OSX" ]] if [[ -n "$HOMEBREW_MACOS" ]]
then then
XCODE_SELECT_PATH=$('/usr/bin/xcode-select' --print-path 2>/dev/null) XCODE_SELECT_PATH=$('/usr/bin/xcode-select' --print-path 2>/dev/null)
if [[ "$XCODE_SELECT_PATH" = "/" ]] if [[ "$XCODE_SELECT_PATH" = "/" ]]
@ -224,7 +224,7 @@ check-run-command-as-root() {
onoe <<EOS onoe <<EOS
Running Homebrew as root is extremely dangerous. As Homebrew does not Running Homebrew as root is extremely dangerous. As Homebrew does not
drop privileges on installation you are giving all build scripts full access drop privileges on installation you are giving all build scripts full access
to your system. As a result of the OS X sandbox not handling the root user to your system. As a result of the macOS sandbox not handling the root user
correctly HOMEBREW_NO_SANDBOX has been set so the sandbox will not be used. If correctly HOMEBREW_NO_SANDBOX has been set so the sandbox will not be used. If
we have not merged a pull request to add privilege dropping by November 1st we have not merged a pull request to add privilege dropping by November 1st
2016 running Homebrew as root will be disabled. No Homebrew maintainers plan 2016 running Homebrew as root will be disabled. No Homebrew maintainers plan

View File

@ -19,7 +19,7 @@
#: bottle. #: bottle.
#: #:
#: If `--force-bottle` is passed, download a bottle if it exists for the current #: If `--force-bottle` is passed, download a bottle if it exists for the current
#: version of OS X, even if it would not be used during installation. #: version of macOS, even if it would not be used during installation.
require "formula" require "formula"

View File

@ -34,7 +34,7 @@
#: #:
# Hidden developer option: # Hidden developer option:
# If `--force-bottle` is passed, install from a bottle if it exists # If `--force-bottle` is passed, install from a bottle if it exists
# for the current version of OS X, even if custom options are given. # for the current version of macOS, even if custom options are given.
# #
#: If `--devel` is passed, and <formula> defines it, install the development version. #: If `--devel` is passed, and <formula> defines it, install the development version.
#: #:

View File

@ -1,5 +1,5 @@
#: * `linkapps` [`--local`] [<formulae>]: #: * `linkapps` [`--local`] [<formulae>]:
#: Find installed formulae that provide `.app`-style OS X apps and symlink them #: Find installed formulae that provide `.app`-style macOS apps and symlink them
#: into `/Applications`, allowing for easier access. #: into `/Applications`, allowing for easier access.
#: #:
#: If no <formulae> are provided, all of them will have their apps symlinked. #: If no <formulae> are provided, all of them will have their apps symlinked.

View File

@ -23,7 +23,7 @@ git() {
} }
git_init_if_necessary() { git_init_if_necessary() {
if [[ -n "$HOMEBREW_OSX" ]] if [[ -n "$HOMEBREW_MACOS" ]]
then then
BREW_OFFICIAL_REMOTE="https://github.com/Homebrew/brew" BREW_OFFICIAL_REMOTE="https://github.com/Homebrew/brew"
CORE_OFFICIAL_REMOTE="https://github.com/Homebrew/homebrew-core" CORE_OFFICIAL_REMOTE="https://github.com/Homebrew/homebrew-core"

View File

@ -9,7 +9,7 @@ source "$HOMEBREW_LIBRARY/Homebrew/utils/lock.sh"
VENDOR_DIR="$HOMEBREW_LIBRARY/Homebrew/vendor" VENDOR_DIR="$HOMEBREW_LIBRARY/Homebrew/vendor"
# Built from https://github.com/Homebrew/homebrew-portable. # Built from https://github.com/Homebrew/homebrew-portable.
if [[ -n "$HOMEBREW_OSX" ]] if [[ -n "$HOMEBREW_MACOS" ]]
then then
if [[ "$HOMEBREW_PROCESSOR" = "Intel" ]] if [[ "$HOMEBREW_PROCESSOR" = "Intel" ]]
then then

View File

@ -31,8 +31,8 @@ BOTTLE_ERB = <<-EOS.freeze
<% end %> <% end %>
<% checksums.each do |checksum_type, checksum_values| %> <% checksums.each do |checksum_type, checksum_values| %>
<% checksum_values.each do |checksum_value| %> <% checksum_values.each do |checksum_value| %>
<% checksum, osx = checksum_value.shift %> <% checksum, macos = checksum_value.shift %>
<%= checksum_type %> "<%= checksum %>" => :<%= osx %> <%= checksum_type %> "<%= checksum %>" => :<%= macos %>
<% end %> <% end %>
<% end %> <% end %>
end end

View File

@ -554,7 +554,7 @@ module Homebrew
Homebrew doesn't provide a libiconv formula, and expects to link against Homebrew doesn't provide a libiconv formula, and expects to link against
the system version in /usr. libiconv in other prefixes can cause the system version in /usr. libiconv in other prefixes can cause
compile or link failure, especially if compiled with improper compile or link failure, especially if compiled with improper
architectures. OS X itself never installs anything to /usr/local so architectures. macOS itself never installs anything to /usr/local so
it was either installed by a user or some other third party software. it was either installed by a user or some other third party software.
tl;dr: delete these files: tl;dr: delete these files:
@ -659,7 +659,7 @@ module Homebrew
<<-EOS.undent <<-EOS.undent
Your Cellar and TEMP directories are on different volumes. Your Cellar and TEMP directories are on different volumes.
OS X won't move relative symlinks across volumes unless the target file already macOS won't move relative symlinks across volumes unless the target file already
exists. Brews known to be affected by this are Git and Narwhal. exists. Brews known to be affected by this are Git and Narwhal.
You should set the "HOMEBREW_TEMP" environmental variable to a suitable You should set the "HOMEBREW_TEMP" environmental variable to a suitable
@ -696,7 +696,7 @@ module Homebrew
<<-EOS.undent <<-EOS.undent
The filesystem on #{case_sensitive_vols.join(",")} appears to be case-sensitive. The filesystem on #{case_sensitive_vols.join(",")} appears to be case-sensitive.
The default OS X filesystem is case-insensitive. Please report any apparent problems. The default macOS filesystem is case-insensitive. Please report any apparent problems.
EOS EOS
end end

View File

@ -356,8 +356,8 @@ class BuildError < RuntimeError
end end
require "diagnostic" require "diagnostic"
unsupported_osx = Homebrew::Diagnostic::Checks.new.check_for_unsupported_osx unsupported_macos = Homebrew::Diagnostic::Checks.new.check_for_unsupported_macos
opoo unsupported_osx if unsupported_osx opoo unsupported_macos if unsupported_macos
end end
end end

View File

@ -3,7 +3,7 @@ module Homebrew
class Checks class Checks
def development_tools_checks def development_tools_checks
%w[ %w[
check_for_unsupported_osx check_for_unsupported_macos
check_for_prerelease_xcode check_for_prerelease_xcode
check_for_bad_install_name_tool check_for_bad_install_name_tool
check_for_installed_developer_tools check_for_installed_developer_tools
@ -25,7 +25,7 @@ module Homebrew
end end
end end
def check_for_unsupported_osx def check_for_unsupported_macos
return if ARGV.homebrew_developer? return if ARGV.homebrew_developer?
who = "We" who = "We"
@ -39,7 +39,7 @@ module Homebrew
end end
<<-EOS.undent <<-EOS.undent
You are using OS X #{MacOS.version}. You are using macOS #{MacOS.version}.
#{who} do not provide support for this #{what}. #{who} do not provide support for this #{what}.
You may encounter build failures or other breakages. You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues. Please create pull-requests instead of filing issues.
@ -98,7 +98,7 @@ module Homebrew
<<-EOS.undent <<-EOS.undent
You have Xcode 8 installed without the CLT; You have Xcode 8 installed without the CLT;
this causes certain builds to fail on OS X 10.11. this causes certain builds to fail on OS X El Capitan (10.11).
Please install the CLT via: Please install the CLT via:
sudo xcode-select --install sudo xcode-select --install
EOS EOS
@ -150,7 +150,7 @@ module Homebrew
You have an outdated version of /usr/bin/install_name_tool installed. You have an outdated version of /usr/bin/install_name_tool installed.
This will cause binary package installations to fail. This will cause binary package installations to fail.
This can happen if you install osx-gcc-installer or RailsInstaller. This can happen if you install osx-gcc-installer or RailsInstaller.
To restore it, you must reinstall OS X or restore the binary from To restore it, you must reinstall macOS or restore the binary from
the OS packages. the OS packages.
EOS EOS
end end

View File

@ -40,7 +40,7 @@ class SystemConfig
def dump_verbose_config(f = $stdout) def dump_verbose_config(f = $stdout)
dump_generic_verbose_config(f) dump_generic_verbose_config(f)
f.puts "OS X: #{MacOS.full_version}-#{kernel}" f.puts "macOS: #{MacOS.full_version}-#{kernel}"
f.puts "Xcode: #{xcode ? xcode : "N/A"}" f.puts "Xcode: #{xcode ? xcode : "N/A"}"
f.puts "CLT: #{clt ? clt : "N/A"}" f.puts "CLT: #{clt ? clt : "N/A"}"
f.puts "X11: #{describe_xquartz}" f.puts "X11: #{describe_xquartz}"

View File

@ -1988,7 +1988,7 @@ class Formula
# depends_on :fortran # Checks that `gfortran` is available or `FC` is set. # depends_on :fortran # Checks that `gfortran` is available or `FC` is set.
# depends_on :mpi => :cc # Needs MPI with `cc` # depends_on :mpi => :cc # Needs MPI with `cc`
# depends_on :mpi => [:cc, :cxx, :optional] # Is optional. MPI with `cc` and `cxx`. # depends_on :mpi => [:cc, :cxx, :optional] # Is optional. MPI with `cc` and `cxx`.
# depends_on :macos => :lion # Needs at least Mac OS X "Lion" aka. 10.7. # depends_on :macos => :lion # Needs at least OS X Lion (10.7).
# depends_on :apr # If a formula requires the CLT-provided apr library to exist. # depends_on :apr # If a formula requires the CLT-provided apr library to exist.
# depends_on :arch => :intel # If this formula only builds on Intel architecture. # depends_on :arch => :intel # If this formula only builds on Intel architecture.
# depends_on :arch => :x86_64 # If this formula only builds on Intel x86 64-bit. # depends_on :arch => :x86_64 # If this formula only builds on Intel x86 64-bit.
@ -2004,7 +2004,7 @@ class Formula
# depends_on :postgresql if build.without? "sqlite" # depends_on :postgresql if build.without? "sqlite"
# depends_on :hg # Mercurial (external or brewed) is needed</pre> # depends_on :hg # Mercurial (external or brewed) is needed</pre>
# #
# <pre># If any Python >= 2.7 < 3.x is okay (either from OS X or brewed): # <pre># If any Python >= 2.7 < 3.x is okay (either from macOS or brewed):
# depends_on :python</pre> # depends_on :python</pre>
# <pre># to depend on Python >= 2.7 but use system Python where possible # <pre># to depend on Python >= 2.7 but use system Python where possible
# depends_on :python if MacOS.version <= :snow_leopard</pre> # depends_on :python if MacOS.version <= :snow_leopard</pre>
@ -2117,8 +2117,8 @@ class Formula
# add the necessary includes and libs (etc.) during the brewing of that # add the necessary includes and libs (etc.) during the brewing of that
# other formula. But generally, keg_only formulae are not in your PATH # other formula. But generally, keg_only formulae are not in your PATH
# and not seen by compilers if you build your own software outside of # and not seen by compilers if you build your own software outside of
# Homebrew. This way, we don't shadow software provided by OS X. # Homebrew. This way, we don't shadow software provided by macOS.
# <pre>keg_only :provided_by_osx</pre> # <pre>keg_only :provided_by_macos</pre>
# <pre>keg_only "because I want it so"</pre> # <pre>keg_only "because I want it so"</pre>
def keg_only(reason, explanation = "") def keg_only(reason, explanation = "")
@keg_only_reason = KegOnlyReason.new(reason, explanation) @keg_only_reason = KegOnlyReason.new(reason, explanation)

View File

@ -1,7 +1,7 @@
# Used to track formulae that cannot be installed at the same time # Used to track formulae that cannot be installed at the same time
FormulaConflict = Struct.new(:name, :reason) FormulaConflict = Struct.new(:name, :reason)
# Used to annotate formulae that duplicate OS X provided software # Used to annotate formulae that duplicate macOS provided software
# or cause conflicts when linked in. # or cause conflicts when linked in.
class KegOnlyReason class KegOnlyReason
def initialize(reason, explanation) def initialize(reason, explanation)
@ -29,22 +29,22 @@ class KegOnlyReason
def to_s def to_s
return @explanation unless @explanation.empty? return @explanation unless @explanation.empty?
case @reason case @reason
when :provided_by_osx then <<-EOS when :provided_by_macos, :provided_by_osx then <<-EOS
OS X already provides this software and installing another version in macOS already provides this software and installing another version in
parallel can cause all kinds of trouble. parallel can cause all kinds of trouble.
EOS EOS
when :shadowed_by_osx then <<-EOS when :shadowed_by_macos, :shadowed_by_osx then <<-EOS
OS X provides similar software and installing this software in macOS provides similar software and installing this software in
parallel can cause all kinds of trouble. parallel can cause all kinds of trouble.
EOS EOS
when :provided_pre_mountain_lion then <<-EOS when :provided_pre_mountain_lion then <<-EOS
OS X already provides this software in versions before Mountain Lion. macOS already provides this software in versions before Mountain Lion.
EOS EOS
when :provided_pre_mavericks then <<-EOS when :provided_pre_mavericks then <<-EOS
OS X already provides this software in versions before Mavericks. macOS already provides this software in versions before Mavericks.
EOS EOS
when :provided_pre_el_capitan then <<-EOS when :provided_pre_el_capitan then <<-EOS
OS X already provides this software in versions before El Capitan. macOS already provides this software in versions before El Capitan.
EOS EOS
when :provided_until_xcode43 when :provided_until_xcode43
"Xcode provides this software prior to version 4.3." "Xcode provides this software prior to version 4.3."

View File

@ -9,7 +9,7 @@
# #
# When done, regenerate the man page and its HTML version by running `brew man`. # When done, regenerate the man page and its HTML version by running `brew man`.
%> %>
brew(1) -- The missing package manager for OS X brew(1) -- The missing package manager for macOS
=============================================== ===============================================
## SYNOPSIS ## SYNOPSIS
@ -20,7 +20,7 @@ brew(1) -- The missing package manager for OS X
## DESCRIPTION ## DESCRIPTION
Homebrew is the easiest and most flexible way to install the UNIX tools Apple Homebrew is the easiest and most flexible way to install the UNIX tools Apple
didn't include with OS X. didn't include with macOS.
## ESSENTIAL COMMANDS ## ESSENTIAL COMMANDS
@ -220,7 +220,7 @@ can take several different forms:
* `HOMEBREW_TEMP`: * `HOMEBREW_TEMP`:
If set, instructs Homebrew to use `HOMEBREW_TEMP` as the temporary directory If set, instructs Homebrew to use `HOMEBREW_TEMP` as the temporary directory
for building packages. This may be needed if your system temp directory and for building packages. This may be needed if your system temp directory and
Homebrew Prefix are on different volumes, as OS X has trouble moving Homebrew Prefix are on different volumes, as macOS has trouble moving
symlinks across volumes when the target does not yet exist. symlinks across volumes when the target does not yet exist.
This issue typically occurs when using FileVault or custom SSD This issue typically occurs when using FileVault or custom SSD

View File

@ -24,7 +24,7 @@ module OS
# This can be compared to numerics, strings, or symbols # This can be compared to numerics, strings, or symbols
# using the standard Ruby Comparable methods. # using the standard Ruby Comparable methods.
def full_version def full_version
@full_version ||= Version.new(ENV["HOMEBREW_OSX_VERSION"].chomp) @full_version ||= Version.new(ENV["HOMEBREW_MACOS_VERSION"].chomp)
end end
def prerelease? def prerelease?

View File

@ -18,11 +18,11 @@ module OS
when "10.11" then "7.3.1" when "10.11" then "7.3.1"
when "10.12" then "8.0" when "10.12" then "8.0"
else else
# Default to newest known version of Xcode for unreleased OSX versions. # Default to newest known version of Xcode for unreleased macOS versions.
if OS::Mac.prerelease? if OS::Mac.prerelease?
"8.0" "8.0"
else else
raise "OS X '#{MacOS.version}' is invalid" raise "macOS '#{MacOS.version}' is invalid"
end end
end end
end end

View File

@ -12,7 +12,7 @@ class MaximumMacOSRequirement < Requirement
def message def message
<<-EOS.undent <<-EOS.undent
This formula either does not compile or function as expected on OS X This formula either does not compile or function as expected on macOS
versions newer than #{@version.pretty_name} due to an upstream incompatibility. versions newer than #{@version.pretty_name} due to an upstream incompatibility.
EOS EOS
end end

View File

@ -11,6 +11,6 @@ class MinimumMacOSRequirement < Requirement
satisfy(build_env: false) { MacOS.version >= @version } satisfy(build_env: false) { MacOS.version >= @version }
def message def message
"OS X #{@version.pretty_name} or newer is required." "macOS #{@version.pretty_name} or newer is required."
end end
end end

View File

@ -10,7 +10,7 @@ class PythonRequirement < Requirement
next unless python next unless python
version = python_short_version version = python_short_version
next unless version next unless version
# Always use Python 2.7 for consistency on older versions of OSX. # Always use Python 2.7 for consistency on older versions of Mac OS X.
version == Version.create("2.7") version == Version.create("2.7")
end end

View File

@ -8,7 +8,7 @@ class UnsignedKextRequirement < Requirement
def message def message
s = <<-EOS.undent s = <<-EOS.undent
Building this formula from source isn't possible due to OS X Building this formula from source isn't possible due to OS X
Yosemite and above's strict unsigned kext ban. Yosemite (10.10) and above's strict unsigned kext ban.
EOS EOS
s += super s += super
s s

View File

@ -181,7 +181,7 @@ class Cmd
args << "-Wl,-undefined,dynamic_lookup" args << "-Wl,-undefined,dynamic_lookup"
when /^-isysroot/, /^--sysroot/ when /^-isysroot/, /^--sysroot/
sdk = enum.next sdk = enum.next
# We set the sysroot for OS X SDKs # We set the sysroot for macOS SDKs
args << "-isysroot" << sdk unless sdk.downcase.include? "osx" args << "-isysroot" << sdk unless sdk.downcase.include? "osx"
when "-dylib" when "-dylib"
args << "-Wl,#{arg}" args << "-Wl,#{arg}"

View File

@ -337,18 +337,18 @@ class BottleSpecification
def checksums def checksums
checksums = {} checksums = {}
os_versions = collector.keys os_versions = collector.keys
os_versions.map! do |osx| os_versions.map! do |macos|
begin begin
MacOS::Version.from_symbol osx MacOS::Version.from_symbol macos
rescue rescue
nil nil
end end
end.compact! end.compact!
os_versions.sort.reverse_each do |os_version| os_versions.sort.reverse_each do |os_version|
osx = os_version.to_sym macos = os_version.to_sym
checksum = collector[osx] checksum = collector[macos]
checksums[checksum.hash_type] ||= [] checksums[checksum.hash_type] ||= []
checksums[checksum.hash_type] << { checksum => osx } checksums[checksum.hash_type] << { checksum => macos }
end end
checksums checksums
end end

View File

@ -108,7 +108,7 @@ class SystemConfig
end end
def describe_java def describe_java
# java_home doesn't exist on all OS Xs; it might be missing on older versions. # java_home doesn't exist on all macOSs; it might be missing on older versions.
return "N/A" unless File.executable? "/usr/libexec/java_home" return "N/A" unless File.executable? "/usr/libexec/java_home"
java_xml = Utils.popen_read("/usr/libexec/java_home", "--xml", "--failfast") java_xml = Utils.popen_read("/usr/libexec/java_home", "--xml", "--failfast")

View File

@ -8,8 +8,8 @@ class KegOnlyReasonTests < Homebrew::TestCase
end end
def test_to_s_no_explanation def test_to_s_no_explanation
r = KegOnlyReason.new :provided_by_osx, "" r = KegOnlyReason.new :provided_by_macos, ""
assert_match(/^OS X already provides/, r.to_s) assert_match(/^macOS already provides/, r.to_s)
end end
end end

View File

@ -44,8 +44,8 @@ class IntegrationCommandTests < Homebrew::TestCase
end end
end end
def needs_osx def needs_macos
skip "Not on OS X" unless OS.mac? skip "Not on MacOS" unless OS.mac?
end end
def cmd_id_from_args(args) def cmd_id_from_args(args)
@ -729,14 +729,14 @@ class IntegrationCommandTests < Homebrew::TestCase
def test_cask def test_cask
needs_test_cmd_taps needs_test_cmd_taps
needs_osx needs_macos
setup_remote_tap("caskroom/cask") setup_remote_tap("caskroom/cask")
cmd("cask", "list") cmd("cask", "list")
end end
def test_services def test_services
needs_test_cmd_taps needs_test_cmd_taps
needs_osx needs_macos
setup_remote_tap("homebrew/services") setup_remote_tap("homebrew/services")
assert_equal "Warning: No services available to control with `brew services`", assert_equal "Warning: No services available to control with `brew services`",
cmd("services", "list") cmd("services", "list")

View File

@ -19,11 +19,11 @@ class OSMacDiagnosticChecksTest < Homebrew::TestCase
@checks.check_for_other_package_managers @checks.check_for_other_package_managers
end end
def test_check_for_unsupported_osx def test_check_for_unsupported_macos
ARGV.stubs(:homebrew_developer?).returns false ARGV.stubs(:homebrew_developer?).returns false
OS::Mac.stubs(:prerelease?).returns true OS::Mac.stubs(:prerelease?).returns true
assert_match "We do not provide support for this pre-release version.", assert_match "We do not provide support for this pre-release version.",
@checks.check_for_unsupported_osx @checks.check_for_unsupported_macos
end end
def test_check_for_unsupported_curl_vars def test_check_for_unsupported_curl_vars

View File

@ -38,7 +38,7 @@ setup-analytics() {
if [[ -n "$HOMEBREW_LINUX" ]] if [[ -n "$HOMEBREW_LINUX" ]]
then then
HOMEBREW_ANALYTICS_USER_UUID="$(tr a-f A-F </proc/sys/kernel/random/uuid)" HOMEBREW_ANALYTICS_USER_UUID="$(tr a-f A-F </proc/sys/kernel/random/uuid)"
elif [[ -n "$HOMEBREW_OSX" ]] elif [[ -n "$HOMEBREW_MACOS" ]]
then then
HOMEBREW_ANALYTICS_USER_UUID="$(/usr/bin/uuidgen)" HOMEBREW_ANALYTICS_USER_UUID="$(/usr/bin/uuidgen)"
else else

View File

@ -33,7 +33,7 @@ module GitHub
EOS EOS
else else
message << <<-EOS.undent message << <<-EOS.undent
The GitHub credentials in the OS X keychain may be invalid. The GitHub credentials in the macOS keychain may be invalid.
Clear them with: Clear them with:
printf "protocol=https\\nhost=github.com\\n" | git credential-osxkeychain erase printf "protocol=https\\nhost=github.com\\n" | git credential-osxkeychain erase
Or create a personal access token: Or create a personal access token:
@ -103,7 +103,7 @@ module GitHub
case GitHub.api_credentials_type case GitHub.api_credentials_type
when :keychain when :keychain
onoe <<-EOS.undent onoe <<-EOS.undent
Your OS X keychain GitHub credentials do not have sufficient scope! Your macOS keychain GitHub credentials do not have sufficient scope!
Scopes they have: #{credentials_scopes} Scopes they have: #{credentials_scopes}
Create a personal access token: https://github.com/settings/tokens Create a personal access token: https://github.com/settings/tokens
and then set HOMEBREW_GITHUB_API_TOKEN as the authentication method instead. and then set HOMEBREW_GITHUB_API_TOKEN as the authentication method instead.

View File

@ -27,7 +27,7 @@ setup-ruby-path() {
fi fi
fi fi
else else
if [[ -n "$HOMEBREW_OSX" ]] if [[ -n "$HOMEBREW_MACOS" ]]
then then
HOMEBREW_RUBY_PATH="/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby" HOMEBREW_RUBY_PATH="/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby"
else else

View File

@ -5,19 +5,19 @@ additional [Interesting Taps & Forks](Interesting-Taps-&-Forks.md) and anyone ca
own! own!
### We try hard to avoid dupes in Homebrew/homebrew ### We try hard to avoid dupes in Homebrew/homebrew
Stuff that comes with OS X or libraries that are provided by Stuff that comes with macOS or libraries that are provided by
[RubyGems, CPAN or PyPi](Gems,-Eggs-and-Perl-Modules.md) [RubyGems, CPAN or PyPi](Gems,-Eggs-and-Perl-Modules.md)
should not be duplicated. There are good reasons for this: should not be duplicated. There are good reasons for this:
* Duplicate libraries regularly break builds * Duplicate libraries regularly break builds
* Subtle bugs emerge with duplicate libraries, and to a lesser extent, * Subtle bugs emerge with duplicate libraries, and to a lesser extent,
duplicate tools duplicate tools
* We want our formulae to work with what comes with OS X * We want our formulae to work with what comes with macOS
There are exceptions: There are exceptions:
* OpenSSL - Apple has formally deprecated OpenSSL on OS X in favour of their own Security Framework * OpenSSL - Apple has formally deprecated OpenSSL on macOS in favour of their own Security Framework
& consequently the OS X OpenSSL is rarely updated and frequently falls behind important security updates. & consequently the macOS OpenSSL is rarely updated and frequently falls behind important security updates.
Homebrew endeavours to use our shipped OpenSSL as much Homebrew endeavours to use our shipped OpenSSL as much
as possible. as possible.
* Programs that a user will regularly interact with directly, like editors and * Programs that a user will regularly interact with directly, like editors and
@ -32,13 +32,13 @@ There are exceptions:
Formula | Reason Formula | Reason
--- | --- --- | ---
ruby, python, perl | People want newer versions ruby, python, perl | People want newer versions
bash | OS X's bash is stuck at 3.2 because newer versions are licensed under GPLv3 bash | macOS's bash is stuck at 3.2 because newer versions are licensed under GPLv3
zsh | This was a mistake, but its too late to remove it zsh | This was a mistake, but its too late to remove it
emacs, vim | [Too popular to move to dupes](https://github.com/Homebrew/homebrew/pull/21594#issuecomment-21968819) emacs, vim | [Too popular to move to dupes](https://github.com/Homebrew/homebrew/pull/21594#issuecomment-21968819)
subversion | Originally added for 10.5, but people want the latest version subversion | Originally added for 10.5, but people want the latest version
libcurl | Some formulae require a newer version than OS X provides libcurl | Some formulae require a newer version than macOS provides
openssl | OS X's openssl is deprecated & outdated. openssl | macOS's openssl is deprecated & outdated.
libxml2 | Historically, OS X's libxml2 has been buggy libxml2 | Historically, macOS's libxml2 has been buggy
We also maintain [a tap](https://github.com/Homebrew/homebrew-dupes) that We also maintain [a tap](https://github.com/Homebrew/homebrew-dupes) that
contains many duplicates not otherwise found in Homebrew. contains many duplicates not otherwise found in Homebrew.
@ -104,7 +104,7 @@ Please trust that we need to use our discretion based on our experience
running a package manager. running a package manager.
### Stuff that builds an .app ### Stuff that builds an .app
Dont make your formula build an `.app` (native OS X Application); we Dont make your formula build an `.app` (native macOS Application); we
dont want those things in Homebrew (but dont want those things in Homebrew (but
[Homebrew Cask](https://github.com/caskroom/homebrew-cask) does). [Homebrew Cask](https://github.com/caskroom/homebrew-cask) does).
Make it build a command-line tool or a library. Make it build a command-line tool or a library.

View File

@ -5,12 +5,12 @@ Homebrew has begun gathering anonymous aggregate user behaviour analytics and re
Homebrew is provided free of charge and run entirely by volunteers in their spare time. As a result, we do not have the resources to do detailed user studies of Homebrew users to decide on how best to design future features and prioritise current work. Anonymous aggregate user analytics allow us to prioritise fixes and features based on how, where and when people use Homebrew. For example: Homebrew is provided free of charge and run entirely by volunteers in their spare time. As a result, we do not have the resources to do detailed user studies of Homebrew users to decide on how best to design future features and prioritise current work. Anonymous aggregate user analytics allow us to prioritise fixes and features based on how, where and when people use Homebrew. For example:
- if a formula is widely used and is failing often it will enable us to prioritise fixing that formula over others. - if a formula is widely used and is failing often it will enable us to prioritise fixing that formula over others.
- collecting the OS version allows us to decide what versions of OS X to prioritise and support and identify build failures that occur only on single versions. - collecting the OS version allows us to decide what versions of macOS to prioritise and support and identify build failures that occur only on single versions.
## What? ## What?
Homebrew's analytics record some shared information for every event: Homebrew's analytics record some shared information for every event:
- The Homebrew user agent e.g. `Homebrew/0.9.9 (Macintosh; Intel Mac OS X 10.11.4) curl/7.43.0` - The Homebrew user agent e.g. `Homebrew/0.9.9 (Macintosh; Intel macOS 10.12.0) curl/7.43.0`
- The Google Analytics version i.e. `1` (https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#v) - The Google Analytics version i.e. `1` (https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#v)
- The Homebrew analytics tracking ID e.g. `UA-75654628-1` (https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#tid) - The Homebrew analytics tracking ID e.g. `UA-75654628-1` (https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#tid)
- A Homebrew analytics user ID e.g. `1BAB65CC-FE7F-4D8C-AB45-B7DB5A6BA9CB`. This is generated by `uuidgen` and stored in the repository-specific Git configuration variable `homebrew.analyticsuuid` within `$(brew --repository)/.git/config`. This does not allow us to track individual users but does enable us to accurately measure user counts vs. event counts (https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#cid) - A Homebrew analytics user ID e.g. `1BAB65CC-FE7F-4D8C-AB45-B7DB5A6BA9CB`. This is generated by `uuidgen` and stored in the repository-specific Git configuration variable `homebrew.analyticsuuid` within `$(brew --repository)/.git/config`. This does not allow us to track individual users but does enable us to accurately measure user counts vs. event counts (https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#cid)
@ -22,8 +22,8 @@ Homebrew's analytics record some shared information for every event:
Homebrew's analytics records the following different events: Homebrew's analytics records the following different events:
- a `screenview` hit type with the official Homebrew command you have run (with arguments stripped) e.g. `brew list` (not `brew list foo` or any external commands except `bundle` and `services`) - a `screenview` hit type with the official Homebrew command you have run (with arguments stripped) e.g. `brew list` (not `brew list foo` or any external commands except `bundle` and `services`)
- an `event` hit type with the `install` event category, the Homebrew formula from a non-private GitHub tap you have requested to install and any used options e.g. `wget --with-pcre` as the action and an event label e.g. `Mac OS X 10.11, non-/usr/local, CI` to indicate the OS version, non-standard installation location and invocation as part of CI. This allows us to identify formulae that need fixed and where more easily. - an `event` hit type with the `install` event category, the Homebrew formula from a non-private GitHub tap you have requested to install and any used options e.g. `wget --with-pcre` as the action and an event label e.g. `macOS 10.12, non-/usr/local, CI` to indicate the OS version, non-standard installation location and invocation as part of CI. This allows us to identify formulae that need fixed and where more easily.
- an `event` hit type with the `BuildError` event category, the Homebrew formula that failed to install e.g. `wget` as the action and an event label e.g. `Mac OS X 10.11` - an `event` hit type with the `BuildError` event category, the Homebrew formula that failed to install e.g. `wget` as the action and an event label e.g. `macOS 10.12`
- an `exception` hit type with the `exception` event category, exception description of the exception name e.g. `FormulaUnavailableError` and whether the exception was fatal e.g. `1` - an `exception` hit type with the `exception` event category, exception description of the exception name e.g. `FormulaUnavailableError` and whether the exception was fatal e.g. `1`
You can also view all the information that is sent by Homebrew's analytics by setting `HOMEBREW_ANALYTICS_DEBUG=1` in your environment. Please note this will also stop any analytics being sent. You can also view all the information that is sent by Homebrew's analytics by setting `HOMEBREW_ANALYTICS_DEBUG=1` in your environment. Please note this will also stop any analytics being sent.

View File

@ -56,7 +56,7 @@ Optionally contains the rebuild version of the bottle.
Sometimes bottles may need be updated without bumping the version of the formula e.g. a new patch was applied. In that case the rebuild will have a value of 1 or more. Sometimes bottles may need be updated without bumping the version of the formula e.g. a new patch was applied. In that case the rebuild will have a value of 1 or more.
### `sha256` ### `sha256`
Contains the SHA-256 of bottle for a particular version of OS X. Contains the SHA-256 of bottle for a particular version of macOS.
## Formula DSL ## Formula DSL
Additionally there is a method available in the formula DSL. Additionally there is a method available in the formula DSL.

View File

@ -10,7 +10,7 @@ You cloned with git, and your git configuration is set to use Windows line endin
### Ruby `bad interpreter: /usr/bin/ruby` ### Ruby `bad interpreter: /usr/bin/ruby`
You don't have a `/usr/bin/ruby` or it is not executable. It's not recommended to let this persist, you'd be surprised how many .apps, tools and scripts expect your OS X provided files and directories to be *unmodified* since OS X was installed. You don't have a `/usr/bin/ruby` or it is not executable. It's not recommended to let this persist, you'd be surprised how many .apps, tools and scripts expect your macOS provided files and directories to be *unmodified* since macOS was installed.
### `brew update` complains about untracked working tree files ### `brew update` complains about untracked working tree files
After running `brew update`, you receive a git error warning about untracked files or local changes that would be overwritten by a checkout or merge, followed by a list of files inside your Homebrew installation. After running `brew update`, you receive a git error warning about untracked files or local changes that would be overwritten by a checkout or merge, followed by a list of files inside your Homebrew installation.
@ -38,7 +38,7 @@ invalid multibyte escape: /^\037\235/
In the past, Homebrew assumed that `/usr/bin/ruby` was Ruby 1.8. On OS X 10.9, it is now Ruby 2.0. There are various incompatibilities between the two versions, so if you upgrade to OS X 10.9 while using a sufficiently old version of Homebrew, you will encounter errors. In the past, Homebrew assumed that `/usr/bin/ruby` was Ruby 1.8. On OS X 10.9, it is now Ruby 2.0. There are various incompatibilities between the two versions, so if you upgrade to OS X 10.9 while using a sufficiently old version of Homebrew, you will encounter errors.
The incompatibilities have been addressed in more recent versions of Homebrew, and it does not make assumptions about `/usr/bin/ruby`, instead it uses the executable inside OS X's Ruby framework or a vendored Ruby. The incompatibilities have been addressed in more recent versions of Homebrew, and it does not make assumptions about `/usr/bin/ruby`, instead it uses the executable inside MacOS's Ruby framework or a vendored Ruby.
To recover from this situation, do the following: To recover from this situation, do the following:
@ -118,14 +118,14 @@ Don't follow the advice here but fix by using
`Language::Python.setup_install_args` in the formula as described in `Language::Python.setup_install_args` in the formula as described in
[Python for Formula Authors](Python-for-Formula-Authors.md). [Python for Formula Authors](Python-for-Formula-Authors.md).
### Upgrading OS X ### Upgrading macOS
Upgrading OS X can cause errors like the following: Upgrading macOS can cause errors like the following:
- `dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.54.dylib` - `dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.54.dylib`
- `configure: error: Cannot find libz` - `configure: error: Cannot find libz`
Following an OS X upgrade it may be necessary to reinstall the Xcode Command Line Tools and `brew upgrade` all installed formula: Following an macOS upgrade it may be necessary to reinstall the Xcode Command Line Tools and `brew upgrade` all installed formula:
```bash ```bash
xcode-select --install xcode-select --install

View File

@ -71,7 +71,7 @@ Be careful as this is a destructive operation.
Which is usually: `~/Library/Caches/Homebrew` Which is usually: `~/Library/Caches/Homebrew`
### My Mac `.app`s dont find `/usr/local/bin` utilities! ### My Mac `.app`s dont find `/usr/local/bin` utilities!
GUI apps on OS X dont have `/usr/local/bin` in their `PATH` by default. GUI apps on macOS dont have `/usr/local/bin` in their `PATH` by default.
If youre on Mountain Lion, you can fix this by running If youre on Mountain Lion, you can fix this by running
`launchctl setenv PATH "/usr/local/bin:$PATH"`. [More details `launchctl setenv PATH "/usr/local/bin:$PATH"`. [More details
here](https://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x/5444960#5444960), here](https://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x/5444960#5444960),

View File

@ -88,7 +88,7 @@ Check the packages `README`. Does the package install with `./configure`, `cm
## Check for dependencies ## Check for dependencies
The `README` probably tells you about dependencies and Homebrew or OS X probably already has them. You can check for Homebrew dependencies with `brew search`. Some common dependencies that OS X comes with: The `README` probably tells you about dependencies and Homebrew or macOS probably already has them. You can check for Homebrew dependencies with `brew search`. Some common dependencies that macOS comes with:
* `libexpat` * `libexpat`
* `libGL` * `libGL`
@ -394,7 +394,7 @@ end
Make sure you modify `s`! This block ignores the returned value. Make sure you modify `s`! This block ignores the returned value.
`inreplace` should be used instead of patches when it is patching something that will never be accepted upstream e.g. make the softwares build system respect Homebrews installation hierarchy. If it's something that affects both Homebrew and MacPorts (i.e. OS X specific) it should be turned into an upstream submitted patch instead. `inreplace` should be used instead of patches when it is patching something that will never be accepted upstream e.g. make the softwares build system respect Homebrews installation hierarchy. If it's something that affects both Homebrew and MacPorts (i.e. macOS specific) it should be turned into an upstream submitted patch instead.
If you need modify variables in a `Makefile`, rather than using `inreplace`, pass them as arguments to `make`: If you need modify variables in a `Makefile`, rather than using `inreplace`, pass them as arguments to `make`:

View File

@ -1,5 +1,5 @@
# Gems, Eggs and Perl Modules # Gems, Eggs and Perl Modules
On a fresh OS X installation there are three empty directories for On a fresh macOS installation there are three empty directories for
add-ons available to all users: add-ons available to all users:
/Library/Ruby /Library/Ruby
@ -42,7 +42,7 @@ about the paths. Note, a brewed Python still searches for modules in
### With systems Python ### With systems Python
_This is only recommended if you **don't** use a brewed Python._ _This is only recommended if you **don't** use a brewed Python._
On OS X, any [Python version X.Y also searches in On macOS, any [Python version X.Y also searches in
`~/Library/Python/X.Y/lib/python/site-packages` for `~/Library/Python/X.Y/lib/python/site-packages` for
modules](https://docs.python.org/2/install/index.html#inst-alt-install-user). modules](https://docs.python.org/2/install/index.html#inst-alt-install-user).
That dir might not yet exist, but you can create it: That dir might not yet exist, but you can create it:

View File

@ -3,7 +3,7 @@
This page describes how Python is handled in Homebrew for users. See [Python for Formula Authors](Python-for-Formula-Authors.md) for advice on writing formulae to install packages written in Python. This page describes how Python is handled in Homebrew for users. See [Python for Formula Authors](Python-for-Formula-Authors.md) for advice on writing formulae to install packages written in Python.
Homebrew should work with any [CPython](https://stackoverflow.com/questions/2324208/is-there-any-difference-between-cpython-and-python) and defaults to the OS X system Python. Homebrew should work with any [CPython](https://stackoverflow.com/questions/2324208/is-there-any-difference-between-cpython-and-python) and defaults to the macOS system Python.
Homebrew provides formulae to brew a more up-to-date Python 2.7.x (and 3.x). Homebrew provides formulae to brew a more up-to-date Python 2.7.x (and 3.x).

View File

@ -14,7 +14,7 @@ This is because Homebrew keeps it locked inside its individual prefix, rather th
A number of people in this situation are either forcefully linking `keg_only` tools with `brew link --force` or moving default system utilities out of the `$PATH` and replacing them with manually-created symlinks to the Homebrew-provided tool. A number of people in this situation are either forcefully linking `keg_only` tools with `brew link --force` or moving default system utilities out of the `$PATH` and replacing them with manually-created symlinks to the Homebrew-provided tool.
*Please* do not remove OS X native tools and forcefully replace them with symlinks back to the Homebrew-provided tool. Doing so can and likely will cause significant breakage when attempting to build software. *Please* do not remove macOS native tools and forcefully replace them with symlinks back to the Homebrew-provided tool. Doing so can and likely will cause significant breakage when attempting to build software.
`brew link --force` creates a warning in `brew doctor` to let both you and maintainers know that link exists and could be causing issues. If youve linked something and theres no problems at all? Feel free to ignore the `brew doctor` error. `brew link --force` creates a warning in `brew doctor` to let both you and maintainers know that link exists and could be causing issues. If youve linked something and theres no problems at all? Feel free to ignore the `brew doctor` error.

View File

@ -49,7 +49,7 @@ supported on a best-effort basis. For 10.4 and 10.5, see
<a name="3"><sup>3</sup></a> Most formulae require a compiler. A handful <a name="3"><sup>3</sup></a> Most formulae require a compiler. A handful
require a full Xcode installation. You can install Xcode, the CLT, or both; require a full Xcode installation. You can install Xcode, the CLT, or both;
Homebrew supports all three configurations. Downloading Xcode may require an Homebrew supports all three configurations. Downloading Xcode may require an
Apple Developer account on older versions of OS X. Sign up for free Apple Developer account on older versions of Mac OS X. Sign up for free
[here](https://developer.apple.com/register/index.action). [here](https://developer.apple.com/register/index.action).
<a name="4"><sup>4</sup></a> The one-liner installation method found on <a name="4"><sup>4</sup></a> The one-liner installation method found on

View File

@ -4,7 +4,7 @@ Homebrew has the capability to add (and remove) multiple taps to your local inst
## Main Taps ## Main Taps
* [homebrew/apache](https://github.com/Homebrew/homebrew-apache): A tap for Apache modules, extending OS X's built-in Apache. These brews may require unconventional additional setup, as explained in the caveats. * [homebrew/apache](https://github.com/Homebrew/homebrew-apache): A tap for Apache modules, extending macOS's built-in Apache. These brews may require unconventional additional setup, as explained in the caveats.
* [homebrew/boneyard](https://github.com/Homebrew/homebrew-boneyard): Formulae from other official taps, primarily (homebrew/core) are not deleted, they are moved here. * [homebrew/boneyard](https://github.com/Homebrew/homebrew-boneyard): Formulae from other official taps, primarily (homebrew/core) are not deleted, they are moved here.
@ -50,7 +50,7 @@ You can be added as a maintainer for one of the Homebrew organization taps and a
* [petere/postgresql](https://github.com/petere/homebrew-postgresql): Allows installing multiple PostgreSQL versions in parallel. * [petere/postgresql](https://github.com/petere/homebrew-postgresql): Allows installing multiple PostgreSQL versions in parallel.
* [titanous/gnuradio](https://github.com/titanous/homebrew-gnuradio): GNU Radio and friends running on OS X. * [titanous/gnuradio](https://github.com/titanous/homebrew-gnuradio): GNU Radio and friends running on macOS.
## Interesting Forks ## Interesting Forks

View File

@ -11,7 +11,7 @@ Maybe you were looking for the [Formula Cookbook](Formula-Cookbook.md)?
This is all that really matters: This is all that really matters:
- Ensure the name seems reasonable. - Ensure the name seems reasonable.
- Add aliases. - Add aliases.
- Ensure it is not an unreasonable dupe of anything that comes with OS X. - Ensure it is not an unreasonable dupe of anything that comes with macOS.
- Ensure it is not a library that can be installed with - Ensure it is not a library that can be installed with
[gem](https://en.wikipedia.org/wiki/RubyGems), [gem](https://en.wikipedia.org/wiki/RubyGems),
[cpan](https://en.wikipedia.org/wiki/Cpan) or [cpan](https://en.wikipedia.org/wiki/Cpan) or
@ -92,8 +92,8 @@ implemented!).
### Duplicates ### Duplicates
The main repository avoids duplicates as much as possible. The exception is The main repository avoids duplicates as much as possible. The exception is
libraries that OS X provides but have bugs, and the bugs are fixed in a libraries that macOS provides but have bugs, and the bugs are fixed in a
newer version. Or libraries that OS X provides, but they are too old for newer version. Or libraries that macOS provides, but they are too old for
some other formula. The rest should be in the `homebrew/dupes` tap. some other formula. The rest should be in the `homebrew/dupes` tap.
Still determine if it possible to avoid the duplicate. Be thorough. Duped Still determine if it possible to avoid the duplicate. Be thorough. Duped
@ -104,7 +104,7 @@ If it duplicates anything ask another maintainer first. Some dupes are okay,
some can cause subtle issues we dont want to have to deal with in the future. some can cause subtle issues we dont want to have to deal with in the future.
Dupes we have allowed: Dupes we have allowed:
- `libxml` \<— OS X version is old and buggy - `libxml` \<— macOS version is old and buggy
- `libpng` \<— Ditto - `libpng` \<— Ditto
#### Add comments #### Add comments

View File

@ -75,7 +75,7 @@ We prefer:
* When abbreviating, introduce the abbreviation with the first usage in any document * When abbreviating, introduce the abbreviation with the first usage in any document
* Some abbreviations (near-universally understood among our user base) are fine, though. * Some abbreviations (near-universally understood among our user base) are fine, though.
* "Mac" is fine; "Macintosh" isn't necessary * "Mac" is fine; "Macintosh" isn't necessary
* "OS X", not "OSX" or "MacOS" * "macOS" for all versions, "OS X" or "Mac OS X" when describing specific older versions
* "RuboCop", not "Rubocop" * "RuboCop", not "Rubocop"
* A pull request is made "on" a repository; that repository is "at" a URL * A pull request is made "on" a repository; that repository is "at" a URL

View File

@ -23,4 +23,4 @@ brew gist-logs <formula>
0. Upload debugging information to a [Gist](https://gist.github.com): 0. Upload debugging information to a [Gist](https://gist.github.com):
- If you had a formula error: run `brew gist-logs <formula>` (where `<formula>` is the name of the formula that failed to build). - If you had a formula error: run `brew gist-logs <formula>` (where `<formula>` is the name of the formula that failed to build).
- If you encountered a non-formula bug: upload the output of `brew config` and `brew doctor` to a new [Gist](https://gist.github.com). - If you encountered a non-formula bug: upload the output of `brew config` and `brew doctor` to a new [Gist](https://gist.github.com).
1. [Create a new issue](https://github.com/Homebrew/homebrew-core/issues/new) titled "\<formula name> failed to build on 10.x", where `<formula name>` is the name of the formula that failed to build, and `10.x` is the version of OS X you are using and including the link output by `brew gist-logs` 1. [Create a new issue](https://github.com/Homebrew/homebrew-core/issues/new) titled "\<formula name> failed to build on 10.x", where `<formula name>` is the name of the formula that failed to build, and `10.x` is the version of macOS you are using and including the link output by `brew gist-logs`

View File

@ -3,7 +3,7 @@
Homebrew supports and recommends the latest Xcode and/or Command Line Homebrew supports and recommends the latest Xcode and/or Command Line
Tools available for your platform: Tools available for your platform:
OS X | Xcode | Command Line Tools macOS | Xcode | Command Line Tools
----- | ----- | ---------------------------- ----- | ----- | ----------------------------
10.6 | 3.2.6 | N/A 10.6 | 3.2.6 | N/A
10.7 | 4.6.3 | April 2013 10.7 | 4.6.3 | April 2013

View File

@ -1,7 +1,7 @@
<div class='mp'> <div class='mp'>
<h2 id="NAME">NAME</h2> <h2 id="NAME">NAME</h2>
<p class="man-name"> <p class="man-name">
<code>brew</code> - <span class="man-whatis">The missing package manager for OS X</span> <code>brew</code> - <span class="man-whatis">The missing package manager for macOS</span>
</p> </p>
<h2 id="SYNOPSIS">SYNOPSIS</h2> <h2 id="SYNOPSIS">SYNOPSIS</h2>
@ -12,7 +12,7 @@
<h2 id="DESCRIPTION">DESCRIPTION</h2> <h2 id="DESCRIPTION">DESCRIPTION</h2>
<p>Homebrew is the easiest and most flexible way to install the UNIX tools Apple <p>Homebrew is the easiest and most flexible way to install the UNIX tools Apple
didn't include with OS X.</p> didn't include with macOS.</p>
<h2 id="ESSENTIAL-COMMANDS">ESSENTIAL COMMANDS</h2> <h2 id="ESSENTIAL-COMMANDS">ESSENTIAL COMMANDS</h2>
@ -128,7 +128,7 @@ checksum of a previously cached version no longer matches.</p>
bottle.</p> bottle.</p>
<p>If <code>--force-bottle</code> is passed, download a bottle if it exists for the current <p>If <code>--force-bottle</code> is passed, download a bottle if it exists for the current
version of OS X, even if it would not be used during installation.</p></dd> version of macOS, even if it would not be used during installation.</p></dd>
<dt><code>gist-logs</code> [<code>--new-issue</code>|<code>-n</code>] <var>formula</var></dt><dd><p>Upload logs for a failed build of <var>formula</var> to a new Gist.</p> <dt><code>gist-logs</code> [<code>--new-issue</code>|<code>-n</code>] <var>formula</var></dt><dd><p>Upload logs for a failed build of <var>formula</var> to a new Gist.</p>
<p><var>formula</var> is usually the name of the formula to install, but it can be specified <p><var>formula</var> is usually the name of the formula to install, but it can be specified
@ -217,7 +217,7 @@ be linked or which would be deleted by <code>brew link --overwrite</code>, but w
actually link or delete any files.</p> actually link or delete any files.</p>
<p>If <code>--force</code> is passed, Homebrew will allow keg-only formulae to be linked.</p></dd> <p>If <code>--force</code> is passed, Homebrew will allow keg-only formulae to be linked.</p></dd>
<dt><code>linkapps</code> [<code>--local</code>] [<var>formulae</var>]</dt><dd><p>Find installed formulae that provide <code>.app</code>-style OS X apps and symlink them <dt><code>linkapps</code> [<code>--local</code>] [<var>formulae</var>]</dt><dd><p>Find installed formulae that provide <code>.app</code>-style macOS apps and symlink them
into <code>/Applications</code>, allowing for easier access.</p> into <code>/Applications</code>, allowing for easier access.</p>
<p>If no <var>formulae</var> are provided, all of them will have their apps symlinked.</p> <p>If no <var>formulae</var> are provided, all of them will have their apps symlinked.</p>
@ -462,7 +462,7 @@ name of the file or formula being audited, to make the output easy to grep.</p>
<p><code>audit</code> exits with a non-zero status if any errors are found. This is useful, <p><code>audit</code> exits with a non-zero status if any errors are found. This is useful,
for instance, for implementing pre-commit hooks.</p></dd> for instance, for implementing pre-commit hooks.</p></dd>
<dt><code>bottle</code> [<code>--verbose</code>] [<code>--no-rebuild</code>] [<code>--keep-old</code>] [<code>--skip-relocation</code>] [<code>--root-url=&lt;root_url></code>]:</dt><dd><p></p></dd> <dt><code>bottle</code> [<code>--verbose</code>] [<code>--no-rebuild</code>] [<code>--keep-old</code>] [<code>--skip-relocation</code>] [<code>--root-url=&lt;root_url></code>] [<code>--force-core-tap</code>]:</dt><dd><p></p></dd>
<dt><code>bottle</code> <code>--merge</code> [<code>--no-commit</code>] [<code>--keep-old</code>] [<code>--write</code>]:</dt><dd><p></p> <dt><code>bottle</code> <code>--merge</code> [<code>--no-commit</code>] [<code>--keep-old</code>] [<code>--write</code>]:</dt><dd><p></p>
<p>Generate a bottle (binary package) from a formula installed with <p>Generate a bottle (binary package) from a formula installed with
@ -696,7 +696,7 @@ a Homebrew-built Subversion if installed, or the system-provided binary.</p>
<p>Set this to force Homebrew to use a particular <code>svn</code> binary.</p></dd> <p>Set this to force Homebrew to use a particular <code>svn</code> binary.</p></dd>
<dt><code>HOMEBREW_TEMP</code></dt><dd><p>If set, instructs Homebrew to use <code>HOMEBREW_TEMP</code> as the temporary directory <dt><code>HOMEBREW_TEMP</code></dt><dd><p>If set, instructs Homebrew to use <code>HOMEBREW_TEMP</code> as the temporary directory
for building packages. This may be needed if your system temp directory and for building packages. This may be needed if your system temp directory and
Homebrew Prefix are on different volumes, as OS X has trouble moving Homebrew Prefix are on different volumes, as macOS has trouble moving
symlinks across volumes when the target does not yet exist.</p> symlinks across volumes when the target does not yet exist.</p>
<p>This issue typically occurs when using FileVault or custom SSD <p>This issue typically occurs when using FileVault or custom SSD

View File

@ -4,7 +4,7 @@
.TH "BREW" "1" "September 2016" "Homebrew" "brew" .TH "BREW" "1" "September 2016" "Homebrew" "brew"
. .
.SH "NAME" .SH "NAME"
\fBbrew\fR \- The missing package manager for OS X \fBbrew\fR \- The missing package manager for macOS
. .
.SH "SYNOPSIS" .SH "SYNOPSIS"
\fBbrew\fR \fB\-\-version\fR \fBbrew\fR \fB\-\-version\fR
@ -13,7 +13,7 @@
\fBbrew\fR \fIcommand\fR [\fB\-\-verbose\fR|\fB\-v\fR] [\fIoptions\fR] [\fIformula\fR] \.\.\. \fBbrew\fR \fIcommand\fR [\fB\-\-verbose\fR|\fB\-v\fR] [\fIoptions\fR] [\fIformula\fR] \.\.\.
. .
.SH "DESCRIPTION" .SH "DESCRIPTION"
Homebrew is the easiest and most flexible way to install the UNIX tools Apple didn\'t include with OS X\. Homebrew is the easiest and most flexible way to install the UNIX tools Apple didn\'t include with macOS\.
. .
.SH "ESSENTIAL COMMANDS" .SH "ESSENTIAL COMMANDS"
For the full command list, see the \fICOMMANDS\fR section\. For the full command list, see the \fICOMMANDS\fR section\.
@ -171,7 +171,7 @@ If \fB\-\-deps\fR is passed, also download dependencies for any listed \fIformul
If \fB\-\-build\-from\-source\fR is passed, download the source rather than a bottle\. If \fB\-\-build\-from\-source\fR is passed, download the source rather than a bottle\.
. .
.IP .IP
If \fB\-\-force\-bottle\fR is passed, download a bottle if it exists for the current version of OS X, even if it would not be used during installation\. If \fB\-\-force\-bottle\fR is passed, download a bottle if it exists for the current version of macOS, even if it would not be used during installation\.
. .
.TP .TP
\fBgist\-logs\fR [\fB\-\-new\-issue\fR|\fB\-n\fR] \fIformula\fR \fBgist\-logs\fR [\fB\-\-new\-issue\fR|\fB\-n\fR] \fIformula\fR
@ -291,7 +291,7 @@ If \fB\-\-force\fR is passed, Homebrew will allow keg\-only formulae to be linke
. .
.TP .TP
\fBlinkapps\fR [\fB\-\-local\fR] [\fIformulae\fR] \fBlinkapps\fR [\fB\-\-local\fR] [\fIformulae\fR]
Find installed formulae that provide \fB\.app\fR\-style OS X apps and symlink them into \fB/Applications\fR, allowing for easier access\. Find installed formulae that provide \fB\.app\fR\-style macOS apps and symlink them into \fB/Applications\fR, allowing for easier access\.
. .
.IP .IP
If no \fIformulae\fR are provided, all of them will have their apps symlinked\. If no \fIformulae\fR are provided, all of them will have their apps symlinked\.
@ -644,7 +644,7 @@ If \fB\-\-display\-filename\fR is passed, every line of output is prefixed with
\fBaudit\fR exits with a non\-zero status if any errors are found\. This is useful, for instance, for implementing pre\-commit hooks\. \fBaudit\fR exits with a non\-zero status if any errors are found\. This is useful, for instance, for implementing pre\-commit hooks\.
. .
.TP .TP
\fBbottle\fR [\fB\-\-verbose\fR] [\fB\-\-no\-rebuild\fR] [\fB\-\-keep\-old\fR] [\fB\-\-skip\-relocation\fR] [\fB\-\-root\-url=<root_url>\fR]: \fBbottle\fR [\fB\-\-verbose\fR] [\fB\-\-no\-rebuild\fR] [\fB\-\-keep\-old\fR] [\fB\-\-skip\-relocation\fR] [\fB\-\-root\-url=<root_url>\fR] [\fB\-\-force\-core\-tap\fR]:
. .
.TP .TP
@ -952,7 +952,7 @@ Set this to force Homebrew to use a particular \fBsvn\fR binary\.
. .
.TP .TP
\fBHOMEBREW_TEMP\fR \fBHOMEBREW_TEMP\fR
If set, instructs Homebrew to use \fBHOMEBREW_TEMP\fR as the temporary directory for building packages\. This may be needed if your system temp directory and Homebrew Prefix are on different volumes, as OS X has trouble moving symlinks across volumes when the target does not yet exist\. If set, instructs Homebrew to use \fBHOMEBREW_TEMP\fR as the temporary directory for building packages\. This may be needed if your system temp directory and Homebrew Prefix are on different volumes, as macOS has trouble moving symlinks across volumes when the target does not yet exist\.
. .
.IP .IP
This issue typically occurs when using FileVault or custom SSD configurations\. This issue typically occurs when using FileVault or custom SSD configurations\.