Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jan 2006 16:51:42 -0500
From:      Kris Kennaway <kris@obsecurity.org>
To:        Andrew Pantyukhin <infofarmer@gmail.com>
Cc:        FreeBSD Ports <ports@freebsd.org>, Pav Lucistnik <pav@freebsd.org>, Kris Kennaway <kris@obsecurity.org>
Subject:   Re: pkg_delete and modified files
Message-ID:  <20060128215142.GA37639@xor.obsecurity.org>
In-Reply-To: <cb5206420601281344q125a691cqfdf021012fb5afea@mail.gmail.com>
References:  <cb5206420601281344q125a691cqfdf021012fb5afea@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--u3/rZRmxL6MmkK24
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Jan 29, 2006 at 12:44:50AM +0300, Andrew Pantyukhin wrote:
> Looking for a solution to the problem we stumbled upon,
> [which was keeping many modified files without the
> cmp trick described in the porter's handbook]
> I gave pkg_install/* sources a glance and now I'm
> thinking about a quick fix. The -f flag causes files to be
> deleted even in case of a checksum mismatch. In fact
> the -f flag is meant for something slightly else:
>=20
> Force removal of the package, even if a dependency
> is recorded or the deinstall or require script fails.
>=20
> So I'm thinking about another flag (like -F or a second
> -f) to control the behavior with modified files. I think that
> keeping them should be a default. I can't think of a
> thing that it will break, maybe you can. The cmp trick
> will still work. And it only takes a couple of lines to
> implement.

We can't do this by default for all ports because a lot of ports
install files that are *supposed* to be modified by other ports
(e.g. gettext), so those files would never get removed.

I think you'd need to have some more fine-grained method to control
this on a per-file basis.

Kris

--u3/rZRmxL6MmkK24
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFD2+duWry0BWjoQKURAitrAKCTRcJ3/9IMucjloCmfCMe+4XDePACfaakA
Dg5fqbRUKItc5FgHvBWknoI=
=bDer
-----END PGP SIGNATURE-----

--u3/rZRmxL6MmkK24--



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