no-check-if-root
authorDebian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
Thu, 3 Mar 2022 17:24:16 +0000 (17:24 +0000)
committerRene Engelhard <rene@debian.org>
Thu, 3 Mar 2022 17:24:16 +0000 (17:24 +0000)
Gbp-Pq: Name no-check-if-root.diff

Makefile.in

index d74dba59344c4bb6125cc7f1301d0e58d74788ac..6be439ba25d13b20014af658a32749d4b6f13fa3 100644 (file)
@@ -58,18 +58,6 @@ else # MAKE_RESTARTS
 
 .DEFAULT_GOAL := build
 
-# Nested test is to check if the systemd-detect-virt command doesn't exist or it reports we're not
-# in a container:
-check-if-root:
-       @if test ! `uname` = 'Haiku' -a `id -u` = 0; then \
-               if test ! -x "$$(command -v systemd-detect-virt)" || ! systemd-detect-virt -c -q; then \
-                       echo; \
-                       echo 'Building LibreOffice as root is a very bad idea, use a regular user.'; \
-                       echo; \
-                       exit 1; \
-               fi \
-       fi
-
 gb_Side ?= host
 
 include $(BUILDDIR)/config_$(gb_Side).mk
@@ -275,7 +263,7 @@ endif
 #
 # Bootstrap
 #
-bootstrap: check-if-root compilerplugins
+bootstrap: compilerplugins
 
 #
 # Build