Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 May 2025 13:35:20 +0100
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        "Simon J. Gerraty" <sjg@juniper.net>
Cc:        Mark Millard <marklmi@yahoo.com>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: incremental bulds from scratch with beinstall.sh
Message-ID:  <CAFDf7UKiKQnCNi-q4-m1QzP1qbobmoBr-UokQjBuJULuWPJC4w@mail.gmail.com>
In-Reply-To: <10858.1746584427@kaos.jnpr.net>
References:  <28F2BDE7-5903-4C04-A570-6A407F19D5F2@yahoo.com> <49396.1746554966@kaos.jnpr.net> <C9CCEA0D-C397-4FAA-8459-E8A2CD468358@yahoo.com> <87401.1746562441@kaos.jnpr.net> <4ACBBC16-3BB6-436A-B0B1-A18F088B000E@yahoo.com> <4421.1746572832@kaos.jnpr.net> <2CA19E21-0F2F-465A-BE8E-81ACDEE42D23@yahoo.com> <10858.1746584427@kaos.jnpr.net>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Hello!

Is any progress going on?
I can do some testing on my side too.

Thanks,

Simon J. Gerraty <sjg@juniper.net> escreveu (quarta, 7/05/2025 à(s) 03:21):

> Mark Millard <marklmi@yahoo.com> wrote:
> > > I think you could use something like this, which should be safe to
> > > commit:
> >
> > I do not have a commit bit. Should I submit a bugzilla
> > entry or something for its eventual commit?
>
> That's ok.  Confirm it works for you and I'll see if I can break
> anything with it
>
> >
> > > diff --git a/share/mk/src.sys.obj.mk b/share/mk/src.sys.obj.mk
> > > index 708559edcdb8..e4fe3fa9a2aa 100644
> > > --- a/share/mk/src.sys.obj.mk
> > > +++ b/share/mk/src.sys.obj.mk
> > > @@ -73,6 +73,12 @@ OBJROOT:= ${OBJROOT:H:tA}/${OBJROOT:T}
> > >  .endif
> > >  # Must export since OBJDIR will dynamically be based on it
> > >  .export OBJROOT SRCTOP
> > > +# if we didn't get SB_OBJROOT from env,
> > > +# it is handy to set it now, so we can remember it
> > > +.if empty(SB_OBJROOT)
> > > +SB_OBJROOT:= ${OBJROOT}
> > > +.export SB_OBJROOT
> > > +.endif
> > >  .endif
> > >
> > >  .if ${MK_DIRDEPS_BUILD} == "no"
> > >
> > > You can then use ${SB_OBJROOT} in your .MAKE.META.IGNORE_PATHS
> > > The difference is that nothing in the FreeBSD build should ever touch
> > > SB_OBJROOT so it should meet your need.
> > > I think ;-)
> > >
> > > And the above won't break our builds - which set SB_OBJROOT
> > > before running make.
> >
> > Looks to be working for both aarch64 and amd64 with
> > ~/src.configs/make.conf as shown below. It is used
> > in my environment's scripts via the make command
> > line starting with:
> >
> > env __MAKE_CONF="/usr/home/root/src.configs/make.conf"
>
> You might be interesting in https://www.crufty.net/sjg/docs/sb-tools.htm
> like what you are doing but on steroids ;-)
>
>

-- 
Nuno Teixeira
FreeBSD UNIX:  <eduardo@FreeBSD.org>   Web:  https://FreeBSD.org

[-- Attachment #2 --]
<div dir="ltr"><div>Hello!<br><br></div><div>Is any progress going on?</div><div>I can do some testing on my side too.<br><br></div><div>Thanks,</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Simon J. Gerraty &lt;<a href="mailto:sjg@juniper.net">sjg@juniper.net</a>&gt; escreveu (quarta, 7/05/2025 à(s) 03:21):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Mark Millard &lt;<a href="mailto:marklmi@yahoo.com" target="_blank">marklmi@yahoo.com</a>&gt; wrote:<br>
&gt; &gt; I think you could use something like this, which should be safe to<br>
&gt; &gt; commit:<br>
&gt; <br>
&gt; I do not have a commit bit. Should I submit a bugzilla<br>
&gt; entry or something for its eventual commit?<br>
<br>
That&#39;s ok.  Confirm it works for you and I&#39;ll see if I can break<br>
anything with it<br>
<br>
&gt; <br>
&gt; &gt; diff --git a/share/mk/<a href="http://src.sys.obj.mk" rel="noreferrer" target="_blank">src.sys.obj.mk</a> b/share/mk/<a href="http://src.sys.obj.mk" rel="noreferrer" target="_blank">src.sys.obj.mk</a><br>
&gt; &gt; index 708559edcdb8..e4fe3fa9a2aa 100644<br>
&gt; &gt; --- a/share/mk/<a href="http://src.sys.obj.mk" rel="noreferrer" target="_blank">src.sys.obj.mk</a><br>
&gt; &gt; +++ b/share/mk/<a href="http://src.sys.obj.mk" rel="noreferrer" target="_blank">src.sys.obj.mk</a><br>
&gt; &gt; @@ -73,6 +73,12 @@ OBJROOT:= ${OBJROOT:H:tA}/${OBJROOT:T}<br>
&gt; &gt;  .endif<br>
&gt; &gt;  # Must export since OBJDIR will dynamically be based on it<br>
&gt; &gt;  .export OBJROOT SRCTOP<br>
&gt; &gt; +# if we didn&#39;t get SB_OBJROOT from env,<br>
&gt; &gt; +# it is handy to set it now, so we can remember it<br>
&gt; &gt; +.if empty(SB_OBJROOT)<br>
&gt; &gt; +SB_OBJROOT:= ${OBJROOT}<br>
&gt; &gt; +.export SB_OBJROOT<br>
&gt; &gt; +.endif<br>
&gt; &gt;  .endif<br>
&gt; &gt;<br>
&gt; &gt;  .if ${MK_DIRDEPS_BUILD} == &quot;no&quot;<br>
&gt; &gt;<br>
&gt; &gt; You can then use ${SB_OBJROOT} in your .MAKE.META.IGNORE_PATHS<br>
&gt; &gt; The difference is that nothing in the FreeBSD build should ever touch<br>
&gt; &gt; SB_OBJROOT so it should meet your need.<br>
&gt; &gt; I think ;-)<br>
&gt; &gt;<br>
&gt; &gt; And the above won&#39;t break our builds - which set SB_OBJROOT<br>
&gt; &gt; before running make.<br>
&gt; <br>
&gt; Looks to be working for both aarch64 and amd64 with<br>
&gt; ~/src.configs/make.conf as shown below. It is used<br>
&gt; in my environment&#39;s scripts via the make command<br>
&gt; line starting with:<br>
&gt; <br>
&gt; env __MAKE_CONF=&quot;/usr/home/root/src.configs/make.conf&quot;<br>
<br>
You might be interesting in <a href="https://www.crufty.net/sjg/docs/sb-tools.htm" rel="noreferrer" target="_blank">https://www.crufty.net/sjg/docs/sb-tools.htm</a><br>;
like what you are doing but on steroids ;-)<br>
<br>
</blockquote></div><div><br clear="all"></div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><font color="#888888">Nuno Teixeira</font></div><div><div><font color="#888888">
FreeBSD UNIX:  &lt;eduardo@FreeBSD.org&gt;   Web:  <a href="https://FreeBSD.org" rel="noreferrer" target="_blank">https://FreeBSD.org</a><br></font></div></div></div></div>;
home | help

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