Subject: kern/25691: make cleandir fails in /usr/src/regress/sys/kern/umount/
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <afx@pkl.net>
List: netbsd-bugs
Date: 05/24/2004 06:41:19
>Number:         25691
>Category:       kern
>Synopsis:       make cleandir fails in /usr/src/regress/sys/kern/umount/
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 24 06:42:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     George F. Costanzo
>Release:        -current
>Organization:
>Environment:
NetBSD marx.hkr.ath.cx 2.0E NetBSD 2.0E (SARIG) #3: Sun May 16 01:05:26 EST 2004  root@marx.hkr.ath.cx:/usr/obj.i386/usr/src/sys/arch/i386/compile/SARIG i386
>Description:
I build nightly with the command:

screen -S build ./build.sh -D /usr/build.i386 -M /usr/obj.i386 -T /usr/tools.i386 distribution

My scripts grep through the logs to find the first occurance of "Failed target:" and the following turned up:

cleandir ===> regress/sys/kern/umount
***  Cleaning up /usr/obj.i386/usr/src/regress/sys/kern/umount/umount-f_mount,
/usr/obj.i386/usr/src/regress/sys/kern/umount/umount-f.im.
umount -f "/usr/obj.i386/usr/src/regress/sys/kern/umount/umount-f_mount"
umount: /usr/obj.i386/usr/src/regress/sys/kern/umount/umount-f_mount: not currently mounted
*** Failed target:  clean
*** Failed command: umount -f "/usr/obj.i386/usr/src/regress/sys/kern/umount/umount-f_mount"

>How-To-Repeat:
cd /usr/src; make cleandir; grep -m 1 -A 1 -B 22 "Failed target:"
>Fix:
--- /usr/src/regress/sys/kern/umount/Makefile.orig      2004-05-24 16:22:14.000000000 +1000
+++ /usr/src/regress/sys/kern/umount/Makefile   2004-05-24 16:04:26.000000000 +1000
@@ -15,12 +15,14 @@
 CVND= /dev/r${VND}
 MPART?= a
 
-regress: mountfs run_script clean
+regress: mountfs run_script unmountfs clean
 
-clean:
+unmountfs:
        @echo "***  Cleaning up ${TMPMP}, ${TMPIM}."
        -umount -f "${TMPMP}"
        -vnconfig -u "${VND}"
+
+clean:
        -rm -rf "${TMPMP}" "${TMPIM}"
 
 mountfs:
>Release-Note:
>Audit-Trail:
>Unformatted: