Subject: Re: PREVIOUSTOOLDIR question
To: Martin Weber <Ephaeton@gmx.net>
From: Luke Mewburn <lukem@NetBSD.org>
Date: 03/17/2004 09:45:20
Content-Type: text/plain; charset=us-ascii
On Tue, Mar 16, 2004 at 10:38:47PM +0100, Martin Weber wrote:
| Hoi tool wizards,
| I have a build.sh question concerning PREVIOUSTOOLDIR.
| So I've fetched src via cvs, and asked build.sh to build a fresh set
| of tools for me:
| # ./build.sh -T /usr/tools -M /space/obj -D /usr/dest tools
| then I've asked it to do some building...
| # ./build.sh -T /usr/tools -M /space/obj -D /usr/dest distribution
| ...and the first thing it does is realize that PREVIOUSTOOLDIR (=3D '')
| is not TOOLDIR (=3D /usr/tools), and begins with building the tools=20
| again ? (Cleaning stuff, dependall, now it's sitting somewhere in gcc).
This doesn't occur in the general case. Do you have any mk.conf
settings, environment variables, or other build.sh options you're
using and not displaying, that may affect the build?
# ./build.sh -T /usr/tools -M /space/obj -D /usr/dest params
| Do I get it right that to have your tools built once you have to build
| them twice ? Next time I maybe try ./build.sh ... -V PREVIOUSTOOLDIR=3D=
| and see what happens.=20
Don't do that; it is definitely unsupported to manipulate PREVIOUSTOOLDIR
| PREVIOUSTOOLDIR is not documented in BUILDING btw. Nor in UPDATING.
| Can the not-source-code-diver please get a short doc on this, please ?
PREVIOUSTOOLDIR was implemented to prevent the issues where the
the path to TOOLDIR has changed; in that case the tools should be
cleaned & rebuilt because there were problems with some tools
(including groff, if I recall correctly) hard-coding paths under
TOOLDIR and these programs were breaking when TOOLDIR was changed
(e.g, when the host uname changes after a kernel version bump
and you're using the default TOOLDIR).
For some reason your "PREVIOUSTOOLDIR" file isn't getting built
in the correct location; it should be in the .OBJDIR of src/tools.
There were problems with parallel builds and PREVIOUSTOOLDIR
a while ago but that has been fixed.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)
-----END PGP SIGNATURE-----