From owner-freebsd-vuxml@FreeBSD.ORG Wed Aug 25 20:38:08 2004 Return-Path: Delivered-To: freebsd-vuxml@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 253EF16A4CE; Wed, 25 Aug 2004 20:38:08 +0000 (GMT) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.47]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15C1243D41; Wed, 25 Aug 2004 20:38:08 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from mac.com (smtpin01-en2 [10.13.10.146]) by smtpout.mac.com (8.12.6/MantshX 2.0) with ESMTP id i7PKc7mL026535; Wed, 25 Aug 2004 13:38:07 -0700 (PDT) Received: from [10.1.1.245] (nfw2.codefab.com [199.103.21.225] (may be forged)) (authenticated bits=0)i7PKc5S1015663; Wed, 25 Aug 2004 13:38:06 -0700 (PDT) In-Reply-To: <412CBA68.15997.61E6A50@localhost> References: <412B7D29.31547.1472F80@localhost> <412CBA68.15997.61E6A50@localhost> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Charles Swiger Date: Wed, 25 Aug 2004 16:38:04 -0400 To: Dan Langille X-Mailer: Apple Mail (2.619) X-Mailman-Approved-At: Wed, 25 Aug 2004 20:40:15 +0000 cc: FreeBSD Ports cc: freebsd-vuxml@freebsd.org Subject: Re: database tables for VuXML X-BeenThere: freebsd-vuxml@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documenting security issues in VuXML List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2004 20:38:08 -0000 On Aug 25, 2004, at 4:12 PM, Dan Langille wrote: > On 25 Aug 2004 at 13:58, Jacques Vidrine wrote: >> One can think a version number as a tuple as follows (most significant >> first): (PORTEPOCH, PORTVERSION, PORTREVISION). Comparisons are done >> on these tuples. > > Oh, PORTEPOCH is first? Why? Shouldn't it be last? Here is the > value forumula from bsd.port.mk > > PKGNAME= ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}- > ${PORTVERSION:C/[-_,]/./g}${_SUF1}${_SUF2} > > where _SUF2= ,${PORTEPOCH} PORTEPOCH is listed last in the package name, but it is more important than the other values. The reason PORTEPOCH exists is to fix PORTVERSION+PORTREVISION not producing a monotonously increasing sequence, right? So, no matter what PORTVERSION is, PORTEPOCH=1 means greater than PORTEPOCH of zero (ie, unset, the default value, whatever). PORTEPOCH=2 with any PORTVERSION is greater than any PORTVERSION value with PORTEPOCH=1, etc. -- -Chuck