Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Oct 2015 15:21:05 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        "Simon J. Gerraty" <sjg@juniper.net>
Cc:        Bryan Drewery <bdrewery@freebsd.org>, Warner Losh <imp@freebsd.org>,  src-committers <src-committers@freebsd.org>,  "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>,  "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r288911 - head/share/mk
Message-ID:  <CANCZdfof9qRkcBYbMUXidS9Edq%2BntDmyBUkXz4k8DDoCboHQmA@mail.gmail.com>
In-Reply-To: <20169.1444165538@chaos>
References:  <201510060418.t964Innu071170@repo.freebsd.org> <56140CAD.8080200@FreeBSD.org> <8D5D1CE5-BC57-464D-9C47-63EFF4C1CF2F@bsdimp.com> <20169.1444165538@chaos>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 6, 2015 at 3:05 PM, Simon J. Gerraty <sjg@juniper.net> wrote:

> Warner Losh <imp@bsdimp.com> wrote:
> > > The sys.mk change to include src.conf breaks building ports in a
> sub-dir
> > > of src. Meaning, /usr/src/ports/.  The MAKESYSPATH with '.../share/mk=
'
> > > finds /usr/src/share/mk and runs off with all of the src.*.mk stuff
> long
> > > before the port Makefile includes bsd.port.mk, from
> > > /usr/src/share/mk/bsd.port.mk, which has a _WITHOUT_SRCCONF=3D guard =
set
> > > on it to avoid bsd.own.mk from including src.conf.  But because sys.m=
k
> > > is already included long before this, src.conf is already included an=
d
> > > anything handled in sys.mk has no real way to respect _WITHOUT_SRCCON=
F
> > > unless it is in the environment
> >
> > Yuck!
> >
> > But the real problem here is MAKESYSPATH of =E2=80=A6/share/mk. That wa=
s  a
> > hack until we had something like SRCTOP that we could use for finding
> > the right stuff and for individual builds. So if we can solve that
> > part of th
>
> but you only get SRCTOP as a consequence of finding the right
> sys.mk et al.  Which presumes you have MAKESYSPATH set correctly.
> Ie. you find the right src.sys.env.mk and it can set SRCTOP based on
> knowing its own location.
>
> A bit of chicken & egg...
>

That's why I haven't fixed it. I haven't puzzled out a how to cut the
Gordian
Knot yet.

Warner



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