Subject: bin/14371: Temporary files in repository can trip over src/tools build
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dave@dtsp.co.nz>
List: netbsd-bugs
Date: 10/27/2001 00:55:15
>Number:         14371
>Category:       bin
>Synopsis:       Temporary files in repository can trip over src/tools build
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 26 17:49:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     David Sainty
>Release:        NetBSD-current 20011016
>Organization:
Dynamic Technology Services and Products Ltd (NZ)
>Environment:
System: NetBSD tequila.dave.dtsp.co.nz 1.5X NetBSD 1.5X (TEQUILA) #1: Wed Sep 26 18:47:35 NZST 2001 dave@tequila.dave.dtsp.co.nz:/vol/usr/userC/NetBSD-current/src/sys/arch/i386/compile/TEQUILA i386
Architecture: i386
Machine: i386
>Description:
	In my environment I do a CVS update with one user, and source builds
	with another non-root user in separate directory trees with hard links
	to the source files.  End result is that the source files are not
	writable by the user building the source.

	When building 'src/tools/texinfo' the build fails because it attempts
	to write to ../../gnu/dist/texinfo/stamp-h.in which is a read-only
	file.

	Modifying the 'dist' directories is possibly wrong, but it also seems
	more obviously wrong that this file is in the repository at all, given
	that it's a temporary build file, and is used as a timestamp at
	that...

>How-To-Repeat:
	Make 'gnu/dist/texinfo/stamp-h.in' non-writable by the building user,
	do 'cd src/tools/texinfo; make'.

>Fix:
	cvs remove src/gnu/dist/texinfo/stamp-h.in

	Although, ignoring the issue that this file shouldn't be there, it
	seems like src/tools is doing the wrong thing needing write access to
	src/gnu/dist/texinfo at all.  This likely adversely affects DESTDIR
	too?
>Release-Note:
>Audit-Trail:
>Unformatted: