Subject: install/36180: upgrade should not remove sendmail configuration
To: None <install-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
List: netbsd-bugs
Date: 04/20/2007 15:10:01
>Number:         36180
>Category:       install
>Synopsis:       upgrade should not remove sendmail configuration
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 20 15:10:00 +0000 2007
>Originator:     Pavel Cahyna
>Release:        NetBSD 4.0_BETA2
>Organization:
>Environment:
System: NetBSD beta 4.0_BETA2 NetBSD 4.0_BETA2 (164LX) #1: Wed Feb 28 23:26:44 CET 2007 pavel@beta:/mnt/obj/alpha-4/164LX alpha
Architecture: alpha
Machine: alpha
>Description:
Upgrade to NetBSD 4.0_BETA2 removes sendmail configuration in
/etc/mail and /usr/share/sendmail. If one configures sendmail by
editing the default netbsd-proto.mc instead of copying and modifying
it, one would lose the configuration. 

Removal of files in /etc is conditional on not having the sendmail
package, which is insufficient. One could e.g. have a manually
compiled sendmail in /usr/local or want to install the package after
upgrading to NetBSD 4, not before.

N.B. postinstall, which does both actions, is run automatically from
sysinst.
>How-To-Repeat:
Upgrade from NetBSD 3.x to 4.0 using sysinst.
>Fix:
do not mark /usr/share/sendmail/* as obsolete. Remove the postinstall
sendmail "fix" or at least make it non-default.