Date: Fri, 26 Sep 1997 16:30:02 +1000 From: Stephen McKay <syssgm@dtir.qld.gov.au> To: freebsd-stable@freebsd.org Cc: asami@freebsd.org, syssgm@dtir.qld.gov.au Subject: Read-only src tree solution for review Message-ID: <199709260630.QAA10015@troll.dtir.qld.gov.au>
next in thread | raw e-mail | index | archive | help
After the lex lib obj problem (fix to be committed probably tomorrow), the
other main problem was a failure building make. I solved this by changing
line 188 of Makefile from:
IBMAKE= ${BMAKEENV} ${MAKE} DESTDIR=${WORLDTMP}
to
IBMAKE= ${BMAKEENV} MAKEOBJDIR=/tmp ${MAKE} DESTDIR=${WORLDTMP}
IBMAKE is only used when building make for the first time, and MAKEOBJDIR=/tmp
puts the objects in /tmp. Without this, the old make will put the objects
in the source directory. With this fix (plus the lex/lib one) a read only
source tree will build 2.2-stable from a 2.1.5 box.
While this seems the simplest way to fix things, some people might like
something other than /tmp. Perhaps ${WORLDTMP}, or even something else.
It was not immediately obvious to me how to put make's object files in
its real object area. (Think about people NOT using read-only source, and
NOT using a separate object tree.)
So, what do people think? I want to commit a fix tomorrow some time.
If nobody speaks up, it will be either /tmp or ${WORLDTMP} for this tweak.
Then I should update the handbook with some "How to upgrade from source"
doco covering the other surprises (like group mail and group network and
/usr/src/share/info ...)
Stephen.
Oh bugger! I've just been told that there's a power shutdown here this
weekend. Everything should be up by the afternoon.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709260630.QAA10015>
