[Piuparts-commits] rev 426 - piatti/home/piupartsm/bin

Holger Levsen holger at alioth.debian.org
Sat May 30 20:43:24 UTC 2009


Author: holger
Date: 2009-05-30 20:43:23 +0000 (Sat, 30 May 2009)
New Revision: 426

Modified:
   piatti/home/piupartsm/bin/detect_well_known_errors
Log:
add check to detect packages which leave processes running on the system

Modified: piatti/home/piupartsm/bin/detect_well_known_errors
===================================================================
--- piatti/home/piupartsm/bin/detect_well_known_errors	2009-05-30 10:53:52 UTC (rev 425)
+++ piatti/home/piupartsm/bin/detect_well_known_errors	2009-05-30 20:43:23 UTC (rev 426)
@@ -164,6 +164,38 @@
 rm $LOGS
 
 #
+# detect packages which failed because of processes are running inside chroot
+#
+
+LOGS=`mktemp`
+for SECTION in $SECTIONS ; do 
+	rgrep "ERROR: FAIL: Processes are running inside chroot" $MASTER/$SECTION/fail|grep "," |cut -d " " -f1|sed -e "s#log:#log#"|sort -u 2>/dev/null >> $LOGS
+done
+if [ -s $LOGS ] ; then 
+	echo 
+	echo "Packages with failed logs because there were processes running inside the"
+	echo "chroot at the end of the piuparts run."
+	echo
+	echo "This is probably due to directly calling /etc/rc.d/ scripts in packages"
+	echo "maintainer scripts, which is a violation of policy 9.3.3.2 and must be"
+	echo "replaced by using policy-rc.d - see http://www.debian.org/doc/debian-policy/ch-opersys.html#s9.3.3"
+	echo 
+	echo "Please file bugs!"
+	echo 
+       	echo "MASTER=$MASTER ; SECTION=$SECTION"
+	echo 'rgrep "ERROR: FAIL: Processes are running inside chroot" $MASTER/$SECTION/fail|grep "," |cut -d " " -f1|sed -e "s#log:#log#"|sort -u 2>/dev/null '
+	for SECTION in $SECTIONS ; do 
+		COUNT=$(grep "/$SECTION/" $LOGS | cut -d "_" -f1|sort -u|wc -l)
+		echo "Affected packages in $SECTION: " $COUNT
+        done
+	echo
+	cat $LOGS | sed -e "s#$MASTER#http://piuparts.debian.org/#g" 
+	echo
+fi
+cat $LOGS >> $KNOWNLOGS
+rm $LOGS
+
+#
 # detect unknown errors, continued.
 #
 LOGS=`mktemp`




More information about the Piuparts-commits mailing list