On Mon, Jun 06, 2011 at 02:20:54PM +0200, Matthias Kilian wrote:
> On Mon, Jun 06, 2011 at 01:57:07AM -0600, Jasper Lievisse Adriaanse wrote:
> > Modified files:
> >     usr.bin/pkg-config: pkg-config 
> > 
> > Log message:
> > First steps of teaching pkg-config about 'alpha' and 'beta' versions.
> > The order is 'alpha' < 'beta' < ' ' , and the common shorts 'a' and 'b'
> > are also accepted.
> > It may have some rought edges, but they will be dealt with later.
> 
> What's the plan with pkg-config? The freedesktop version has a very
> weird version comparision algorithm which doesn't recognize any special
> strings like `alpha', 'beta', rc[[:digit:]]* etc.
> 
> While a more correct (and documented) version comparision would be
> nice, it won't protect us from strange version numbers used in upstream
> projects.
> 
> One example: if i understand the code from the freedesktop pkg-config,
> the following two version numbers would compqre equal:
> 
>       1.2.3.alpha
>       1:2/3alpha
> 
> Ciao,
>       Kili

The fd.o version comparison is rather odd indeed, and unless  
someone really wants our pkg-config to support versions like '1:2/3alpha' I 
think we will stick to a clearly documented (I'm working on that) comparison 
algorithm that is strict and won't allow junk like '2.1.3~rc5' from ftgl. That
  
was actually the first version I encountered in our tree that uses such a 
twisted scheme.

So, we're probably not going the same way fd.o went with comparison schemas    
and I don't think many upstream projects favor it either.

-- 
Cheers,
Jasper

"Capable, generous men do not create victims, they nurture them."

Reply via email to