Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Feb 2003 09:22:06 -0800
From:      Kris Kennaway <kris@obsecurity.org>
To:        Matthias Andree <matthias.andree@gmx.de>
Cc:        Kris Kennaway <kris@obsecurity.org>, ports@FreeBSD.ORG
Subject:   Change to extras.html (Re: Bento package builds)
Message-ID:  <20030221172206.GB15667@rot13.obsecurity.org>
In-Reply-To: <20030220035414.GA13041@merlin.emma.line.org>
References:  <20030218183937.GC30562@rot13.obsecurity.org> <m3el64bi23.fsf@merlin.emma.line.org> <20030219221942.GE1388@rot13.obsecurity.org> <20030219224759.GA32581@merlin.emma.line.org> <20030220023503.GC2739@rot13.obsecurity.org> <20030220035414.GA13041@merlin.emma.line.org>

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

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

On Thu, Feb 20, 2003 at 04:54:14AM +0100, Matthias Andree wrote:

> > Actually I suppose I could just compare the directory tree after all
> > dependencies are installed with the one when the package itself has
> > been removed, but before all the other dependencies are removed.  I'll
> > have to think about that a bit to see if it will fail in any
> > situations.  Or is that what you meant by #3? :)
>=20
> That is what I meant but didn't write. I also see that there's a danger
> that the "extra files" check might miss an unremoved directory if that's
> also created by a dependency.

Thanks for the suggestion!  I have now implemented this, and the
current 4.x run is displaying the errors:

  http://bento.freebsd.org/errorlogs/i386-4-latest-logs/extras.html

One additional benefit is that since I am now creating a mtree of the
entire filesystem prior to installing, it can detect installation or
changes to files outside of ${PREFIX}.

The next step is to work on weeding out the "allowed" extra files
(e.g. /etc/shells.bak is one that is now being detected but is
expected to be there when a port modifies /etc/shells, and
kuriyama-san submitted a patch which may allow the perllocal.pod files
to be handled).  Eventually I'd like to get the numbers down to the
point where I can make it a fatal error to leave files behind after
deinstall.

Kris

--Yylu36WmvOXNoKYn
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQE+VmA9Wry0BWjoQKURAlJ9AKDhCy4BnmlzPYeJQEwEbkljhgg6+wCg4rZt
kvqaafaD3Z5P1klQMzUxeKc=
=URKh
-----END PGP SIGNATURE-----

--Yylu36WmvOXNoKYn--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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