solenv/gbuild/CppunitTest.mk | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 478833780cfa96fed3b7f55de0f90c853d454ae6
Author: Caolán McNamara <[email protected]>
AuthorDate: Wed Feb 18 14:23:46 2026 +0000
Commit: Caolán McNamara <[email protected]>
CommitDate: Fri Feb 20 15:02:27 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]>
diff --git a/solenv/gbuild/CppunitTest.mk b/solenv/gbuild/CppunitTest.mk
index f6bb294d82f0..c282b6d482ed 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) &&