From owner-freebsd-ports Tue Oct 3 9:57:59 2000 Delivered-To: freebsd-ports@freebsd.org Received: from bmah-freebsd-0.cisco.com (bmah-freebsd-0.cisco.com [171.70.84.42]) by hub.freebsd.org (Postfix) with ESMTP id 6D80F37B502; Tue, 3 Oct 2000 09:57:56 -0700 (PDT) Received: (from bmah@localhost) by bmah-freebsd-0.cisco.com (8.11.0/8.11.0) id e93Gvtg10718; Tue, 3 Oct 2000 09:57:55 -0700 (PDT) (envelope-from bmah) Message-Id: <200010031657.e93Gvtg10718@bmah-freebsd-0.cisco.com> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: Maxim Sobolev Cc: Neil Blakey-Milner , Akinori -Aki- MUSHA , freebsd-ports@FreeBSD.org, bmah@FreeBSD.org Subject: Re: Enhancement of pkg_version's version comparison routine In-Reply-To: <39D9EE01.7A880665@FreeBSD.org> References: <86k8by6eis.wl@archon.local.idaemons.org> <20000927002401.A73341@mithrandr.moria.org> <39D9D006.652DC258@FreeBSD.org> <20001003161027.B67542@mithrandr.moria.org> <39D9EE01.7A880665@FreeBSD.org> Comments: In-reply-to Maxim Sobolev message dated "Tue, 03 Oct 2000 17:32:33 +0300." From: bmah@FreeBSD.org (Bruce A. Mah) Reply-To: bmah@FreeBSD.org X-Face: g~c`.{#4q0"(V*b#g[i~rXgm*w;:nMfz%_RZLma)UgGN&=j`5vXoU^@n5v4:OO)c["!w)nD/!!~e4Sj7LiT'6*wZ83454H""lb{CC%T37O!!'S$S&D}sem7I[A 2V%N&+ X-Image-Url: http://www.employees.org/~bmah/Images/bmah-cisco-small.gif X-Url: http://www.employees.org/~bmah/ Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_320064253P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Tue, 03 Oct 2000 09:57:55 -0700 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --==_Exmh_320064253P Content-Type: text/plain; charset=us-ascii If memory serves me right, Maxim Sobolev wrote: > Neil Blakey-Milner wrote: > > > On Tue 2000-10-03 (15:24), Maxim Sobolev wrote: [Use @option or @comment PLIST variables to track where intalled packages came from, maybe with a fallback to INDEX.] > > Take zsh and zsh-devel, or any of those devel packages - how do you tell > > which one to follow when it moves from zsh-5.0 and zsh-devel-6.0 to > > zsh-7.0 and zsh-devel-8.0? > > > > I like your idea, though. That just seemed to leap at me. > > Hmm, I do not see any problems, for example: > > Moment of time t1: > - you have installed foo-5.0 and foo-6.0 from somecategory/foo and > somecategory/foo-devel ports; > > Moment of time t2>t1: > - the ports have been upgraded, so you now have foo-7.0 and foo-8.0 for foo a > nd > foo-devel ports; > - pkg_version looks into foo-5.0 installed package and determines that it sho > uld check > somecategory/foo to determine whether update necessary. It does so, BAH you h > ave to > upgrage to foo-7.0; > - pkg_version looks into foo-6.0 installed package and determines that it sho > uld check > somecategory/foo-devel to determine whether update necessary. It does so, BAH > you have > to upgrage to foo-8.0. I think that in your example, it's going to do the right thing. Instances where we allow multiple "production" versions of software (i.e. Tcl) are already differentiated by giving the port directories different names. Two things that came to mind for me: 1. Someone once made the assertion that most third-party software was installed via packages, not building ports. So we might need to handle some odd cases like only having the INDEX file, not having a ports tree at all, and so forth. (In other words, we might not have filesystem access to the Makefile that generated a package.) 2. This still doesn't solve the problem of updating dependencies. Still, I think this is an interesting idea. Bruce. PS. knu, I still have your last patch. I'm just kind of overwhelmed with work and Real Life (TM) stuff now, so I haven't been able to give it the time that it deserves. --==_Exmh_320064253P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use MessageID: Xf/Ytj1uQdKmbKmu96+T2f9MQ5KaRTx3 iQA/AwUBOdoQE9jKMXFboFLDEQJV8QCg3FxoPuBQ7MQaHhznfDzVUVGfKPYAoLqY P5b/Of8I+ZVb3GM8fwblkxp7 =DpfF -----END PGP SIGNATURE----- --==_Exmh_320064253P-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message