NetBSD Problem Report #37136

From martti.kuparinen@piuha.net  Tue Oct 16 06:23:47 2007
Return-Path: <martti.kuparinen@piuha.net>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 9D20463B8FE
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 16 Oct 2007 06:23:46 +0000 (UTC)
Message-Id: <20071016051349.3B6CF198683@p130.piuha.net>
Date: Tue, 16 Oct 2007 08:13:49 +0300 (EEST)
From: martti.kuparinen@iki.fi
Reply-To: martti.kuparinen@iki.fi
To: gnats-bugs@NetBSD.org
Subject: pine upgrade weirdness
X-Send-Pr-Version: 3.95

>Number:         37136
>Category:       pkg
>Synopsis:       pine upgrade weirdness
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 16 06:25:00 +0000 2007
>Last-Modified:  Thu Aug 20 15:55:31 +0000 2009
>Originator:     Martti Kuparinen
>Release:        NetBSD 4.0_RC2
>Organization:
>Environment:
System: NetBSD p130.mydomain.com 4.0_RC2 NetBSD 4.0_RC2 (P130) #3: Mon Oct 1 09:13:42 EEST 2007 root@p130.mydomain.com:/usr/src/sys/arch/amd64/compile/P130 amd64
Architecture: x86_64
Machine: amd64
>Description:

Currently the pine package upgrade does not work correctly (this has been
the case for long time and now I got tired of it so here's a PR).

Initial installation is okay but upgrading the pine package puts local
customizations (if they exist) to the global example file. IMO this
is wrong and I've not seen this with other packages.

>How-To-Repeat:

#
# Get the latest pkgsrc
#
cd /usr/pkgsrc
cvs update -dPA

#
# Install pine and customize the global configuration file. Make copies
# of the files for later comparison.
#
cd /usr/pkgsrc/mail/pine
make update
vi /usr/pkg/etc/pine.conf
cp /usr/pkg/share/examples/pine/pine.conf /tmp/1
cp /usr/pkg/etc/pine.conf /tmp/2

#
# Now update pine (to the same version in this case) and notice how
# /usr/pkg/share/examples/pine/pine.conf contains the local changes
# made to /usr/pkg/etc/pine.conf
#
cd /usr/pkgsrc/mail/pine
make update
diff -q /tmp/1 /usr/pkg/share/examples/pine/pine.conf
Files /tmp/1 and /usr/pkg/share/examples/pine/pine.conf differ

#
# The customized file is left untouched as it should be
#
diff -q /tmp/2 /usr/pkg/etc/pine.conf

#
# Currently the only way to upgrade pine is to remove /usr/pkg/etc/pine.conf
# before performing the upgrade and finally re-customize the pine.conf
#
rm -f /usr/pkg/etc/pine.conf
make update

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->jwise
Responsible-Changed-By: obache@netbsd.org
Responsible-Changed-When: Tue, 16 Oct 2007 07:44:01 +0000
Responsible-Changed-Why:
Over to maintainer.


Responsible-Changed-From-To: jwise->pkg-manager

Responsible-Changed-By: jwise@narn.netbsd.org
Responsible-Changed-When: Thu, 20 Aug 2009 15:55:31 +0000
Responsible-Changed-Why:
I am no longer MAINTAINER for this package.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.