Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Nov 2010 12:56:24 -0800
From:      Garrett Cooper <gcooper@FreeBSD.org>
To:        Warner Losh <imp@bsdimp.com>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>, Warner Losh <imp@freebsd.org>
Subject:   Re: newvers.sh: can't find dirname?
Message-ID:  <AANLkTin-Toz0wJJZF0gZiBuG8dE0Fybw4Jpv=GbbzWKH@mail.gmail.com>
In-Reply-To: <4CE439D1.5040803@bsdimp.com>
References:  <AANLkTi=he3Fi=vk6N%2Byoc42jCdvFhXFzbJ6jvfkmGS5s@mail.gmail.com> <AANLkTiknNAbWkZ1nQLN39ZX3RWDq-AuvBzLdy68Xgtjn@mail.gmail.com> <4CE439D1.5040803@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Nov 17, 2010 at 12:23 PM, Warner Losh <imp@bsdimp.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTin-Toz0wJJZF0gZiBuG8dE0Fybw4Jpv=GbbzWKH>