Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Apr 2003 14:18:04 +0100
From:      David Taylor <davidt@yadt.co.uk>
To:        ports@freebsd.org
Subject:   Re: INN ports deinstall config files
Message-ID:  <20030401131804.GC12922@gattaca.yadt.co.uk>
In-Reply-To: <xzpr88meezk.fsf@flood.ping.uio.no>
References:  <20030401010940.GA19343@gattaca.yadt.co.uk> <xzpr88meezk.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 01 Apr 2003, Dag-Erling Smørgrav wrote:
> David Taylor <davidt@yadt.co.uk> writes:
> > I've noticed (unfortunately) that running ``portupgrade inn'' does bad
> > things(tm) to installed config files.  They get deleted in the pkg_delete,
> > then blank files are installed by inn.
> 
> pkg_delete isn't supposed to delete files that have been modified
> after the port was installed.  If it does, that's a bug.
> 

Hmm.  I think the problem is that portupgrade calls pkg_delete with '-f',
in order to replace packages without removing all the packages depending
on it.  It'd probably be helpful if pkg_delete had seperate flags for
overriding dependancies vs. deleting modified files (and possibly anything
else -f forces).

I'm willing to attempt a patch to do either option (change the port to
install config files as *.sample/dist, or add an option to pkg_delete),
although I'm not sure of the best way to change pkg_delete without
breaking POLA.

-- 
David Taylor
davidt@yadt.co.uk
"The future just ain't what it used to be"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030401131804.GC12922>