From owner-freebsd-current@FreeBSD.ORG Wed Nov 17 20:56:27 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 1F1C91065670; Wed, 17 Nov 2010 20:56:27 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 7B3158FC0A; Wed, 17 Nov 2010 20:56:26 +0000 (UTC) Received: by wwd20 with SMTP id 20so2416217wwd.31 for ; Wed, 17 Nov 2010 12:56:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=ZQunjKkpkOBhBlrvq4WFKl2Af32NjmPx+wTc97qeBJI=; b=wZcnZDHMeo4ZDrFPfP1DxFED/Xq6/IHz5jod73+VQqhtYiD4xv9QyCBGoxEXCjvUxP pw1b2BqblAWob+da7EY491OI93ZdjdWEfyTW9GY8mwXjd/5hf2KARcaUxEzlV7T4niBL /YGJ5l97830hcLuas5bovLDVjhl/dH18iTfnc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=Sl1sNSnlfkVR+ob9NhVgNVDyyn62CfjBuh8/hRgWAKF8PReagTXuCVvYdISqpgKIeH BgvEi59sITpXSRylAhJYeQ3YkGaHGne86MwyUk08ce7O69JInZBlyE58jwqv3aRT7DQw /ZKjWkcaJGAkZr2IlUzq1AKkNZ+SubH7BRcwo= MIME-Version: 1.0 Received: by 10.216.7.210 with SMTP id 60mr2323284wep.30.1290027384208; Wed, 17 Nov 2010 12:56:24 -0800 (PST) Sender: yanegomi@gmail.com Received: by 10.216.198.27 with HTTP; Wed, 17 Nov 2010 12:56:24 -0800 (PST) In-Reply-To: <4CE439D1.5040803@bsdimp.com> References: <4CE439D1.5040803@bsdimp.com> Date: Wed, 17 Nov 2010 12:56:24 -0800 X-Google-Sender-Auth: GgCDOqDnREe_1V82CgPVB3uK51k Message-ID: From: Garrett Cooper To: Warner Losh Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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:56:27 -0000 On Wed, Nov 17, 2010 at 12:23 PM, Warner Losh wrote: > On 11/17/2010 12:36, Garrett Cooper wrote: >> >> =A0 =A0This is the second time I've seen this (I forgot why I fixed it t= he >> first time, reverted the local change, and ran into the change the >> second time): >> >> =3D=3D=3D> =A0include (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/o= bj/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... This might be because sys/param.h was newer than osreldate.h (I unpacked it from a tarball as it was on a memory disk). I thought tar was supposed to preserve the file dates and times with -p though -_-: -m, --modification-time (x mode only) Do not extract modification time. By default, t= he modification time is set to the time stored in the archive. >> # dirname >> usage: dirname string [...] >> >> =A0 =A0I 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