database tables for VuXML

Charles Swiger cswiger at mac.com
Wed Aug 25 13:38:08 PDT 2004


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



More information about the freebsd-vuxml mailing list