Bug 21059

Summary: `make -jN buildkernel' can't keep source tree read-only
Product: Base System Reporter: takamune <takamune>
Component: confAssignee: Marcel Moolenaar <marcel>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.1-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description takamune 2000-09-05 11:50:01 UTC
`make -jN buildkernel' will create some object files inside of the source tree.

Please divide `make obj depend' into two stages.

How-To-Repeat: 
Owner of the source files is a normal user:

# cd /usr/src
# find . -name CVS -prune -o -user root -print
# make -j8 buildkernel
# find . -name CVS -prune -o -user root -print
src/sys/modules/accf_data/@
src/sys/modules/accf_data/machine
src/sys/modules/accf_data/.depend
src/sys/modules/accf_http/@
src/sys/modules/accf_http/machine
src/sys/modules/accf_http/.depend

These files should appear in directories such as
  /usr/obj/usr/src/sys/${KERNEL}/modules/usr/src/sys/modules/accf_{data,http}.

Note: `accf_data' and `accf_http' are the first two modules
 in `src/sys/modules/Makefile' !
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2000-09-05 11:54:14 UTC
Responsible Changed
From-To: freebsd-bugs->marcel

Over to maintainer.
Comment 2 Sheldon Hearn 2000-09-05 12:02:14 UTC
On Tue, 05 Sep 2000 03:54:24 MST, sheldonh@FreeBSD.org wrote:

> Synopsis: `make -jN buildkernel' can't keep source tree read-only
> 
> Responsible-Changed-From-To: freebsd-bugs->marcel
> Responsible-Changed-By: sheldonh
> Responsible-Changed-When: Tue Sep 5 03:54:14 PDT 2000
> Responsible-Changed-Why: 
> Over to maintainer.

For the record, I don't see this behaviour in 5.0-CURRENT.

Ciao,
Sheldon.
Comment 3 ru freebsd_committer freebsd_triage 2003-10-03 10:43:33 UTC
State Changed
From-To: open->closed

It's been fixed in RELENG_4, sys/conf/Makefile.i386,v 1.179.2.7.