Subject: port-arm/13740: ARM port include strategy breaks for SYS_INCLUDES=symlinks
To: None <firstname.lastname@example.org>
From: None <email@example.com>
Date: 08/17/2001 08:40:20
>Synopsis: ARM port include strategy breaks for SYS_INCLUDES=symlinks
>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 shark.slow-10.shagadelic.org 1.5X NetBSD 1.5X (SHAG-SHARK) #0: Thu Aug 16 19:27:52 PDT 2001 firstname.lastname@example.org:/amd/yeah-baby/u1/netbsd/src/sys/arch/arm32/compile/SHAG-SHARK 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 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.