From owner-freebsd-stable Thu Sep 25 23:29:47 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA12530 for stable-outgoing; Thu, 25 Sep 1997 23:29:47 -0700 (PDT) Received: from bunyip.cc.uq.edu.au (daemon@bunyip.cc.uq.edu.au [130.102.2.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA12505; Thu, 25 Sep 1997 23:29:12 -0700 (PDT) Received: (from daemon@localhost) by bunyip.cc.uq.edu.au (8.8.7/8.8.7) id QAA15687; Fri, 26 Sep 1997 16:29:00 +1000 Received: from troll.dtir.qld.gov.au (troll.dtir.qld.gov.au [167.123.8.1]) by ogre.dtir.qld.gov.au (8.8.7/8.8.7) with ESMTP id QAA09202; Fri, 26 Sep 1997 16:30:07 +1000 (EST) Received: from localhost (syssgm@localhost) by troll.dtir.qld.gov.au (8.8.5/8.8.5) with SMTP id QAA10015; Fri, 26 Sep 1997 16:30:03 +1000 (EST) Message-Id: <199709260630.QAA10015@troll.dtir.qld.gov.au> X-Authentication-Warning: troll.dtir.qld.gov.au: syssgm@localhost didn't use HELO protocol To: freebsd-stable@freebsd.org cc: asami@freebsd.org, syssgm@dtir.qld.gov.au Subject: Read-only src tree solution for review Date: Fri, 26 Sep 1997 16:30:02 +1000 From: Stephen McKay Sender: owner-freebsd-stable@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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.