NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Fix the Guide (Re: Recovering from botched update?)

David Chanters <> writes:

> So I decided in my infinite wisdom to follow the following guide:
> Following section "33.1.5" the first problem I noticed was the
> instructions don't tell you to build anything in tools, which meant I
> couldn't compile anything anyway -- this ought to be fixed, I think?
> I think this was noted here:
> I am not qualified to make a decision either way, but i think the
> "chap-updating.html" could do with simplifying for someone like me new
> to NetBSD following this for the first time.  Indeed, someone called
> "ASau" was kind enough to help me, but even he agrees that page needs
> simplifying --- and I would help, if I knew just how that's meant to
> be done.

After I've looked in the guide I've found that it is plain wrong,
since it suggests building userland before tools.

The question reoccurs quite frequently on IRC, we should react in some way.

I propose making following changes.

Mention that NetBSD always cross-builds ("expert" mode is for experts),
thus you need to build tools, then use these tools to build the rest.
Stress that tools is a pre-requisite.

Mention that it is good habit to use separate object tree,
canonical place is /usr/obj, check that it is set in by default
if the directory exists.

Mention that it is possible to build system unprivileged and it is good
habit to do so.

REMOVE all references to "-T ../tools", use default place for tools
under MAKEOBJDIR, under /usr/obj by default. I propose to leave this
practice (using separate directory for tools) for more advanced users.

Update routine in the Guide (for new users) should read in short:

  mkdir ../obj
  ./ -O ../obj -U tools distribution sets kernel=<KERNEL>
  <install kernel, reboot>
  ./ -O ../obj -U tools # this serves testing purpose well enough
  ./ -O ../obj -U install=/

or simpler

  su root -c 'mkdir /usr/obj; chmod g+w /usr/obj' # so that wheel group can use 
  cd /usr/src
  ./ -U tools distribution sets kernel=<KERNEL>
  <install kernel, reboot>
  ./ -U tools install=/

The latter is basically what I do.

Note "-U" repetition. This suggests that we should make it default.

Technical question: is there any document with short instructions
how to update our documentation? Or should I just send diff?


Home | Main Index | Thread Index | Old Index