Subject: Sendmail package problem
To: None <tech-pkg@netbsd.org>
From: John Klos <john@sixgirls.org>
List: tech-pkg
Date: 11/17/2003 06:21:33
Hi,

For a while now, I've noticed that if any files are left in sendmail's
directories (/usr/pkg/share/sendmail/feature/ for example),
the sendmail package does not properly update:

===> do-su-deinstall [sendmail-8.12.10nb1] ===> Deinstalling for sendmail
Running /usr/sbin/pkg_delete -K /var/db/pkg -r sendmail-8.12.10
pkg_delete: unable to completely remove directory '/usr/local/share/sendmail/feature'
pkg_delete: unable to completely remove directory '/usr/local/share/sendmail'
pkg_delete: couldn't entirely delete package `sendmail-8.12.10'
(perhaps the packing list is incorrectly specified?)

...

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/siteconfig/uucp.ucbvax.m4: No such file or directory
===> fake-pkg [sendmail-8.12.10nb1] ===> Registering installation for sendmail-8.12.10nb1
Full pathname symlink `/usr/local/libexec/sendmail/sendmail' is target of
`/usr/local/bin/hoststat' - adjusting to `../libexec/sendmail/sendmail'
Full pathname symlink `/usr/local/libexec/sendmail/sendmail' is target of
`/usr/local/bin/mailq' - adjusting to `../libexec/sendmail/sendmail'
Full pathname symlink `/usr/local/libexec/sendmail/sendmail' is target of
`/usr/local/bin/newaliases' - adjusting to `../libexec/sendmail/sendmail'
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'
...

And so on. Anyone know why this is happening?

Thanks,
John Klos
Sixgirls Computing Labs