From owner-freebsd-ports@FreeBSD.ORG Tue Apr 22 19:55:14 2003 Return-Path: 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 200A737B401 for ; Tue, 22 Apr 2003 19:55:14 -0700 (PDT) Received: from ms-smtp-03.southeast.rr.com (ms-smtp-03.southeast.rr.com [24.93.67.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01A2843FDD for ; Tue, 22 Apr 2003 19:55:13 -0700 (PDT) (envelope-from marcus@marcuscom.com) Received: from mail4.nc.rr.com (fe4 [24.93.67.51])h3N2rlMq018169; Tue, 22 Apr 2003 22:53:47 -0400 (EDT) Received: from creme-brulee.marcuscom.com ([66.57.17.158]) by mail4.nc.rr.com with Microsoft SMTPSVC(5.5.1877.757.75); Tue, 22 Apr 2003 22:35:09 -0400 Received: from [192.168.1.4] (shumai.marcuscom.com [192.168.1.4]) h3N2VEaa068989; Tue, 22 Apr 2003 22:31:14 -0400 (EDT) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Kris Kennaway In-Reply-To: <20030423013231.GA66663@rot13.obsecurity.org> References: <000501c3074c$e5c2be80$0a2da8c0@sem> <3EA48724.3080602@ciam.ru><3EA53B4A.4030700@ciam.ru> <3EA5EA0D.8070500@ciam.ru> <20030423013231.GA66663@rot13.obsecurity.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-tXVprENm8H00lXL9i6GI" Organization: MarcusCom, Inc. Message-Id: <1051065189.68327.9.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.3.2 (Preview Release) Date: 22 Apr 2003 22:33:09 -0400 X-Spam-Status: No, hits=-39.4 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,QUOTE_TWICE_1,REFERENCES, REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) cc: ports@freebsd.org cc: Sergey Matveychuk Subject: Re: Recent bsd.port.mk changes X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2003 02:55:14 -0000 --=-tXVprENm8H00lXL9i6GI Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2003-04-22 at 21:32, Kris Kennaway wrote: > On Wed, Apr 23, 2003 at 05:19:09AM +0400, Sergey Matveychuk wrote: > > Kris Kennaway wrote: > > >features enabled ("foo-1.2.3" vs "foo-esound-1.2.3" etc.) This is why > > >I suggested that comparing the installation prefix and pkg-plist for > > >overlap with ports that have the same origin may be the only way to do > > >this reliably. > >=20 > > I don't know how to compare pkg-plist files? How to make decision a por= t=20 > > is older version and not variant of current one? It must be some=20 > > evristic method. Some files can be moved in other place, some files can= =20 > > be new, some files can be moved away in new version. > > In port's variant case path can be changed or file name can be changed=20 > > (libsome.so and libsome_r.so). >=20 > You can extract the prefix from the installed package by grepping for > @cwd in +CONTENTS. Or you can use pkg_info -p -q ${PKGNAME} which is what the patch I sent you uses. > Similarly you can extract the list of installed > files by doing grep -v ^@ +CONTENTS. =20 pkg_info -f -q ${PKGNAME} should provide this. > For each package that has our > origin (or a previous origin as looked up in the MOVED file), do the > following: if the installed prefix =3D=3D $PREFIX and one or more of the > installed files matches a file in pkg-plist (checked using > e.g. comm(1)), then we are going to conflict and we should not > install. I can't immediately think of how to implement the installed > plist extraction without using a temporary file, but it should be > possible with some thought. I can try to modify the patch I sent you to do this check as well. It already does the ${PREFIX} check. Joe >=20 > Kris --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-tXVprENm8H00lXL9i6GI Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQA+pftlb2iPiv4Uz4cRAr1TAJ4z4LDTlB+Jg01DQrS/ebjBXhKoJQCeN/hR ngWP8egXWHbDpPxVFTyrtLg= =MctH -----END PGP SIGNATURE----- --=-tXVprENm8H00lXL9i6GI--