From owner-svn-src-all@FreeBSD.ORG Wed Jun 25 00:05:35 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 977A0E3E; Wed, 25 Jun 2014 00:05:35 +0000 (UTC) Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2lp0236.outbound.protection.outlook.com [207.46.163.236]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 89F9A2ECC; Wed, 25 Jun 2014 00:05:33 +0000 (UTC) Received: from CO2PR05CA034.namprd05.prod.outlook.com (10.141.241.162) by BL2PR05MB098.namprd05.prod.outlook.com (10.255.232.15) with Microsoft SMTP Server (TLS) id 15.0.954.9; Wed, 25 Jun 2014 00:05:26 +0000 Received: from BN1AFFO11FD039.protection.gbl (2a01:111:f400:7c10::140) by CO2PR05CA034.outlook.office365.com (2a01:111:e400:1429::34) with Microsoft SMTP Server (TLS) id 15.0.969.15 via Frontend Transport; Wed, 25 Jun 2014 00:05:26 +0000 Received: from P-EMF02-SAC.jnpr.net (66.129.239.16) by BN1AFFO11FD039.mail.protection.outlook.com (10.58.52.243) with Microsoft SMTP Server (TLS) id 15.0.969.12 via Frontend Transport; Wed, 25 Jun 2014 00:05:25 +0000 Received: from magenta.juniper.net (172.17.27.123) by P-EMF02-SAC.jnpr.net (172.24.192.21) with Microsoft SMTP Server (TLS) id 14.3.146.0; Tue, 24 Jun 2014 17:03:59 -0700 Received: from chaos.localdomain (chaos.jnpr.net [172.21.16.28]) by magenta.juniper.net (8.11.3/8.11.3) with ESMTP id s5P03wn08450; Tue, 24 Jun 2014 17:03:58 -0700 (PDT) (envelope-from sjg@juniper.net) Received: from chaos (localhost [127.0.0.1]) by chaos.localdomain (Postfix) with ESMTP id 8769E580A2; Tue, 24 Jun 2014 17:03:58 -0700 (PDT) To: Warner Losh Subject: Re: svn commit: r267758 - head In-Reply-To: References: <201406230054.s5N0suIA081734@svn.freebsd.org> <256E890F-9564-4741-A5D8-89543381CF2D@gmail.com> <53A9B494.3020709@freebsd.org> Comments: In-reply-to: Warner Losh message dated "Tue, 24 Jun 2014 15:25:45 -0700." From: "Simon J. Gerraty" X-Mailer: MH-E 7.82+cvs; nmh 1.3; GNU Emacs 22.3.1 Date: Tue, 24 Jun 2014 17:03:58 -0700 Message-ID: <20140625000358.8769E580A2@chaos.localdomain> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:66.129.239.16; CTRY:US; IPV:NLI; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(6009001)(189002)(199002)(101356003)(33656002)(93886003)(102836001)(90896003)(93916002)(86362001)(93546004)(85852003)(83072002)(57986006)(21056001)(102176002)(76506005)(97736001)(88136002)(99396002)(70486001)(79102001)(64706001)(105596002)(95666004)(20776003)(47776003)(80022001)(92566001)(92726001)(89996001)(81156004)(69596002)(106466001)(68736004)(6806004)(50466002)(81542001)(62966002)(4396001)(83322001)(44976005)(84676001)(76482001)(19580395003)(50226001)(77982001)(87286001)(76176999)(85306003)(50986999)(87936001)(81342001)(74662001)(31966008)(74502001)(48376002)(46102001)(77156001)(104166001)(42262001); DIR:OUT; SFP:; SCL:1; SRVR:BL2PR05MB098; H:P-EMF02-SAC.jnpr.net; FPR:; MLV:sfv; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Antispam: BL:0; ACTION:Default; RISK:Low; SCL:0; SPMLVL:NotSpam; PCL:0; RULEID: X-Forefront-PRVS: 02530BD3AA Received-SPF: SoftFail (: domain of transitioning juniper.net discourages use of 66.129.239.16 as permitted sender) Authentication-Results: spf=softfail (sender IP is 66.129.239.16) smtp.mailfrom=sjg@juniper.net; X-OriginatorOrg: juniper.net Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers , Andrey Chernov X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jun 2014 00:05:35 -0000 On Tue, 24 Jun 2014 15:25:45 -0700, Warner Losh writes: >>>>>> Change suggestion how to set MAKESYSPATH as broken incremental = >build >>>>>> workaround. Magic ".../share/mk" (search directories up to /) If syspath is going to include .../ it isn't a bad idea for sys.mk to resolve it. Something like: .if ${.MAKE.LEVEL} == 0 # just in case -m, MAKESYSPATH or our default has .../ # export a sanitised version... # first any -m* from command line, # then any MAKESYSPATH and finally ${.PARSEDIR} _makesyspath:= ${.MAKEFLAGS:tW:S/ -m / -m/g:tw:M-m*:S,^-m,,} \ ${MAKESYSPATH:U} \ ${.PARSEDIR} # replace .../.* with ${.PARSEDIR}, not perfect but pretty close MAKESYSPATH:= ${_makesyspath:S,:, ,g:C,^\.\.\./.*,${.PARSEDIR},:u:ts:} .export MAKESYSPATH .endif then if a sub-make is launched in a objdir outside of the tree, it will still find the correct sys.mk etc.