From owner-freebsd-ports Fri Oct 8 10:19:38 1999 Delivered-To: freebsd-ports@freebsd.org Received: from nimitz.ca.sandia.gov (nimitz.ca.sandia.gov [146.246.243.56]) by hub.freebsd.org (Postfix) with ESMTP id 19EA615892; Fri, 8 Oct 1999 10:19:26 -0700 (PDT) (envelope-from bmah@nimitz.ca.sandia.gov) Received: (from bmah@localhost) by nimitz.ca.sandia.gov (8.9.3/8.9.3) id KAA71914; Fri, 8 Oct 1999 10:18:58 -0700 (PDT) Message-Id: <199910081718.KAA71914@nimitz.ca.sandia.gov> X-Mailer: exmh version 2.1.0 09/18/1999 To: Neil Blakey-Milner Cc: Kris Kennaway , Mike Meyer , freebsd-ports@FreeBSD.ORG Subject: Re: install newer version over old one... In-Reply-To: Your message of "Fri, 08 Oct 1999 11:21:46 +0200." <19991008112146.A39653@rucus.ru.ac.za> From: bmah@CA.Sandia.GOV (Bruce A. Mah) Reply-To: bmah@CA.Sandia.GOV 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-Url: http://www.ca.sandia.gov/~bmah/ Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_589402858P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Fri, 08 Oct 1999 10:18:58 -0700 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --==_Exmh_589402858P Content-Type: text/plain; charset=us-ascii If memory serves me right, Neil Blakey-Milner wrote: > On Thu 1999-10-07 (16:28), Kris Kennaway wrote: > > 1) We leave things as they are in /var/db/pkg, and the make target matches > > against the subdirectories with ${PKGNAME}-*. This has potential problems > > with ports named foo and foo-devel, etc - you can't differentiate between > > a PKGVER of "devel-1.0" and a PKGNAME of "foo-devel" and "1.0". We could > > mandate that all PKGVERs start with a number, but it's still kinda icky > > IMO, and probably will fail to catch a number of corner cases. > > The stuff after the last '-' is the version. > > That is the way things are meant to work - if it doesn't, it's a mistake, > and needs to be fixed. > > This is how pkg_version does its stuff, for example. Please don't take pkg_version as a definitive authority on how packages should be numbered/named. It's a gross hack. I can say this because I'm the poor chap who wrote it. :-) My two cents (which have probably already been expressed very well by others on this list) are that: Explicit support for finding two versions of "the same" port is a Good Thing (TM). Whoever does this also needs to think very carefully about what "newer" means (in particular, keeping in mind that "newer" != "better"). There's also the idea that a package can change without changing the version number of the installed software (e.g. someone adds a patch-xx or tweaks the Makefile). I'm somewhat in favor of encoding some of this data in /var/db/pkg/ foo-x.y.z/+SOMEFILE since the package creation process has a lot more of this information available than pkg_version does, thus eliminating the need for pkg_version (et al) to try to figure these things out. Bruce. --==_Exmh_589402858P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use MessageID: HhvR4KT1tlHocu1RQxlPu1psiF664hdP iQA/AwUBN/4ngtjKMXFboFLDEQI46gCguIzuOzSyVyEq30BAlWPh5qE5v+gAn0o4 t2r6staxSHiNSu3AHNNiIT2Y =WSd3 -----END PGP SIGNATURE----- --==_Exmh_589402858P-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message