svn commit: r288911 - head/share/mk

Simon J. Gerraty sjg at juniper.net
Tue Oct 6 21:21:19 UTC 2015


Warner Losh <imp at 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= guard set
> > on it to avoid bsd.own.mk from including src.conf.  But because sys.mk
> > is already included long before this, src.conf is already included and
> > anything handled in sys.mk has no real way to respect _WITHOUT_SRCCONF
> > unless it is in the environment
> 
> Yuck!
> 
> But the real problem here is MAKESYSPATH of …/share/mk. That was  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...


More information about the svn-src-all mailing list