From nobody@FreeBSD.ORG Sun Mar 14 02:24:46 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 78A0614D28; Sun, 14 Mar 1999 02:24:46 -0800 (PST)
Message-Id: <19990314102446.78A0614D28@hub.freebsd.org>
Date: Sun, 14 Mar 1999 02:24:46 -0800 (PST)
From: hmo@sep.hamburg.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: Makefile.upgrade fails with make -j
X-Send-Pr-Version: www-1.0

>Number:         10582
>Category:       conf
>Synopsis:       Makefile.upgrade fails with make -j
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    marcel
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 14 02:30:00 PST 1999
>Closed-Date:    Sun Nov 18 12:30:18 PST 2001
>Last-Modified:  Sun Nov 18 12:32:55 PST 2001
>Originator:     Helge Oldach
>Release:        3.1 (being upgraded from 2.2.8)
>Organization:
>Environment:
FreeBSD sep.hamburg.com 2.2.8-RELEASE FreeBSD 2.2.8-RELEASE #16: Fri Jan 15 23:44:33 CET 1999
  root@:/usr/src/sys/compile/HMO  i386

>Description:
Makefile.upgrade is lacking a dependency of do_aout_buildworld
for do_elf_buildworld which causes problems with a parallel make.
>How-To-Repeat:
make -j4 will force do_aout_buildworld to run in parallel to
do_elf_buildworld, causing the latter to fail since the aout tools
are not yet ready for it:

--- upgrade_checks ---
--- aout-to-elf-build ---
--- /usr/obj/do_aout_buildworld ---
--- /usr/obj/do_elf_buildworld ---
--------------------------------------------------------------
Doing an aout buildworld to get an up-to-date set of tools
--------------------------------------------------------------
--------------------------------------------------------------
Doing an elf buildworld using the aout tools in the aout
obj tree.
--------------------------------------------------------------
make: not found
--- /usr/obj/do_aout_buildworld ---
--- buildworld ---
--- /usr/obj/do_elf_buildworld ---
*** Error code 127


>Fix:
--- Makefile.upgrade    Sun Mar 14 11:15:06 1999
+++ Makefile.upgrade.ORIG       Sat Feb 13 19:49:14 1999
@@ -92,7 +92,7 @@
 #
 # Use the aout tools from the aout buildworld to do an elf buildworld.
 #
-${MAKEOBJDIRPREFIX}/do_elf_buildworld : ${MAKEOBJDIRPREFIX}/do_aout_buildworld
+${MAKEOBJDIRPREFIX}/do_elf_buildworld :
        @echo
        @echo "--------------------------------------------------------------"
        @echo " Doing an elf buildworld using the aout tools in the aout

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->marcel 
Responsible-Changed-By: johan 
Responsible-Changed-When: Mon Aug 14 08:16:35 PDT 2000 
Responsible-Changed-Why:  
Marcel, even thou this is an old PR. 
Can you please have a look at it and also kepp paralelism in  
mind for new upgrade targets. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=10582 

From: Marcel Moolenaar <marcel@cup.hp.com>
To: freebsd-gnats-submit@FreeBSD.org, hmo@sep.hamburg.com
Cc:  
Subject: Re: conf/10582: Makefile.upgrade fails with make -j
Date: Mon, 14 Aug 2000 15:53:06 -0700

 The upgrade target is mostly obsoleted. After I've verified that we can
 upgrade across the aout->elf switch (ie upgrade from versions < 3.0)
 with basicly a buildworld, buildkernel, installkernel and installworld
 sequence (plus bootblocks and devices of course), this target will be
 rewritten. We should be able to remove Makefile.upgrade as well in that
 case. 
 
 Vision: This target will be the only target needed for any source
 upgrades and performs the upgrade in a single run that ends with a
 reboot...
 
 -- 
 Marcel Moolenaar
   mail: marcel@cup.hp.com / marcel@FreeBSD.org
   tel:  (408) 447-4222
 
State-Changed-From-To: open->closed 
State-Changed-By: marcel 
State-Changed-When: Sun Nov 18 12:30:18 PST 2001 
State-Changed-Why:  
This has been open for way too long. aout support has been dropped 
a long time ago. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=10582 
>Unformatted:
