From owner-freebsd-ports Fri Feb 21 9:22: 9 2003 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DDBDC37B401 for ; Fri, 21 Feb 2003 09:22:07 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-63-207-60-52.dsl.lsan03.pacbell.net [63.207.60.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 046A643FAF for ; Fri, 21 Feb 2003 09:22:06 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 94DBB679DA; Fri, 21 Feb 2003 09:22:06 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 67DC91196; Fri, 21 Feb 2003 09:22:06 -0800 (PST) Date: Fri, 21 Feb 2003 09:22:06 -0800 From: Kris Kennaway To: Matthias Andree Cc: Kris Kennaway , ports@FreeBSD.ORG Subject: Change to extras.html (Re: Bento package builds) Message-ID: <20030221172206.GB15667@rot13.obsecurity.org> References: <20030218183937.GC30562@rot13.obsecurity.org> <20030219221942.GE1388@rot13.obsecurity.org> <20030219224759.GA32581@merlin.emma.line.org> <20030220023503.GC2739@rot13.obsecurity.org> <20030220035414.GA13041@merlin.emma.line.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Yylu36WmvOXNoKYn" Content-Disposition: inline In-Reply-To: <20030220035414.GA13041@merlin.emma.line.org> User-Agent: Mutt/1.4i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --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