[Libreoffice-commits] core.git: odk/build-examples_common.mk
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Sun Sep 27 13:03:56 UTC 2020
odk/build-examples_common.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 36fcb8dc0c0c1c9515cdf47ce74a272469c17087
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Sun Sep 27 12:26:06 2020 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sun Sep 27 15:03:19 2020 +0200
Restrict odk/examples to non-parallel make
At least odk/examples/DevelopersGuide/Spreadsheet/Makefile contains two
independent invocations of unopkg (i.e., $(DEPLOYTOOL)) and
CustomTarget_odk/build-examples_java had once failed for me with
> "~/lo/core/instdir/program/unopkg" add -f "~/lo/core/workdir/CustomTarget/odk/build-examples_java/out/sdk/LINUXexample.out/bin/ExampleDataPilotSource.oxt"
> ERROR: unopkg cannot be started. The lock file indicates it is already running. If this does not apply, delete the lock file at:
> ~/lo/core/workdir/CustomTarget/odk/build-examples_java/user/.lock ~/lo/core/desktop/source/pkgchk/unopkg/unopkg_shared.h:44
> make[2]: *** [Makefile:227: ~/lo/core/workdir/CustomTarget/odk/build-examples_java/out/sdk/LINUXexample.out/misc/DevGuideSpreadsheetExamples/devguide_ExampleDataPilotSource_register_component.flag] Error 1
So make sure the `make` invoked from those CustomTarget_odk/build_exmaple* does
not inherit any -j flag from the outer `make`. (I had observed this with an
explicit `make -j4` and --without-parallelism, but this should also be an issue
for the implicit parallelism from the default --with-parallelism.)
Change-Id: Iff368dbbcad01d3841d63c2985639ba6a3dec1f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103504
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/odk/build-examples_common.mk b/odk/build-examples_common.mk
index abcb3a3e2593..08b8d5e3c231 100644
--- a/odk/build-examples_common.mk
+++ b/odk/build-examples_common.mk
@@ -46,7 +46,7 @@ else
UserInstallation=$(call gb_Helper_make_url,$(call gb_CustomTarget_get_workdir,$(1))/user) \
$(foreach my_dir,$(2), \
&& (cd $(INSTDIR)/$(SDKDIRNAME)/examples/$(my_dir) \
- && printf 'yes\n' | LC_ALL=C make \
+ && printf 'yes\n' | LC_ALL=C make -j1 \
CC="$(CXX)" LINK="$(CXX)" LIB="$(CXX)" \
$(if $(MACOSX_SHELL_HACK), SHELL="$$$$ODK_BUILD_SHELL", ))) \
$(if $(MACOSX_SHELL_HACK),&& rm -f "$$$$ODK_BUILD_SHELL")) \
More information about the Libreoffice-commits
mailing list