From owner-freebsd-current@FreeBSD.ORG Fri Feb 18 17:48:39 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 02F6C1065693 for ; Fri, 18 Feb 2011 17:48:39 +0000 (UTC) (envelope-from mj@feral.com) Received: from ns1.feral.com (ns1.feral.com [192.67.166.1]) by mx1.freebsd.org (Postfix) with ESMTP id 9FA7E8FC20 for ; Fri, 18 Feb 2011 17:48:38 +0000 (UTC) Received: from [172.16.135.102] (lportal.in1.lcl [172.16.1.9]) by ns1.feral.com (8.14.4/8.14.3) with ESMTP id p1IHU7Yv085308 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Fri, 18 Feb 2011 09:30:07 -0800 (PST) (envelope-from mj@feral.com) Message-ID: <4D5EAC9C.1090001@feral.com> Date: Fri, 18 Feb 2011 09:30:04 -0800 From: Matthew Jacob Organization: Feral Software User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <20110215211029.GA74471@freebsd.org> <20110218131603.GO65811@acme.spoerlein.net> <20110218163613.GA21409@freebsd.org> <4D5EAB54.7000604@FreeBSD.org> In-Reply-To: <4D5EAB54.7000604@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (ns1.feral.com [192.168.221.1]); Fri, 18 Feb 2011 09:30:07 -0800 (PST) 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:48:39 -0000 I generally don't have problems with make in FreeBSD environments, but often have tons of problems in others, like OpenSolaris, buildroot/busybox, and so on. To solve this, I clean my environment by using this shell script (called cleanenv): #!/bin/sh env -i PATH=/usr/bin:/bin TERM=${TERM} P4CONFIG=P4ENV $* exit $? or variants on this to run make (as in 'cleanenv make'). This tends to try and limit the chaos from environment assumptions. I don't think it is make's job, or the build tree's job, to enforce this cleanliness- mostly because it's really hard to do. It's just a lot easier to be a canonical simple 'user' when building. On 2/18/2011 9:24 AM, Dimitry Andric wrote: > 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. > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org"