summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-08-22 11:50:53 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-08-22 14:32:32 +0200
commit840b1714d3f00a60b81676bddf201355e3c47afb (patch)
tree6de68d7e05a87160f3a907c535e1923a117c8c52 /solenv
parent0e7d4d99beda181f4e22725e4b8295d25489696f (diff)
Give gengal invocations their own UserInstallations
Building e.g. Gallery_backgrounds tries to access a UserInstallation at various places, first at > #0 0x00007ffff29b0302 in EmbeddedFontsHelper::clearTemporaryFontFiles() () at vcl/source/gdi/embeddedfontshelper.cxx:60 > #1 0x00007ffff2dd6bb4 in InitVCL() () at vcl/source/app/svmain.cxx:304 > #2 0x00007ffff2dd66b6 in ImplSVMain() () at vcl/source/app/svmain.cxx:190 > #3 0x00007ffff2dd6898 in SVMain() () at vcl/source/app/svmain.cxx:231 > #4 0x000000000041215d in sal_main() () at vcl/source/salmain/salmain.cxx:34 It would either access the real UserInstallation (if the bootstrap ini-file has already been delivered to instdir) or try to access some (typically non- existent) /user. That appears to be generally harmless, but to be on the safe side, pass the gengal invocation an explicit UserInstallation in workdir (which does not exist, and does not get populated, but just prevents accidentally accessing a real UserInstallation). Change-Id: Idc709a4bd44ce0dddbafaac25141215730808fca Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120838 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/Gallery.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/solenv/gbuild/Gallery.mk b/solenv/gbuild/Gallery.mk
index d4c2765ae2dd..b2833a36fe1a 100644
--- a/solenv/gbuild/Gallery.mk
+++ b/solenv/gbuild/Gallery.mk
@@ -24,7 +24,8 @@ $(call gb_Helper_abbreviate_dirs,\
--destdir $(GALLERY_BASEDIR) \
--name "$(GALLERY_NAME)" \
--path $(call gb_Gallery_get_workdir,$(2)) \
- --filenames $(call gb_Helper_make_url,$$RESPONSEFILE),\
+ --filenames $(call gb_Helper_make_url,$$RESPONSEFILE) \
+ -env:UserInstallation=$(call gb_Helper_make_url,$(call gb_Gallery_get_workdir,$(2))/user),\
$@.log \
) && \
rm $$RESPONSEFILE && \