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

next in thread | previous in thread | raw e-mail | index | archive | help
=A0 =A0This 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):

=3D=3D=3D> include (install)
creating osreldate.h from newvers.sh
NEWVERS PATH: /usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/leg=
acy/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/insta=
ll.Nuxzcgf9
/usr/src/include/../sys/conf/newvers.sh: dirname: not found

...

# 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?AANLkTiknNAbWkZ1nQLN39ZX3RWDq-AuvBzLdy68Xgtjn>