Date: Tue, 2 Mar 2010 00:08:16 GMT From: Alexander Best <alexbestms@wwu.de> To: freebsd-gnats-submit@FreeBSD.org Subject: amd64/144405: [patch] include /usr/obj/lib32 in cleanworld target on amd64 arch Message-ID: <201003020008.o2208GMP024541@www.freebsd.org> Resent-Message-ID: <201003020010.o220A7MA088259@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003020008.o2208GMP024541>