Subject: port-arm/13740: ARM port include strategy breaks for SYS_INCLUDES=symlinks
To: None <>
From: None <>
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
>Originator:     Jason R. Thorpe
>Release:        NetBSD-current Aug 17, 2001
Wasabi Systems, Inc.
System: NetBSD 1.5X NetBSD 1.5X (SHAG-SHARK) #0: Thu Aug 16 19:27:52 PDT 2001 arm32
Architecture: arm32
Machine: arm32
	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.

	Perform a "make build" with SYS_INCLUDES=symlinks in /etc/mk.conf.

	The 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.