From owner-freebsd-current@FreeBSD.ORG Fri Feb 18 17:24:38 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50948106564A; Fri, 18 Feb 2011 17:24:38 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 0F7F18FC0C; Fri, 18 Feb 2011 17:24:38 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:186c:eee3:731:e7d1] (unknown [IPv6:2001:7b8:3a7:0:186c:eee3:731:e7d1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 56F0F5C59; Fri, 18 Feb 2011 18:24:37 +0100 (CET) Message-ID: <4D5EAB54.7000604@FreeBSD.org> Date: Fri, 18 Feb 2011 18:24:36 +0100 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.15pre) Gecko/20110205 Lanikai/3.1.9pre MIME-Version: 1.0 To: Alexander Best References: <20110215211029.GA74471@freebsd.org> <20110218131603.GO65811@acme.spoerlein.net> <20110218163613.GA21409@freebsd.org> In-Reply-To: <20110218163613.GA21409@freebsd.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: $PATH and buildworld not getting along X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Feb 2011 17:24:38 -0000 On 2011-02-18 17:36, Alexander Best wrote: ... > i'd say no. imo nothing from /usr/local/* should ever be invoked when compiling > a target in /usr/src. everything that's needed is in /usr/* (excluding local). > > so $PATH should unconditionally be set to sth. like: > > PATH=/sbin:/bin:/usr/sbin:/usr/bin; > > to be sure no tools, libs or whatever from any foreign place such as > /usr/local/* get sucked into a build. I'm not sure if you modified anything in your source tree, but my /usr/src/Makefile has this line very close to the start of the file: PATH= /sbin:/bin:/usr/sbin:/usr/bin so what is the problem, exactly? :) If you are building stuff by hand, you are outside regular territory anyway, and you should simply pay attention to your PATH yourself.