Subject: toolchain/30350: genassym.sh needs cleanup
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Martin Husemann <martin@duskware.de>
List: netbsd-bugs
Date: 05/27/2005 06:41:00
>Number: 30350
>Category: toolchain
>Synopsis: genassym.sh needs cleanup
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: toolchain-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri May 27 06:41:00 +0000 2005
>Originator: Martin Husemann
>Release: NetBSD 3.99.3
>Organization:
>Environment:
System: NetBSD night-owl.duskware.de 3.99.3 NetBSD 3.99.3 (NIGHT-OWL) #20: Tue May 17 11:29:28 CEST 2005 martin@beasty.aprisoft.de:/usr/src/sys/arch/i386/compile/NIGHT-OWL i386
Architecture: i386
Machine: i386
>Description:
John Clark noted on port-i386 that he could not compile a kernel when he had
a file called /tmp/pthread.h (which did not match the NetBSD pthread.h).
This happens because /tmp is used by genassym.sh to compile a temporary C
file. It should create a subdirectory for this, and remove it later intstead.
Furthermore there are four copies (three different versions) of genassym.sh
in our source tree, without any comments indicating their functional
differences (if any). We should investigate if those can be joined into
a single script.
The copies are at
lib/libpthread/genassym.sh
lib/libc/genassym.sh
sys/arch/sparc/stand/bootblk/genassym.sh
sys/kern/genassym.sh
where the two lib/* copies are identical. Any needed functional differences
could be controlled by command line arguments for the unified version instead.
>How-To-Repeat:
code inspection
>Fix:
n/a