File: 0015-Debian-Reproducibility-Do-not-run-stp-tests-as-root.patch

package info (click to toggle)
cups 2.4.2-3%2Bdeb12u8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 35,416 kB
  • sloc: ansic: 158,712; cpp: 8,662; sh: 5,263; makefile: 2,781; php: 17; python: 10
file content (23 lines) | stat: -rw-r--r-- 754 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Didier Raboud <odyx@debian.org>
Date: Wed, 3 Feb 2021 16:30:08 +0100
Subject: Debian: Reproducibility: Do not run stp tests as root

Reprotest insist in running these tests as root; skip them there.
---
 test/run-stp-tests.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/run-stp-tests.sh b/test/run-stp-tests.sh
index bcace0d..251bc43 100755
--- a/test/run-stp-tests.sh
+++ b/test/run-stp-tests.sh
@@ -19,7 +19,8 @@ argcount=$#
 
 if test "x`id -u`" = x0; then
 	echo Please run this as a normal user. Not supported when run as root.
-	exit 1
+	echo "Debian Reproducibility: Skipping allowed, as this is known to break under reprotest. This message MUST NOT be visible in normal Debian buildd logs."
+	exit 0
 fi
 
 #