Subject: pkg/23735: pkgsrc sendmail does not handle non-pkg files during update
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jklos@netbsd.org>
List: netbsd-bugs
Date: 12/13/2003 15:45:19
>Number:         23735
>Category:       pkg
>Synopsis:       When updating pkgsrc sendmail,
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 13 20:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     John Klos
>Release:        NetBSD 1.6.1_STABLE
>Organization:
	
>Environment:
	
	
System: NetBSD lain.ziaspace.com 1.6.1_STABLE NetBSD 1.6.1_STABLE (LAIN-$Revision: 1.631 $) #0: Mon Oct 20 16:46:18 EDT 2003 john@lain.ziaspace.com:/usr/src/sys/arch/macppc/compile/LAIN macppc
Architecture: powerpc
Machine: macppc
>Description:
	
When one file was left in /usr/local/share/sendmail/feature, the following happened 
from make update:

...
mailwrapper configuration file.  The command below will do that for you:

ln -fs /usr/local/share/examples/sendmail/mailer.conf /etc/mailer.conf
===========================================================================

ls: /usr/local/share/sendmail/README: No such file or directory
ls: /usr/local/share/sendmail/cf/Build: No such file or directory
ls: /usr/local/share/sendmail/cf/Makefile: No such file or directory
ls: /usr/local/share/sendmail/cf/chez.cs.mc: No such file or directory
ls: /usr/local/share/sendmail/cf/clientproto.mc: No such file or directory
ls: /usr/local/share/sendmail/cf/cs-hpux10.mc: No such file or directory
...
Full pathname symlink `/usr/local/libexec/sendmail/sendmail' is target of 
`/usr/local/bin/purgestat' - adjusting to `../libexec/sendmail/sendmail'
pkg_create: can't stat `/usr/local/share/sendmail/README'
pkg_create: can't stat `/usr/local/share/sendmail/cf/Build'
pkg_create: can't stat `/usr/local/share/sendmail/cf/Makefile'
pkg_create: can't stat `/usr/local/share/sendmail/cf/chez.cs.mc'
pkg_create: can't stat `/usr/local/share/sendmail/cf/clientproto.mc'
...

>How-To-Repeat:
	
Install pkgsrc/sendmail. Copy a file into /usr/(local pkg)/share/sendmail/feature/.
Run a "make update".
>Fix:
	
Fix the package.
>Release-Note:
>Audit-Trail:
>Unformatted:
 if any files are left in any install directory, installation blows up.