diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index be9fd12085..81534b3077 100644 --- a/Library/Homebrew/brew.sh +++ b/Library/Homebrew/brew.sh @@ -65,7 +65,7 @@ else CACHE_HOME="${HOMEBREW_XDG_CACHE_HOME:-${HOME}/.cache}" HOMEBREW_DEFAULT_CACHE="${CACHE_HOME}/Homebrew" HOMEBREW_DEFAULT_LOGS="${CACHE_HOME}/Homebrew/Logs" - HOMEBREW_DEFAULT_TEMP="/tmp" + HOMEBREW_DEFAULT_TEMP="/var/tmp" fi realpath() { diff --git a/Library/Homebrew/env_config.rb b/Library/Homebrew/env_config.rb index 9a04692269..e6a29aba4b 100644 --- a/Library/Homebrew/env_config.rb +++ b/Library/Homebrew/env_config.rb @@ -478,7 +478,7 @@ module Homebrew "different volumes, as macOS has trouble moving symlinks across volumes when the target " \ "does not yet exist. This issue typically occurs when using FileVault or custom SSD " \ "configurations.", - default_text: "macOS: `/private/tmp`, Linux: `/tmp`.", + default_text: "macOS: `/private/tmp`, Linux: `/var/tmp`.", default: HOMEBREW_DEFAULT_TEMP, }, HOMEBREW_UPDATE_TO_TAG: { diff --git a/docs/Manpage.md b/docs/Manpage.md index cb356f5878..e5b1271006 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -4344,7 +4344,7 @@ command execution e.g. `$(cat file)`. the target does not yet exist. This issue typically occurs when using FileVault or custom SSD configurations. - *Default:* macOS: `/private/tmp`, Linux: `/tmp`. + *Default:* macOS: `/private/tmp`, Linux: `/var/tmp`. `HOMEBREW_UPDATE_TO_TAG` diff --git a/manpages/brew.1 b/manpages/brew.1 index 62167ec7e9..fdb437dc3d 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -2843,7 +2843,7 @@ If set in Homebrew\[u2019]s system\-wide environment file (\fB/etc/homebrew/brew Use this path as the temporary directory for building packages\. Changing this may be needed if your system temporary directory and Homebrew prefix are on different volumes, as macOS has trouble moving symlinks across volumes when the target does not yet exist\. This issue typically occurs when using FileVault or custom SSD configurations\. .RS .P -\fIDefault:\fP macOS: \fB/private/tmp\fP, Linux: \fB/tmp\fP\&\. +\fIDefault:\fP macOS: \fB/private/tmp\fP, Linux: \fB/var/tmp\fP\&\. .RE .TP \fBHOMEBREW_UPDATE_TO_TAG\fP