File: no-check-if-root.diff

package info (click to toggle)
libreoffice 4%3A7.4.7-1%2Bdeb12u9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,601,024 kB
  • sloc: cpp: 4,235,177; xml: 385,692; java: 273,650; python: 72,159; ansic: 36,750; perl: 31,520; javascript: 18,215; sh: 11,445; yacc: 10,839; makefile: 9,490; cs: 6,703; objc: 1,969; lex: 1,885; asm: 1,047; awk: 1,018; pascal: 940; php: 79; csh: 20; sed: 5
file content (30 lines) | stat: -rw-r--r-- 783 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- a/Makefile.in	2017-07-28 06:09:37.072183489 +0000
+++ b/Makefile.in	2017-10-18 12:43:59.215567467 +0000
@@ -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
@@ -252,7 +244,7 @@ endif
 #
 # Bootstrap
 #
-bootstrap: check-if-root compilerplugins
+bootstrap: compilerplugins
 
 #
 # Build