[Libreoffice-commits] core.git: solenv/gbuild

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Sun Aug 22 12:33:05 UTC 2021


 solenv/gbuild/Gallery.mk |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 840b1714d3f00a60b81676bddf201355e3c47afb
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Sun Aug 22 11:50:53 2021 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sun Aug 22 14:32:32 2021 +0200

    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 at redhat.com>

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 && \


More information about the Libreoffice-commits mailing list