solenv/gbuild/CppunitTest.mk | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit bdf6560a45ef29b9fb215b06f0cadc1aa1b9e100
Author: Caolán McNamara <[email protected]>
AuthorDate: Wed Feb 18 14:23:46 2026 +0000
Commit: Caolán McNamara <[email protected]>
CommitDate: Wed Feb 25 20:16:24 2026 +0100
continue if systemd --scope --user fails
which it can in a restricted environment with:
Failed to connect to user scope bus via local transport
Change-Id: I606d7cdfcdd3ad811943da37197498ae51e2051a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199627
Reviewed-by: Caolán McNamara <[email protected]>
Tested-by: Jenkins CollaboraOffice <[email protected]>
(cherry picked from commit 478833780cfa96fed3b7f55de0f90c853d454ae6)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200335
Tested-by: Jenkins
diff --git a/solenv/gbuild/CppunitTest.mk b/solenv/gbuild/CppunitTest.mk
index 70af152a7338..594e618a92e8 100644
--- a/solenv/gbuild/CppunitTest.mk
+++ b/solenv/gbuild/CppunitTest.mk
@@ -25,6 +25,10 @@ gb_CppunitTest_PYTHONDEPS ?= $(call
gb_Library_get_target,pyuno_wrapper) $(if $(
ifeq ($(WITH_COREDUMPCTL),)
gb_CppunitTest_coredumpctl_setup :=
gb_CppunitTest_coredumpctl_run :=
+else ifneq ($(shell $(SYSTEMD_RUN) --scope --user -- true 2>/dev/null && echo
yes),yes)
+$(info warning: systemd-run --scope --user does not work, disabling
coredumpctl)
+gb_CppunitTest_coredumpctl_setup :=
+gb_CppunitTest_coredumpctl_run :=
else
gb_CppunitTest_coredumpctl_setup = \
export LIBO_TEST_UNIT=$$($(SYSTEMD_ESCAPE) "$1:$$(date -u
+%Y%m%d%H%M%S):$$$$$(if $2,:$2)" | cut -b -249) &&