[Libreoffice-commits] online.git: Makefile.am
Miklos Vajna (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jul 16 14:34:56 UTC 2020
Makefile.am | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
New commits:
commit 9b620cb40bf69147d2aa20902b740503faf6c391
Author: Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Thu Jul 16 10:43:57 2020 +0200
Commit: Miklos Vajna <vmiklos at collabora.com>
CommitDate: Thu Jul 16 16:34:35 2020 +0200
libfuzzer: fix build
libfuzzer only produces fuzzer binaries, not a loolwsd binary, so don't
expect it in the libfuzzer case.
Change-Id: Ib818667031665aa60a447ddd5edd3a09bca76e18
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98910
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Miklos Vajna <vmiklos at collabora.com>
diff --git a/Makefile.am b/Makefile.am
index d75de4b49..e2c4b57e6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -323,7 +323,11 @@ EXTRA_DIST = discovery.xml \
scripts/unocommands.py \
$(man_MANS)
+if ENABLE_LIBFUZZER
+CLEANUP_COMMAND=true
+else
CLEANUP_COMMAND=if test -s ./loolwsd; then echo "Cleaning up..." && ./loolwsd --disable-lool-user-checking --cleanup --o:logging.level=trace; fi
+endif
if HAVE_LO_PATH
@@ -340,9 +344,15 @@ else
echo "Skipping capability setting"
endif
+if ENABLE_LIBFUZZER
+CLEANUP_DEPS=
+else
+CLEANUP_DEPS=loolwsd
+endif
+
# Build loolwsd and loolmount first, so we can cleanup before updating
# the systemplate directory, which we can't rm if it's mounted.
-$(SYSTEM_STAMP): ${top_srcdir}/loolwsd-systemplate-setup loolwsd caps_bins
+$(SYSTEM_STAMP): ${top_srcdir}/loolwsd-systemplate-setup $(CLEANUP_DEPS) caps_bins
$(CLEANUP_COMMAND)
if test "z at SYSTEMPLATE_PATH@" != "z"; then rm -rf "@SYSTEMPLATE_PATH@"; fi
${top_srcdir}/loolwsd-systemplate-setup "@SYSTEMPLATE_PATH@" "@LO_PATH@" && touch $@
@@ -483,7 +493,13 @@ endif
# installing the RPM or Debian package.
.PHONY: caps_bins cleanup
-all-local: loolwsd caps_bins @JAILS_PATH@ $(SYSTEM_STAMP)
+if ENABLE_LIBFUZZER
+ALL_LOCAL_DEPS=
+else
+ALL_LOCAL_DEPS=loolwsd
+endif
+
+all-local: $(ALL_LOCAL_DEPS) caps_bins @JAILS_PATH@ $(SYSTEM_STAMP)
# just run the build without any tests
build-nocheck: all-am
More information about the Libreoffice-commits
mailing list