From owner-freebsd-bugs@FreeBSD.ORG Wed Nov 15 18:23:21 2006 Return-Path: X-Original-To: freebsd-bugs@freebsd.org Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B152916A407 for ; Wed, 15 Nov 2006 18:23:21 +0000 (UTC) (envelope-from erwin@mail.droso.net) Received: from mail.droso.net (koala.droso.net [193.88.12.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F33043D62 for ; Wed, 15 Nov 2006 18:23:21 +0000 (GMT) (envelope-from erwin@mail.droso.net) Received: by mail.droso.net (Postfix, from userid 1001) id 4E5BA1CD5A; Wed, 15 Nov 2006 19:23:20 +0100 (CET) Date: Wed, 15 Nov 2006 19:23:20 +0100 From: Erwin Lansing To: Mikhail Teterin Message-ID: <20061115182320.GF69151@droso.net> References: <200611142154.kAELsKN4007777@freefall.freebsd.org> <200611141703.38311.mi+mx@aldan.algebra.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1IOMu5+WhZnpLp54" Content-Disposition: inline In-Reply-To: <200611141703.38311.mi+mx@aldan.algebra.com> X-Operating-System: FreeBSD/i386 6.2-PRERELEASE User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-bugs@freebsd.org, mi@aldan.algebra.com Subject: Re: bin/34628: [pkg_install] [patch] pkg-routines ignore the recorded md5 checksums X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Nov 2006 18:23:21 -0000 --1IOMu5+WhZnpLp54 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 14, 2006 at 05:03:37PM -0500, Mikhail Teterin wrote: > ???????? 14 ???????? 2006 16:54, Erwin Lansing ???????: > > Synopsis: [pkg_install] [patch] pkg-routines ignore the recorded md5 > > checksums >=20 > > I agree with sobomax that this functionality is not needed > > and adds unnecessary overhead. No ports should ever install > > the same file, that's what CONFLICTS are for, and there > > should never be installed multiple versions of the same port. >=20 > That's a surprisingly naive way of thinking... The CONFLICTS functionalit= y is=20 > broken on occasion in bsd.port.mk, and not every port sets it anyway... If CONFLICTS is broken, CONFLICTS should be fixed, not pkg_info. If some ports don't set it, they should be fixed, not pkg_info. >=20 > `pkg_info -W' would also be able to warn about checksum mismatches, which= =20 > would suggest, a file has been modified (or corrupted) since getting=20 > installed. Now, that sounds more like a good idea, although in that case, the code should moved outside the code for checking if multiple ports claim the same file. I'm thinking that this functionality may be better provided as part of security packages as tripwire, but it could give easier access to the recorded md5sums from PKGDB. >=20 > Anyway, what is the overhead exactly? >=20 Explained elsewhere in this thread. Note, that my reaction was the same as sobomax' back in 2002 and you then refused to give more information. As you haven't shown any interest in this PR since, I gathered you were no longer interested and I closed it. If you are willing to work on this, it would be great though. -erwin --=20 Erwin Lansing http://droso.org Security is like an onion. (o_ _o) It's made up of several layers \\\_\ /_/// And it makes you cry. <____) (____> erwin@lansing.dk --1IOMu5+WhZnpLp54 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFW1sYqy9aWxUlaZARAgReAJ9GkksiaNjYobMvykZJuwEkjp9xkQCgzPvv uq5DT2KXDnfO2JvSUhWSz0k= =x7AE -----END PGP SIGNATURE----- --1IOMu5+WhZnpLp54--