Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Dec 2018 12:55:36 +0000
From:      Edward Napierala <trasz@freebsd.org>
To:        "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Cc:        chmeeedalf@gmail.com, Warner Losh <imp@bsdimp.com>,  src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org,  svn-src-head@freebsd.org
Subject:   Re: svn commit: r341343 - head/share/man/man7
Message-ID:  <CAFLM3-p4HrnC_SUvfmXyWeX6%2ByxE8BV-w0g3SrApev69PX5wQQ@mail.gmail.com>
In-Reply-To: <06F736F1-E101-4720-A70C-A58D143CFE49@lists.zabbadoz.net>
References:  <201811301556.wAUFuFlQ060205@repo.freebsd.org> <5F231C0E-AD6A-4F85-9D65-3EB414B59E6E@lists.zabbadoz.net> <CAHSQbTA=zhW1JGALBgJzKmenrCOgGxyoeEKF8LAzF7m3b_zbuA@mail.gmail.com> <CANCZdfpR%2BoAm8ywFG_zJR0T1KPZ3xgtkxmgEBi=vTixq9N19ZA@mail.gmail.com> <CAHSQbTC-LrY521GCgN9=zA%2BDTxsSpJm2rU7ZGivWCzsSmrOLWw@mail.gmail.com> <06F736F1-E101-4720-A70C-A58D143CFE49@lists.zabbadoz.net>

next in thread | previous in thread | raw e-mail | index | archive | help
pt., 30 lis 2018 o 16:43 Bjoern A. Zeeb
<bzeeb-lists@lists.zabbadoz.net> napisa=C5=82(a):
>
> On 30 Nov 2018, at 16:38, Justin Hibbits wrote:
>
> > On Fri, Nov 30, 2018, 08:36 Warner Losh <imp@bsdimp.com wrote:
> >
> >>
> >>
> >> On Fri, Nov 30, 2018 at 9:35 AM Justin Hibbits <chmeeedalf@gmail.com>
> >> wrote:
> >>
> >>>
> >>>
> >>> On Fri, Nov 30, 2018, 08:24 Bjoern A. Zeeb <
> >>> bzeeb-lists@lists.zabbadoz.net wrote:
> >>>
> >>>> On 30 Nov 2018, at 15:56, Edward Tomasz Napierala wrote:
> >>>>
> >>>>> Author: trasz
> >>>>> Date: Fri Nov 30 15:56:14 2018
> >>>>> New Revision: 341343
> >>>>> URL: https://svnweb.freebsd.org/changeset/base/341343
> >>>>>
> >>>>> Log:
> >>>>>   Add an example of rebuilding a single piece of userspace.
> >>>>>
> >>>>> Modified:
> >>>>>   head/share/man/man7/development.7
> >>>>>
> >>>>> Modified: head/share/man/man7/development.7
> >>>>>
> >>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D
> >>>>> --- head/share/man/man7/development.7 Fri Nov 30 15:52:03
> >>>>> 2018  (r341342)
> >>>>> +++ head/share/man/man7/development.7 Fri Nov 30 15:56:14
> >>>>> 2018  (r341343)
> >>>>> @@ -118,6 +118,14 @@ After reboot:
> >>>>>  cd src
> >>>>>  make -j8 installworld
> >>>>>  reboot
> >>>>> +.Ed
> >>>>> +.Pp
> >>>>> +Rebuild and reinstall a single piece of userspace, in this
> >>>>> +case
> >>>>> +.Xr ls 1 :
> >>>>> +.Bd -literal -offset indent
> >>>>> +cd src/bin/ls
> >>>>> +make clean all install
> >>>>
> >>>> I always thought the proper sequence was:  make clean cleandepend
> >>>> obj
> >>>> depend all install
> >>>>
> >>>> However I have recently figured that it=E2=80=99s not actually true =
as
> >>>> building inside an individual user space source directory seems to
> >>>> pick
> >>>> up headers etc from the installed machine and not from the source
> >>>> tree.
> >>>> I keep arguing with myself if that had always been the case or
> >>>> not..  I
> >>>> am sure some people here do know better than me (so please see this
> >>>> as
> >>>> asking for help/advise).
> >>>>
> >>>> /bz
> >>>>
> >>>>
> >>>> When I need the build headers I use
> >>>
> >>>
> >>> make buildenv
> >>> ... cd bin/ls
> >>> ... make
> >>>
> >>
> >> You can also do cd bin/ls ; make buildenv now too :)
> >>
> >> Warner
> >>
> >
> > I learn something new everyday! Thanks!
>
> I guess that should be documented as part of the needed steps then?

It should, but as a separate example.  I'd like the default to be as simple
(and quick) as possible.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFLM3-p4HrnC_SUvfmXyWeX6%2ByxE8BV-w0g3SrApev69PX5wQQ>