[bitbake-devel] bb.utils.vercmp() not consistent with debian rules

Mark Hatle mark.hatle at windriver.com
Fri Apr 6 16:56:36 UTC 2012


On 4/5/12 1:42 AM, Lu, Lianhao wrote:
>
> Martin Jansa wrote on 2012-04-05:
>> On Thu, Apr 05, 2012 at 06:22:00AM +0000, Lu, Lianhao wrote:
>>> Hi guys,
>>>
>>> When I'm looking at the Yocto bug#2233, I find that the function
>>> bb.utils.vercmp() is not consistent with the debian packaging
>>> rules(http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-
>>> Version).
>>>
>>> According to debian rules, "r0" is earlier than "r0-dream", but the bb.utils.vercmp() thinks "r0" is later than "r0-dream".
>>
>> And what about something like this:
>>
>> Version: 3.2-r10
>> is older then
>> Version: 3.2-r2-oe0

As an FYI, RPM does:

3.2-r10 > 3.2-r2-oe0

3.2-r2 < 3.2-r2-oe0

--Mark

> I think this is exactly what the debian rules wants, "3.2-r10">"3.2-r2-oe0". And opkg follows that rule.
>
> The problem is that bb.utils.vercmp thinks "3.2-r2">"3.2-r2-oe0" while opkg thinks "3.2-r2"<"3.2-r2-oe0".
>
> -Lianhao
>
>> At least that was what target opkg was doing for me and I had to bump PE
>> http://git.shr-project.org/git/?p=meta-smartphone.git;a=commit;h=cb119753
>> a77208617936085100595e6343ade650
>>
>> Cheers,
>>
>>>
>>> A pervious patch
>>> http://cgit.openembedded.org/bitbake/commit/?id=727ce6ffe33a119cb17f7d91
>>> b173f11a055eea3c seems causing the bb.utils.vercmp to specially handle
>>> the separators of "." and "-".
>>>
>>> Is it desired to behave differently from debian rules?
>>>
>>> Best Regards,
>>> -Lianhao
>>>
>>> _______________________________________________
>>> bitbake-devel mailing list
>>> bitbake-devel at lists.openembedded.org
>>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/bitbake-devel
>>
>
>
> _______________________________________________
> bitbake-devel mailing list
> bitbake-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/bitbake-devel





More information about the bitbake-devel mailing list