amd64/144405: [patch] include /usr/obj/lib32 in cleanworld target on amd64 arch

Alexander Best alexbestms at
Tue Mar 2 00:10:07 UTC 2010

>Number:         144405
>Category:       amd64
>Synopsis:       [patch] include /usr/obj/lib32 in cleanworld target on amd64 arch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-amd64
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 02 00:10:07 UTC 2010
>Originator:     Alexander Best
>Release:        9.0-CURRENT
FreeBSD otaku 9.0-CURRENT FreeBSD 9.0-CURRENT #2 r204494M: Mon Mar  1 02:00:14 CET 2010     root at otaku:/usr/obj/usr/src/sys/ARUNDEL  amd64
the patch includes /usr/obj/lib32 in the cleanworld target. the patch only scrubs the directory if it's present (which means cleanworld on anything != amd64 won't change). the patch also honours envar MAKEOBJDIRPREFIX.

this was discussed in [1].


`cd /usr/src && make cleanworld`

=> /usr/obj/usr/src gets scrubbed, but /usr/obj/lib32/usr/src doesn't.

Patch attached with submission follows:

Index: Makefile
--- Makefile	(revision 204540)
+++ Makefile	(working copy)
@@ -159,6 +159,11 @@
 	-chflags -R 0 ${.OBJDIR}
 	rm -rf ${.OBJDIR}/*
+.if exists(${MAKEOBJDIRPREFIX}/lib32${.CURDIR}/)
+	-rm -rf ${MAKEOBJDIRPREFIX}/lib32${.CURDIR}/*
+	-chflags -R 0 ${MAKEOBJDIRPREFIX}/lib32${.CURDIR}
+	rm -rf ${MAKEOBJDIRPREFIX}/lib32${.CURDIR}/*
 # Handle the user-driven targets, using the source relative mk files.


More information about the freebsd-amd64 mailing list