NetBSD Problem Report #37136
From email@example.com Tue Oct 16 06:23:47 2007
Received: from mail.netbsd.org (mail.netbsd.org [220.127.116.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)
Date: Tue, 16 Oct 2007 08:13:49 +0300 (EEST)
Subject: pine upgrade weirdness
>Synopsis: pine upgrade weirdness
>Arrival-Date: Tue Oct 16 06:25:00 +0000 2007
>Last-Modified: Thu Jun 18 07:30:00 +0000 2015
>Originator: Martti Kuparinen
>Release: NetBSD 4.0_RC2
System: NetBSD p130.mydomain.com 4.0_RC2 NetBSD 4.0_RC2 (P130) #3: Mon Oct 1 09:13:42 EEST 2007 firstname.lastname@example.org:/usr/src/sys/arch/amd64/compile/P130 amd64
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.
# Get the latest pkgsrc
cvs update -dPA
# Install pine and customize the global configuration file. Make copies
# of the files for later comparison.
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
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
Responsible-Changed-When: Tue, 16 Oct 2007 07:44:01 +0000
Over to maintainer.
Responsible-Changed-When: Thu, 20 Aug 2009 15:55:31 +0000
I am no longer MAINTAINER for this package.
From: David Holland <email@example.com>
Subject: Re: pkg/37136 (pine upgrade weirdness)
Date: Thu, 18 Jun 2015 07:29:34 +0000
> 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.
This appears to be because the do-install rule dumps the compiled-in
config out and uses that as the example; but if there's a global
config file, the run of the newly built pine that does this will see
the global config and reflect it into the example config.
Is there a command-line option to ignore the system config file?
Adding that to the do-install rule should fix the problem. Failing
that, we probably need to patch in such an option or generate the
example config some other way.
(also, if alpine or realpine has dealt with this, merging those
changes might be a viable alternative)
David A. Holland
$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.