[bitbake-devel] bb.utils.vercmp() not consistent with debian rules
Martin Jansa
martin.jansa at gmail.com
Thu Apr 5 06:28:57 UTC 2012
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
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=cb119753a77208617936085100595e6343ade650
Cheers,
>
> A pervious patch http://cgit.openembedded.org/bitbake/commit/?id=727ce6ffe33a119cb17f7d91b173f11a055eea3c 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
--
Martin 'JaMa' Jansa jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20120405/285ae83b/attachment-0001.sig>
More information about the bitbake-devel
mailing list