From hsu@clinet.fi  Sun Oct 13 23:51:10 1996
Received: from hauki.clinet.fi (root@hauki.clinet.fi [194.100.0.1])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id XAA03460
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 13 Oct 1996 23:50:06 -0700 (PDT)
Received: from katiska.clinet.fi (root@katiska.clinet.fi [194.100.0.4]) by hauki.clinet.fi (8.7.6/8.6.4) with ESMTP id IAA08729 for <FreeBSD-gnats-submit@freebsd.org>; Mon, 14 Oct 1996 08:49:56 +0200 (EET)
Received: (root@localhost) by katiska.clinet.fi (8.7.6/8.6.4) id JAA24880; Mon, 14 Oct 1996 09:49:56 +0300 (EET DST)
Message-Id: <199610140649.JAA24880@katiska.clinet.fi>
Date: Mon, 14 Oct 1996 09:49:56 +0300 (EET DST)
From: Heikki Suonsivu <hsu@clinet.fi>
Reply-To: hsu@clinet.fi
To: FreeBSD-gnats-submit@freebsd.org
Subject: make reinstall rule broken, tries to do depend and all
X-Send-Pr-Version: 3.2

>Number:         1803
>Category:       bin
>Synopsis:       make reinstall rule broken, tries to do depend and all
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    peter
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 14 00:00:01 PDT 1996
>Closed-Date:    Sat Nov 9 19:44:44 PST 1996
>Last-Modified:  Sat Nov  9 19:45:08 PST 1996
>Originator:     Heikki Suonsivu
>Release:        FreeBSD 2.2-CURRENT i386
>Organization:
Clinet, Espoo, Finland
>Environment:

-Current

>Description:

make reinstall no more works, someone added all and depend to reinstall
rule, which does not work, as tools on the machine to be upgraded may not
be up-to-date.

Instead of reinstalling the target the ready-compiled obj/src tree probably
gets munged.

>How-To-Repeat:

reinstall machine couple of months old.  May botch your src/obj tree, so be
prepared to make world again.

>Fix:
	
make reinstall should not rebuild anything; it should be possible
to do make reinstall from read-only mount of obj/src.

Partial fix is to remove depend and all from reinstall rule, to
return the reinstall rule to what it was before.

Real fix would involve making reinstall install tools needed for install
first, but I don't know how this should be done.  Depending on target age
more and more things need to be done, make, mk and install often need to be
installed again.  I have been doing most of this by hand when necessary.

*** Makefile.broken     Mon Oct 14 08:09:50 1996
--- Makefile    Mon Oct 14 08:10:44 1996
***************
*** 246,261 ****
        cd ${.CURDIR} && ${MAKE} includes
        @echo
        @echo "--------------------------------------------------------------"
-       @echo " Rebuilding dependencies"
-       @echo "--------------------------------------------------------------"
-       cd ${.CURDIR} && ${MAKE} depend
-       @echo
-       @echo "--------------------------------------------------------------"
-       @echo " Building everything.."
-       @echo "--------------------------------------------------------------"
-       cd ${.CURDIR} && ${MAKE} all
-       @echo
-       @echo "--------------------------------------------------------------"
        @echo " Installing everything.."
        @echo "--------------------------------------------------------------"
        cd ${.CURDIR} && ${MAKE} install
--- 246,251 ----


-- 
Heikki Suonsivu, T{ysikuu 10 C 83/02210 Espoo/FINLAND, hsu@clinet.fi
mobile +358-40-5519679 work +358-0-43542270 fax -4555276 home -8031121


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: peter 
State-Changed-When: Mon Oct 14 06:50:35 PDT 1996 
State-Changed-Why:  
A fix has been committed in rev 1.107 of src/Makefile,a fter 
I'd broken it in 1.99.  Does it work well enough now? I know it's 
still not ideal. 


Responsible-Changed-From-To: freebsd-bugs->peter 
Responsible-Changed-By: peter 
Responsible-Changed-When: Mon Oct 14 06:50:35 PDT 1996 
Responsible-Changed-Why:  
I'll look after this since I use it too.. 
State-Changed-From-To: feedback->closed 
State-Changed-By: scrappy 
State-Changed-When: Sat Nov 9 19:44:44 PST 1996 
State-Changed-Why:  

Originator Confirmed Closure 
>Unformatted:
