no-check-if-root
authorDebian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
Thu, 23 Sep 2021 15:55:20 +0000 (16:55 +0100)
committerRene Engelhard <rene@debian.org>
Thu, 23 Sep 2021 15:55:20 +0000 (16:55 +0100)
Gbp-Pq: Name no-check-if-root.diff

Makefile.in

index f9a2644e569ad79b739a4e9df9b945e2c3200413..81b189e3d609d1ee0afffdea6b4f563b303e28d6 100644 (file)
@@ -58,17 +58,6 @@ else # MAKE_RESTARTS
 
 .DEFAULT_GOAL := build
 
-check-if-root:
-       @if test ! `uname` = 'Haiku' -a `id -u` = 0; then \
-               # if the systemd-detect-virt command doesn't exist or it reports we're not in a container \
-               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
@@ -274,7 +263,7 @@ endif
 #
 # Bootstrap
 #
-bootstrap: check-if-root compilerplugins
+bootstrap: compilerplugins
 
 #
 # Build