Subject: standalone-tcsh, file-check and WRKOBJDIR
To: None <tech-pkg@NetBSD.org>
From: Hauke Fath <hf@spg.tu-darmstadt.de>
List: tech-pkg
Date: 10/23/2006 11:01:22
Hi,

I see an interesting failure when attempting to package 
shells/standalone-tcsh during a sandboxed bulk build of pkgsrc-2006Q3 on 
netbsd-3.

<snip>
=> Automatic manual page handling
=> Generating post-install file lists
=> Running POST-INSTALL script actions
===========================================================================
Adding standalone-tcsh-6.14.00nb1 shells to /etc/shells:

         /bin/tcsh

===========================================================================
=> Registering installation for standalone-tcsh-6.14.00nb1
=> Checking for missing run-time search paths in standalone-tcsh-6.14.00nb1
=> Checking for work-directory references in standalone-tcsh-6.14.00nb1
=> Checking file-check results for standalone-tcsh-6.14.00nb1
ERROR: ************************************************************
ERROR: The following files are in / but not in the PLIST:
ERROR:         //var/tmp/pkgsrc/shells/standalone-tcsh/work/.PLIST
ERROR:         //var/tmp/pkgsrc/shells/standalone-tcsh/work/.pkgdb/+SHELL
ERROR:         //var/tmp/pkgsrc/shells/standalone-tcsh/work/.prefix.post
ERROR:         //var/tmp/pkgsrc/shells/standalone-tcsh/work/PLIST-src
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/shells/standalone-tcsh
*** Error code 1
</snip>

/etc/mk.conf has (among others)

PKG_DEVELOPER=1
WRKOBJDIR?=/var/tmp/pkgsrc   # build here instead of in pkgsrc

-- shouldn't the file-check exclude the WRKOBJDIR tree?

	hauke

-- 
/~\  The ASCII Ribbon Campaign                    Hauke Fath
\ /    No HTML/RTF in email	        Institut für Nachrichtentechnik
  X     No Word docs in email	                  TU Darmstadt
/ \  Respect for open standards              Ruf +49-6151-16-3281