This is an automated email from the ASF dual-hosted git repository.

ardovm pushed a commit to branch catalina
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit f1593045b154fade3a67d5f1771054eccc807e3f
Author: Arrigo Marchiori <[email protected]>
AuthorDate: Sat Jul 17 15:00:56 2021 +0200

    Use "our" temporary directory on macOS
    
    Needed to build under Catalina, whose /var is a symlink
---
 main/instsetoo_native/util/makefile.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/main/instsetoo_native/util/makefile.mk 
b/main/instsetoo_native/util/makefile.mk
index d374929..2452543 100644
--- a/main/instsetoo_native/util/makefile.mk
+++ b/main/instsetoo_native/util/makefile.mk
@@ -52,6 +52,13 @@ DONT_REMOVE_PACKAGE:=TRUE
 .EXPORT: DONT_REMOVE_PACKAGE
 .ENDIF          # "$(OS)"=="LINUX"
 
+.IF "$(OS)"=="MACOSX"
+# $TMPDIR may be under /var, that may be a symbolic link and Perl may
+# consider it unsafe
+TMPDIR:=$(OUTDIR)/tmp
+.EXPORT: TMPDIR
+.ENDIF
+
 .INCLUDE .IGNORE: $(SRC_ROOT)$/cwsname.mk
 
 SHARED_COM_SDK_PATH*:=.

Reply via email to