[PATCH setup 00/14] Use libsolv, solve all our problems... (WIP)

Jon Turney jon.turney@dronecode.org.uk
Wed Oct 4 14:43:00 GMT 2017


On 02/10/2017 16:17, Marco Atzeri wrote:
> On 02/10/2017 16:07, Jon Turney wrote:
> 
>> https://cygwin.com/setup/setup-2.881-38-g6a01c5.x86_64.exe

Thanks for testing.

> interesting question about precedence as it tries to install
> cscope-15.8.0.1-2 and speex 1.2.0-2

So, this is change in behaviour. When asked to upgrade, setup will now 
always install the version which libsolv thinks has the highest version.

These versions are higher, because numeric sequences are considered 
higher than alphabetic sequences (i.e. '0' > 'b', '0' > 'rc').

Trying to control which version which gets upgraded to by setting the 
curr: value in setup.ini isn't actually always working, currently 
(perhaps this will be the subject of a whole other email...)

> that is right for speex but wrong for cscope following the setup.ini
> and the age of the files
> 
> version: 15.8b-1
> [prev]
> version: 15.8.0.1-2

So, this is actually a bug in the version sorting which calm does

(it was comparing the alphabetic sequence 'b' against the separator '.', 
rather than against the numeric sequence '0')

> speex
> version: 1.2.0-2
> [prev]
> version: 1.2rc1-1

And this is the right way round currently, only because it was noticed 
it wasn't sorted correctly when uploaded, and an override.hint added.

> It seems previous setup was doing the opposite precedence
> that is wrong for speex and right for cscope

I'll just point out that these two packages were made by people with 
incompatible ideas about how versions order.

I'm not going down the path of trying to support that, as that way 
madness lies...



More information about the Cygwin-apps mailing list