From owner-freebsd-current@FreeBSD.ORG Wed Nov 17 20:31:40 2010 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 5B68A106564A; Wed, 17 Nov 2010 20:31:40 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 194F88FC14; Wed, 17 Nov 2010 20:31:40 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id oAHKNlvj053348; Wed, 17 Nov 2010 13:23:47 -0700 (MST) (envelope-from imp@bsdimp.com) Message-ID: <4CE439D1.5040803@bsdimp.com> Date: Wed, 17 Nov 2010 13:23:45 -0700 From: Warner Losh User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101029 Thunderbird/3.1.6 MIME-Version: 1.0 To: Garrett Cooper References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Current , Warner Losh Subject: Re: newvers.sh: can't find dirname? 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: Wed, 17 Nov 2010 20:31:40 -0000 On 11/17/2010 12:36, Garrett Cooper wrote: > This is the second time I've seen this (I forgot why I fixed it the > first time, reverted the local change, and ran into the change the > second time): > > ===> include (install) > creating osreldate.h from newvers.sh > NEWVERS PATH: /usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/tmp/install.Nuxzcgf9 > /usr/src/include/../sys/conf/newvers.sh: dirname: not found This shouldn't be running newvers.sh... Warner > ... > > # dirname > usage: dirname string [...] > > I hacked around this by adding dirname to $PATH in newvers.sh (if > you look at the above $PATH printed out, it doesn't contain /bin and > /usr/bin -- both which are required to run the above commands), but I > was wondering if anyone else has run into this issue before, and > whether or not a better solution was in the works (maybe). > Thanks, > -Garrett > > >