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

Alexander Best alexbestms at wwu.de
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
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 02 00:10:07 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Best
>Release:        9.0-CURRENT
>Organization:
>Environment:
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
>Description:
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].

cheers.
alex

[1] http://lists.freebsd.org/pipermail/freebsd-hackers/2010-February/030806.html
>How-To-Repeat:
`cd /usr/src && make cleanworld`

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


Patch attached with submission follows:

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


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-amd64 mailing list