[bitbake-devel] bb.utils.vercmp() not consistent with debian rules
mark.hatle at windriver.com
Fri Apr 6 18:56:36 CEST 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
>>> 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
> 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".
>> At least that was what target opkg was doing for me and I had to bump PE
>>> A pervious patch
>>> 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,
>>> bitbake-devel mailing list
>>> bitbake-devel at lists.openembedded.org
> bitbake-devel mailing list
> bitbake-devel at lists.openembedded.org
More information about the bitbake-devel