solenv/gbuild/AllLangMoTarget.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 5238bced368adc3e8e4658f08cb23e20f26d43bf Author: Christian Lohmaier <lohmaier+libreoff...@googlemail.com> AuthorDate: Tue Aug 27 14:04:14 2024 +0200 Commit: Balazs Varga <balazs.varga.ext...@allotropia.de> CommitDate: Wed Oct 2 19:48:59 2024 +0200 run msguniq .. | msgfmt in a subshell to help out wsl1 handling stdout / pipe / redirections seems to be fragile when using wsl command1 | wsl command2 when multiple of those are run concurrently. So as a woraround make that a single invokation of wsl shell -c "command1 | command2" Change-Id: I9e67fddd6cf377aa0461515036ea7b709714153d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172468 Reviewed-by: Christian Lohmaier <lohmaier+libreoff...@googlemail.com> Tested-by: Jenkins Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174256 Reviewed-by: Balazs Varga <balazs.varga.ext...@allotropia.de> Tested-by: Balazs Varga <balazs.varga.ext...@allotropia.de> diff --git a/solenv/gbuild/AllLangMoTarget.mk b/solenv/gbuild/AllLangMoTarget.mk index ec05985d5ecc..f590f4d84ac0 100644 --- a/solenv/gbuild/AllLangMoTarget.mk +++ b/solenv/gbuild/AllLangMoTarget.mk @@ -32,12 +32,12 @@ $(call gb_MoTarget_get_clean_target,%) : $(call gb_MoTarget_get_target,$*) \ $(call gb_MoTarget_get_install_target,$*)) +# wsl1 seems to have issues with writing to stdout/pipes when running with high parallelism +# so as a workaround run the two statements in a single command run by a shell $(call gb_MoTarget_get_target,%) : $(gb_Helper_MISCDUMMY) $(call gb_Output_announce,$*,$(true),MO ,2) $(call gb_Trace_StartRange,$*,MO ) - $(call gb_Helper_abbreviate_dirs,\ - mkdir -p $(dir $@) && \ - $(MSGUNIQ) --force-po $(gb_POLOCATION)/$(LANGUAGE)/$(POLOCATION)/messages.po | $(MSGFMT) - -o $@) + $(call gb_Helper_wsl_path,$(WSL) /bin/sh -c "$(MSGUNIQ) --force-po $(gb_POLOCATION)/$(LANGUAGE)/$(POLOCATION)/messages.po | $(MSGFMT) - -o $@") $(call gb_Trace_EndRange,$*,MO ) #$(info $(call gb_MoTarget_get_target,$(1)))