Subject: port-arm/13740: ARM port include strategy breaks for SYS_INCLUDES=symlinks
To: None <gnats-bugs@gnats.netbsd.org>
From: None <thorpej@shagadelic.org>
List: netbsd-bugs
Date: 08/17/2001 08:40:20
>Number:         13740
>Category:       port-arm
>Synopsis:       ARM port include strategy breaks for SYS_INCLUDES=symlinks
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-arm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 17 08:36:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Jason R. Thorpe
>Release:        NetBSD-current Aug 17, 2001
>Organization:
Wasabi Systems, Inc.
>Environment:
	
System: NetBSD shark.slow-10.shagadelic.org 1.5X NetBSD 1.5X (SHAG-SHARK) #0: Thu Aug 16 19:27:52 PDT 2001     thorpej@shark.slow-10.shagadelic.org:/amd/yeah-baby/u1/netbsd/src/sys/arch/arm32/compile/SHAG-SHARK arm32
Architecture: arm32
Machine: arm32
>Description:
	The include strategy of the ARM port breaks down if using
	SYS_INCLUDES=symlinks (a very useful option for developers).

	What happens is that the sys/arch/arm32/include/arm32 directory
	is removed and then replaced with a symlink that points to itself.
	This is caused by machinery that expects to be operating in an
	area that is not the source tree itself.

>How-To-Repeat:
	Perform a "make build" with SYS_INCLUDES=symlinks in /etc/mk.conf.

>Fix:
	The bsd.kinc.mk logic should be taught to skip the rm -r/symlink
	step in a generic way for this particular case (subdir of an
	include directory).  Alternatively, a different include or directory
	traversal strategy should be found.
>Release-Note:
>Audit-Trail:
>Unformatted: