Kaydet (Commit) 21f8277c authored tarafından Michael Stahl's avatar Michael Stahl Kaydeden (comit) Caolán McNamara

Revert "oss-fuzz runs under docker"

This reverts commit 210f5947.

Just disable the check if running inside docker

http://stackoverflow.com/questions/23513045/how-to-check-if-a-process-is-running-inside-docker-container

Change-Id: Ib11a2ccb7f0b2bd5e174b9b3adaf8a28474f2908
Reviewed-on: https://gerrit.libreoffice.org/34544Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 3386519e
......@@ -9,7 +9,7 @@
gb_Top_MODULE_CHECK_TARGETS := slowcheck unitcheck subsequentcheck perfcheck uicheck screenshot
.PHONY : all bootstrap gbuild build build-non-l10n-only build-l10n-only check clean clean-build clean-host test-install distclean distro-pack-install docs download etags fetch findunusedcode get-submodules id install install-strip tags debugrun help showmodules translations packageinfo internal.clean $(gb_Top_MODULE_CHECK_TARGETS)
.PHONY : all check-if-root bootstrap gbuild build build-non-l10n-only build-l10n-only check clean clean-build clean-host test-install distclean distro-pack-install docs download etags fetch findunusedcode get-submodules id install install-strip tags debugrun help showmodules translations packageinfo internal.clean $(gb_Top_MODULE_CHECK_TARGETS)
MAKECMDGOALS?=all
build_goal:=$(if $(filter build check,$(MAKECMDGOALS)),all)\
......@@ -54,6 +54,14 @@ else # MAKE_RESTARTS
all: build
check-if-root:
@if test `id -u` = 0 && ! grep -q 'lxc\|docker' /proc/self/cgroup; then \
echo; \
echo 'No. You make ME a sandwich.'; \
echo; \
exit 1; \
fi
gb_Side ?= host
include $(BUILDDIR)/config_$(gb_Side).mk
......@@ -243,7 +251,7 @@ endif
#
# Bootstrap
#
bootstrap: compilerplugins
bootstrap: check-if-root compilerplugins
#
# Build
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment