From nobody@FreeBSD.org  Wed Jan  5 19:45:00 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 829C216A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  5 Jan 2005 19:45:00 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6580543D3F
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  5 Jan 2005 19:45:00 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j05Jj0Gf085746
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 5 Jan 2005 19:45:00 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j05Jj0Pt085744;
	Wed, 5 Jan 2005 19:45:00 GMT
	(envelope-from nobody)
Message-Id: <200501051945.j05Jj0Pt085744@www.freebsd.org>
Date: Wed, 5 Jan 2005 19:45:00 GMT
From: "Eli K. Breen" <eli@gopostal.ca>
To: freebsd-gnats-submit@FreeBSD.org
Subject: FreeBSD 5.3 kern-developer install does not add Makefile in /usr/src
X-Send-Pr-Version: www-2.3

>Number:         75864
>Category:       docs
>Synopsis:       FreeBSD 5.3 kern-developer install does not add Makefile in /usr/src
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pav
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 05 19:50:12 GMT 2005
>Closed-Date:    Fri Aug 19 09:33:18 GMT 2005
>Last-Modified:  Fri Aug 19 09:33:18 GMT 2005
>Originator:     Eli K. Breen
>Release:        5.3
>Organization:
>Environment:
FreeBSD 5.3-RELEASE
>Description:
When installing FreeBSD 5.3-RELEASE and selecting the Kern-Developer install,
which provides kernel sources in addition to the minimal install, there is no
Makefile provided in /usr/src. This prevents recompiling the kernel as per the
documentation throughout the FreeBSD website. The recommended procedure for
compiling a new kernel is to cd /usr/src and run "make buildkernel or make
installkernel". 

Simply adding the Makefile and Makefile.inc from a full-install 5.3-RELEASE
machine allows for the kernel to be built and installed. (cd /usr/src && make
buildkernel KERNCONF=FOO && make installkernel KERNCONF=FOO

Cheers.
>How-To-Repeat:
Install FreeBSD 5.3-RELEASE from CD Media, install using standard install
"kern-developer" (Installs kernel sources only). 

Once the install is complete, cd /usr/src in order to recompile the kernel.

ls -l Makefile. 
File not found
>Fix:
Standard install "kern-developer" should add the appropriate Makefile to /usr/src.
>Release-Note:
>Audit-Trail:

From: Brooks Davis <brooks@one-eyed-alien.net>
To: "Eli K. Breen" <eli@gopostal.ca>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: misc/75864: FreeBSD 5.3 kern-developer install does not add Makefile in /usr/src
Date: Wed, 5 Jan 2005 12:44:32 -0800

 Installing just the Makefile would serve no purpose.  The point of
 buildkernel is that it can use the tools from buildworld to make the
 kernel.  That requires all the sources.  The old method of building
 kernels must be used unless you are going to install all sources.
 
 IMO, this is documentation bug.
 
 -- Brooks
Responsible-Changed-From-To: freebsd-bugs->freebsd-doc 
Responsible-Changed-By: brooks 
Responsible-Changed-When: Wed Jan 5 20:52:43 GMT 2005 
Responsible-Changed-Why:  
Assign to -doc since the real issue is that you can't do buildkernel 
usefully without full sources. 

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

From: "Eli K. Breen" <eli@gopostal.ca>
To: Brooks Davis <brooks@one-eyed-alien.net>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: misc/75864: FreeBSD 5.3 kern-developer install does not add Makefile
 in /usr/src
Date: Wed, 05 Jan 2005 15:24:26 -0800

 Noted.
 
 Thanks!
 
 -E-
 
 Brooks Davis wrote:
 > Installing just the Makefile would serve no purpose.  The point of
 > buildkernel is that it can use the tools from buildworld to make the
 > kernel.  That requires all the sources.  The old method of building
 > kernels must be used unless you are going to install all sources.
 > 
 > IMO, this is documentation bug.
 > 
 > -- Brooks

From: Pav Lucistnik <pav@FreeBSD.org>
To: brooks@FreeBSD.org, bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/75864: FreeBSD 5.3 kern-developer install does not add
	Makefile in /usr/src
Date: Thu, 18 Aug 2005 22:03:55 +0200

 Brooks,
 
 would something like this added to Handbook chapter about compiling
 kernel satisfy you?
 
 Procedure 2. Building a Kernel the "New" Way
 [..]
 + Note: This method of kernel building requires full source files.
   If you only installed the kernel source, use the traditional method,
   as described above.
 
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html
 
 -- 
 Pav Lucistnik <pav@oook.cz>
               <pav@FreeBSD.org>
 

From: Brooks Davis <brooks@one-eyed-alien.net>
To: Pav Lucistnik <pav@FreeBSD.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: docs/75864: FreeBSD 5.3 kern-developer install does not add Makefile in /usr/src
Date: Thu, 18 Aug 2005 13:08:58 -0700

 --Km1U/tdNT/EmXiR1
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Thu, Aug 18, 2005 at 10:03:55PM +0200, Pav Lucistnik wrote:
 > Brooks,
 >=20
 > would something like this added to Handbook chapter about compiling
 > kernel satisfy you?
 >=20
 > Procedure 2. Building a Kernel the "New" Way
 > [..]
 > + Note: This method of kernel building requires full source files.
 >   If you only installed the kernel source, use the traditional method,
 >   as described above.
 >=20
 > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-bu=
 ilding.html
 
 This would be fine.
 
 -- Brooks
 
 --=20
 Any statement of the form "X is the one, true Y" is FALSE.
 PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
 
 --Km1U/tdNT/EmXiR1
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.1 (GNU/Linux)
 
 iD8DBQFDBOrZXY6L6fI4GtQRAi/ZAKC3P9X0r0BRKEyAVXQJbXf70s0bzwCggjiG
 Ru3doADY83LmneL6REbB6XU=
 =kYb9
 -----END PGP SIGNATURE-----
 
 --Km1U/tdNT/EmXiR1--
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Fri Aug 19 09:32:30 GMT 2005 
State-Changed-Why:  
The necessity of full /usr/src for make buildkernel is already mentioned 
in the Handbook chapter, but in a different place. I added an explicit note 
just under the "New way" example, that reemphasises this requirement. 


Responsible-Changed-From-To: freebsd-doc->pav 
Responsible-Changed-By: pav 
Responsible-Changed-When: Fri Aug 19 09:32:30 GMT 2005 
Responsible-Changed-Why:  
Take possible followups 

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