All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Chris Larson <clarson@kergoth.com>
Cc: bitbake-devel <bitbake-devel@lists.openembedded.org>
Subject: Re: bitbake/utils: Convert vercmp_string() to use vercmp internally
Date: Fri, 04 May 2012 15:47:43 +0100	[thread overview]
Message-ID: <1336142863.23777.16.camel@ted> (raw)
In-Reply-To: <CABcZANm1yKZ3rj1YV7WXbWO3vwoWbK11iHKGMkRDmF8sFzXTgw@mail.gmail.com>

On Fri, 2012-05-04 at 07:31 -0700, Chris Larson wrote:
> On Fri, May 4, 2012 at 7:03 AM, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> > Having two different version comparision algorithms in bitbake has never seemed
> > like a sensible idea. Worryingly, they also return different results to each other.
> >
> > The vercmp_string API is relatively unused with no users in OE-Core or BitBake
> > itself for example. This patch converts it to use vercmp internalls, bringing
> > consitency to the comparisions which is easy now we have other recently added
> > functions. Yes, this changes behaviour but in this case I'd prefer we were
> > consistent than having two different comparisions.
> >
> > Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> 
> This seems sane to me (aside: minor typo: internalls). I recall that
> we attempted this once in the past with regular OE and got bitten hard
> by the actual users in the metadata, but clearly that's no longer a
> concern.

There are a couple of lib.oe.utils() functions that do call this api but
those themselves don't seem to be used anywhere I could spot.

The way I've changed things is API compatible, it just behaves
consistently with the other version functions and differently to how it
did before in some cases. I think last time we tried this, we tried to
remove it so this approach should be ok...

Cheers,

Richard




      reply	other threads:[~2012-05-04 14:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-04 14:03 bitbake/utils: Convert vercmp_string() to use vercmp internally Richard Purdie
2012-05-04 14:31 ` Chris Larson
2012-05-04 14:47   ` Richard Purdie [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1336142863.23777.16.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=clarson@kergoth.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.