mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-09-13 09:17:20 -07:00
patchinstall.sh: Add workaround for mktemp on macOS <= 10.10.
This commit is contained in:
parent
e2b993408e
commit
ecdf44fe29
@ -2685,7 +2685,8 @@ fi
|
||||
# If autoupdate is enabled then create a tempfile to keep track of all patches
|
||||
if test "$enable_patchlist" -eq 1; then
|
||||
if test "$enable_Staging" -eq 1; then
|
||||
patchlist=$(mktemp)
|
||||
# macOS 10.10 and prior do not allow mktemp with empty argument
|
||||
patchlist=$(mktemp 2>/dev/null || mktemp -t tmp)
|
||||
if test ! -f "$patchlist"; then
|
||||
abort "Unable to create temporary file for patchlist."
|
||||
fi
|
||||
|
@ -435,7 +435,8 @@ patch_apply()
|
||||
# If autoupdate is enabled then create a tempfile to keep track of all patches
|
||||
if test "$enable_patchlist" -eq 1; then
|
||||
if test "$enable_Staging" -eq 1; then
|
||||
patchlist=$(mktemp)
|
||||
# macOS 10.10 and prior do not allow mktemp with empty argument
|
||||
patchlist=$(mktemp 2>/dev/null || mktemp -t tmp)
|
||||
if test ! -f "$patchlist"; then
|
||||
abort "Unable to create temporary file for patchlist."
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user