Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 May 2017 09:01:22 -0700
From:      "Simon J. Gerraty" <sjg@juniper.net>
To:        Thomas Mueller <mueller6722@twc.com>
Cc:        <freebsd-current@freebsd.org>, Ngie Cooper <yaneurabeya@gmail.com>, <sjg@juniper.net>
Subject:   Re: Bug in make setting wrong MAKESYSPATH
Message-ID:  <95058.1495555282@kaos.jnpr.net>
In-Reply-To: <E3.CD.25473.3CCD3295@dnvrco-omsmta03>
References:  <4E.66.25473.9D551295@dnvrco-omsmta03> <81057.1495500066@kaos.jnpr.net> <CAGHfRMCC6KzywEL==_=EoH_JxmQQu2aRsU-tag8pa5M-1UD%2Bcw@mail.gmail.com> <E3.CD.25473.3CCD3295@dnvrco-omsmta03>

next in thread | previous in thread | raw e-mail | index | archive | help
Thomas Mueller <mueller6722@twc.com> wrote:
> It seems to me that MAKESYSPATH should match the host building system
> FreeBSD version.

Which would only be correct if building the same version of FreeBSD as
is running on the host.
Many folk work on multiple branches on the same machine.

Thus for anyone working on src/ there is no guarantee that /usr/share/mk
is even remotely correct.

So you either buy into the idea of using a wrapper script and canned
.env file for each tree (that's what I do;
http://www.crufty.net/sjg/docs/sb-tools.htm) to ensure correct =

settings per tree (whether FreeBSD, NetBSD, ...), or you compromise and
have 'make' itself try to find the "correct" share/mk for whereever it is.
This is why the default MAKESYSPATH starts with .../share/mk

> Now I believe the correct syntax for setting MAKESYSPATH in .cshrc and .=
profile would be
> export MAKESYSPATH=3D/usr/share/mk  # for .profile, or
> setenv MAKESYSPATH /usr/share/mk  # for .cshrc

Yes, but requires you to keep /usr/share/mk in sync with whatever you a
building, tricky if you build head, stable/10 and stable/11 on the
same box.

--sjg



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