Subject: toolchain/23270: checkflist non-portable
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dmcmahill@netbsd.org>
List: netbsd-bugs
Date: 10/25/2003 15:46:34
>Number:         23270
>Category:       toolchain
>Synopsis:       checkflist non-portable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 25 19:45:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Dan McMahill
>Release:        NetBSD 20031020
>Organization:
NetBSD
>Environment:
solaris-2.6 with gcc-2.95.1 and sh replaced with ksh
	
System: NetBSD cowboy-burt 1.4.3A NetBSD 1.4.3A (COWBOY-BURT) #1: Fri Jul 20 06:58:40 EDT 2001 dan@cowboy-burt:/mnt/syssrc-1-4/sys/arch/sparc/compile/COWBOY-BURT sparc


>Description:
src/distrib/sets/checkflist has problems on solaris-2.6 (with sh having been replaced with ksh).
The problem is that when it generates the 'files' file, each file and directory are listed twice.
Then when its compared with flist, a whole pile of "extra" files are reported.


*** Failed target:  checkflist
*** Failed command: DESTDIR=/export/home1/software/build/destdir.i386 MACHINE=i386 MACHINE_ARCH=i386 CKSUM=/export/home1/software/build/too
ls/bin/nbcksum MAKE=/export/home1/software/build/tools/bin/nbmake MTREE=/export/home1/software/build/tools/bin/nbmtree MKTEMP=/export/home1
/software/build/tools/bin/nbmktemp PAX=/export/home1/software/build/tools/bin/nbpax sh /export/home1/software/NetBSD/src-netbsd-current/dis
trib/sets/checkflist 
*** Error code 1

	
>How-To-Repeat:

env HOST_CC=gcc ./build.sh -m i386 -T /export/home1/software/build/tools \
  -D /export/home1/software/build/destdir.i386  \
  -R /export/home1/software/build/release/i386  release
	
>Fix:

maybe change the "sort" to "sort -u"?  but that doesn't really address why the duplicates
in the first place...

	
>Release-Note:
>Audit-Trail:
>Unformatted: