summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--solenv/gbuild/gbuild.mk13
1 files changed, 12 insertions, 1 deletions
diff --git a/solenv/gbuild/gbuild.mk b/solenv/gbuild/gbuild.mk
index 7c4df81bf257..86ed3d32a376 100644
--- a/solenv/gbuild/gbuild.mk
+++ b/solenv/gbuild/gbuild.mk
@@ -261,7 +261,18 @@ gb_GLOBALDEFS := $(sort $(gb_GLOBALDEFS))
# * Cap the number of threads unittests use:
gb_TEST_ENV_VARS := MAX_CONCURRENCY=4
# * Disable searching for certificates by default:
-gb_TEST_ENV_VARS += MOZILLA_CERTIFICATE_FOLDER=
+#
+# see xmlsecurity/source/xmlsec/nss/nssinitializer.cxx for use
+#
+# a) If MOZILLA_CERTIFICATE_FOLDER is empty then LibreOffice autodetects
+# the user's mozilla-decended application profile. To disable that we
+# use a non-empty string here.
+#
+# b) Using dbm: appears to nss as equivalent to an empty path so the
+# initial NSS_InitReadWrite will fail. In response to that failure
+# LibreOffice will create a temp fallback cert database which is removed
+# on process exit
+gb_TEST_ENV_VARS += MOZILLA_CERTIFICATE_FOLDER=dbm:
# Avoid hanging if the cups daemon requests a password:
gb_TEST_ENV_VARS += SAL_DISABLE_SYNCHRONOUS_PRINTER_DETECTION=1
ifeq (,$(SAL_USE_VCLPLUGIN))