Bug 33014

Summary: installkernel without buildkernel gives confusing error
Product: Base System Reporter: leifn@neland.dk <root>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   

Description leifn@neland.dk 2001-12-19 19:20:00 UTC
        If I make installkernel without having done a buildkernel, I get
	this error: 
install date '+%Y%m%d' > /var/db/port.mkversion 
make: don't know how to make bsd.README. 
Stop
*** Error code 2

This doesn't hint that I've forgotten to buildkernel first.

Fix: 

Don't do that :-)
Comment 1 Sheldon Hearn 2001-12-30 14:12:50 UTC
On Wed, 19 Dec 2001 20:12:48 +0100, "leifn@neland.dk" wrote:

> >Category:       kern
> >Synopsis:       installkernel without buildkernel gives confusing error

How do you propose that the buildkernel target verify that a full buildworld
has completed?  Is it as simple as this?

Index: Makefile.inc1
===================================================================
RCS file: /home/ncvs/src/Makefile.inc1,v
retrieving revision 1.235
diff -u -d -r1.235 Makefile.inc1
--- Makefile.inc1	28 Dec 2001 11:53:18 -0000	1.235
+++ Makefile.inc1	30 Dec 2001 14:12:05 -0000
@@ -406,7 +407,7 @@
 #
 # Builds all kernels defined by BUILDKERNELS.
 #
-buildkernel:
+buildkernel: buildworld
 .if empty(BUILDKERNELS)
 	@echo ">>> ERROR: Missing kernel configuration file(s) (${KERNCONF})."
 	@false

Ciao,
Sheldon.
Comment 2 Jens Schweikhardt freebsd_committer freebsd_triage 2002-08-09 19:13:10 UTC
State Changed
From-To: open->closed

No it's not that easy. You don't need a buildworld, if you have not 
updated your src tree, but modified the KERNCONF. As the originator 
said: http://www.tuxedo.org/~esr/jargon/html/entry/Don't-do-that-then!.html