From sethk@magnesium.net  Mon Apr 29 20:14:49 2002
Return-Path: <sethk@magnesium.net>
Received: from magnesium.net (toxic.magnesium.net [207.154.84.15])
	by hub.freebsd.org (Postfix) with SMTP id 2CD4F37B41B
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 29 Apr 2002 20:14:44 -0700 (PDT)
Received: (qmail 90717 invoked by uid 1165); 30 Apr 2002 03:14:43 -0000
Message-Id: <20020430031443.90716.qmail@magnesium.net>
Date: 29 Apr 2002 20:14:43 -0700
From: Seth Kingsley <sethk@meowfishies.com>
Reply-To: Seth Kingsley <sethk@meowfishies.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] make installworld fails on missing utilities.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         37583
>Category:       misc
>Synopsis:       [PATCH] make installworld fails on missing utilities.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 29 20:20:01 PDT 2002
>Closed-Date:    Mon May 13 06:10:47 PDT 2002
>Last-Modified:  Mon May 13 06:10:47 PDT 2002
>Originator:     Seth Kingsley
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
FreeBSD neko.home.meowfishies.com 5.0-CURRENT FreeBSD 5.0-CURRENT #8:
Sun Apr 28 08:06:04 PDT 2002
sethk@neko.home.meowfishies.com:/usr/src/sys/i386/compile/NEKO  i386

/etc/make.conf:

CPUTYPE=		k7
NOMANCOMPRESS=		true
NO_BIND=		true
NO_FORTRAN=		true
NO_MAILWRAPPER=		true
NO_MODULES=		true
NO_SENDMAIL=		true
NOUUCP=			true
MAKE_RSAINTL=		yes
NO_MAKEDEV=		true
XFREE86_VERSION=	4
HAVE_MOTIF=		yes
MOTIFLIB=		-L${X11BASE}/lib -lXm -lXp
USA_RESIDENT=		yes
TOP_TABLE_SIZE=		63
KERNCONF?=		NEKO
INSTKERNNAME?=		vmunix
GENERIC_KERNCONF=	GENERIC
GENERIC_INSTKERNNAME=	${INSTKERNNAME}.GENERIC
KERNEL?=		${INSTKERNNAME}
CVS_UPDATE=		yes
CVSROOT=		
PORTSSUPFILE=		/usr/share/examples/cvsup/ports-supfile
CVSROOT=		:pserver:anoncvs@anoncvs.freebsd.org:/home/ncvs
DOCSUPFILE=		/usr/share/examples/cvsup/doc-supfile

# Ports stuff
WITH_CSS=		yes
WITH_MOTIF=		yes

# /usr/share/doc stuff:
#FORMATS=		html html-split txt ps pdb
DOC_LANG=		en_US.ISO8859-1 ja_JP.eucJP
NICE_HEADERS=		yes
#NO_TIDY=		yes
MIN_SECT_LABELS=	yes
INSTALL_COMPRESSED=

CTAGS=			ctags
CTFLAGS=		-dt

.NOTMAIN: generic-kernel new-kernel

generic-kernel:
	(cd /usr/src; ${MAKE} ${.MAKEFLAGS} kernel	\
	KERNCONF=${GENERIC_KERNCONF}	\
	INSTKERNNAME=${GENERIC_INSTKERNNAME})


>Description:
	When make(1)ing installworld while booted single user, make
	fails in several places due to missing programs.  I have seen
	these types of problems for a long time, and believe that they
	are somehow connected to my make.conf options.

>How-To-Repeat:
	Buildworld with the above make.conf and reboot single-user for
	the installworld.

>Fix:

The workaround is to install each utility that "make installworld" fails
on manually using "make install".  It must be repeated until make no
longer fails.

Patch:
+ Add cp, ls, m4, and pod2man to the list of utilities copied into
  ${INSTALLTMP} before installworld.

Index: Makefile.inc1
===================================================================
RCS file: /home/ncvs/src/Makefile.inc1,v
retrieving revision 1.260
diff -u -p -r1.260 Makefile.inc1
--- Makefile.inc1	2002/04/20 19:04:59	1.260
+++ Makefile.inc1	2002/04/30 02:10:01
@@ -336,9 +336,9 @@ installcheck:
 #
 installworld: installcheck
 	mkdir -p ${INSTALLTMP}
-	for prog in [ awk cat chflags chmod chown date echo egrep find grep \
-	    ln make makewhatis mkdir mtree mv perl rm sed sh sysctl \
-	    test true uname wc zic; do \
+	for prog in [ awk cat chflags chmod chown cp date echo egrep find \
+	    grep ln ls m4 make makewhatis mkdir mtree mv perl pod2man rm \
+	    sed sh sysctl test true uname wc zic; do \
 		cp `which $$prog` ${INSTALLTMP}; \
 	done
 	cd ${.CURDIR}; ${IMAKE} reinstall

>Release-Note:
>Audit-Trail:

From: Johan Karlsson <k@numeri.campus.luth.se>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: misc/37583: [PATCH] make installworld fails on missing utilities.
Date: Wed, 8 May 2002 16:24:15 +0200

 See PR 37360 for a discussion about this problem.
 http://www.FreeBSD.org/cgi/query-pr.cgi?pr=bin/37360
 
 /Johan K
 
 -- 
 Johan Karlsson		mailto:k@numeri.campus.luth.se

From: "Crist J. Clark" <cjc@FreeBSD.ORG>
To: Seth Kingsley <sethk@meowfishies.com>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: misc/37583: [PATCH] make installworld fails on missing utilities.
Date: Wed, 8 May 2002 10:55:17 -0700

 On Mon, Apr 29, 2002 at 08:14:43PM -0700, Seth Kingsley wrote:
 [snip]
 > >Description:
 > 	When make(1)ing installworld while booted single user, make
 > 	fails in several places due to missing programs.  I have seen
 > 	these types of problems for a long time, and believe that they
 > 	are somehow connected to my make.conf options.
 
 My money is on clock issues. Is your CMOS clock set to localtime? Do
 you make sure to start adjkerntz(8) manually in single-user?
 
 All of the things 'installworld' is failing on were supposed to have
 happened during the 'buildworld.' The temporal chaos induced by not
 having the timezone adjust properly fakes out make(1) and it tries to
 rebuild things that it shouldn't.
 -- 
 Crist J. Clark                     |     cjclark@alum.mit.edu
                                    |     cjclark@jhu.edu
 http://people.freebsd.org/~cjc/    |     cjc@freebsd.org

From: Seth Kingsley <sethk@meowfishies.com>
To: "Crist J. Clark" <cjc@FreeBSD.ORG>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: misc/37583: [PATCH] make installworld fails on missing utilities.
Date: 9 May 2002 05:26:12 -0700

 --UugvWAfsgieZRqgk
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Wed, May 08, 2002 at 10:55:17AM -0700, Crist J. Clark wrote:
 > On Mon, Apr 29, 2002 at 08:14:43PM -0700, Seth Kingsley wrote:
 > [snip]
 > > >Description:
 > > 	When make(1)ing installworld while booted single user, make
 > > 	fails in several places due to missing programs.  I have seen
 > > 	these types of problems for a long time, and believe that they
 > > 	are somehow connected to my make.conf options.
 >=20
 > My money is on clock issues. Is your CMOS clock set to localtime? Do
 > you make sure to start adjkerntz(8) manually in single-user?
 
 Ahh, it all makes sense now.  How embarassing.  You may close this PR.
 :)
 
 --=20
 || Seth Kingsley || sethk@meowfishies.com ||
 || http://www.meowfishies.com/ | Meow ^_^ ||
 
 --UugvWAfsgieZRqgk
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.6 (FreeBSD)
 Comment: For info see http://www.gnupg.org
 
 iD8DBQE82mrkD1AymFxBOwgRAjQ/AJ4s9vYYrgNdYnCfYmhHncLuSY+3qACdFGUo
 T8Scn5It5pXrq3JmTQyzQd8=
 =7eq4
 -----END PGP SIGNATURE-----
 
 --UugvWAfsgieZRqgk--
State-Changed-From-To: open->closed 
State-Changed-By: cjc 
State-Changed-When: Thu May 9 11:57:16 PDT 2002 
State-Changed-Why:  
Submitter says it does look like clock sync issues. Not a bug in the 
makefiles. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37583 
State-Changed-From-To: closed->open 
State-Changed-By: ru 
State-Changed-When: Mon May 13 06:07:45 PDT 2002 
State-Changed-Why:  
The analysis is incorrect.  The bug is in bsd.man.mk. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37583 
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Mon May 13 06:10:23 PDT 2002 
State-Changed-Why:  
Fixed in bsd.man.mk,v 1.48. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37583 
>Unformatted:
