From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 1 23:17:28 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1E011065672 for ; Mon, 1 Mar 2010 23:17:28 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-exrelay1.uni-muenster.de (ZIVM-EXRELAY1.UNI-MUENSTER.DE [128.176.192.14]) by mx1.freebsd.org (Postfix) with ESMTP id 3D52F8FC0C for ; Mon, 1 Mar 2010 23:17:27 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.49,563,1262559600"; d="txt'?scan'208";a="297931115" Received: from zivmaildisp1.uni-muenster.de (HELO ZIVMAILUSER04.UNI-MUENSTER.DE) ([128.176.188.85]) by zivm-relay1.uni-muenster.de with ESMTP; 02 Mar 2010 00:17:25 +0100 Received: by ZIVMAILUSER04.UNI-MUENSTER.DE (Postfix, from userid 149459) id 628311B07C1; Tue, 2 Mar 2010 00:17:25 +0100 (CET) Date: Tue, 02 Mar 2010 00:17:18 +0100 (CET) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: jhell Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=+permail-2010030123171880e26a0b00001f06-a_best01+ Cc: freebsd-hackers@freebsd.org Subject: Re: `make cleanworld` and /usr/obj/lib32/usr/src X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2010 23:17:28 -0000 This is a MIME encoded multipart message. --+permail-2010030123171880e26a0b00001f06-a_best01+ Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit jhell schrieb am 2010-03-01: > On Sun, 28 Feb 2010 11:54, alexbestms@ wrote: > >Gary Jennejohn schrieb am 2010-02-28: > >>On Sat, 27 Feb 2010 14:49:58 +0100 (CET) > >>Alexander Best wrote: > >>>how about something like this? > >>Based on a quick look it seems OK to me. > >>Have you tested it? > >i did. it works when `make cleanworld` is being run from /usr/src. > >i'm not > >sure however what the > >.if ${.CURDIR} == ${.OBJDIR} || ${.CURDIR}/obj == ${.OBJDIR} > >.if exists(${BW_CANONICALOBJDIR}/) > >statement is for so i didn't include the lib32 cleanup in that > >clause. my > >guess is that it's used to catch the case where `make cleanworld` > >is being run > >in /usr/obj/usr/src > You can't run make from a obj directory there is no Makefile, > Targets or spoons. ;) > This line here: > BW_CANONICALOBJDIR:=${MAKEOBJDIRPREFIX}${.CURDIR} > Allows the end-user to set MAKEOBJDIRPREFIX in their environment and > have the obj directory somewhere other than CANONICALOBJDIR. this patch should take care of the lib32 dir with MAKEOBJDIRPREFIX being defined or undefined. cheers. alex > BW is an abbreviation for "buildworld". > >cheers. > >alex > >>--- > >>Gary Jennejohn > >_______________________________________________ > >freebsd-hackers@freebsd.org mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > >To unsubscribe, send any mail to > >"freebsd-hackers-unsubscribe@freebsd.org" > -- > jhell --+permail-2010030123171880e26a0b00001f06-a_best01+ Content-Type: text/plain Content-Transfer-Encoding: Base64 Content-Disposition: attachment; filename="makefile.patch.txt" SW5kZXg6IE1ha2VmaWxlCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIE1ha2VmaWxlCShyZXZpc2lvbiAyMDQ1NDAp CisrKyBNYWtlZmlsZQkod29ya2luZyBjb3B5KQpAQCAtMTU5LDYgKzE1OSwxMSBAQAogCS1jaGZs YWdzIC1SIDAgJHsuT0JKRElSfQogCXJtIC1yZiAkey5PQkpESVJ9LyoKIC5lbmRpZgorLmlmIGV4 aXN0cygke01BS0VPQkpESVJQUkVGSVh9L2xpYjMyJHsuQ1VSRElSfS8pCisgICAgICAgIC1ybSAt cmYgJHtNQUtFT0JKRElSUFJFRklYfS9saWIzMiR7LkNVUkRJUn0vKgorICAgICAgICAtY2hmbGFn cyAtUiAwICR7TUFLRU9CSkRJUlBSRUZJWH0vbGliMzIkey5DVVJESVJ9ICAKKyAgICAgICAgcm0g LXJmICR7TUFLRU9CSkRJUlBSRUZJWH0vbGliMzIkey5DVVJESVJ9LyoKKy5lbmRpZgogCiAjCiAj IEhhbmRsZSB0aGUgdXNlci1kcml2ZW4gdGFyZ2V0cywgdXNpbmcgdGhlIHNvdXJjZSByZWxhdGl2 ZSBtayBmaWxlcy4K --+permail-2010030123171880e26a0b00001f06-a_best01+--