Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Robert P. J. Day" <rpjday@crashcourse.ca>
To: Christopher Larson <clarson@kergoth.com>
Cc: OE Core mailing list <openembedded-core@lists.openembedded.org>
Subject: Re: should a "*git.bb" recipe lock that recipe to a fixed version?
Date: Sun, 30 Oct 2016 13:35:44 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LFD.2.20.1610301333390.3944@localhost.localdomain> (raw)
In-Reply-To: <CABcZANnPcmg+iBWgB7HHbEEaTaDOfwtdXr8vfrG7OPzruRdTTQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2960 bytes --]

On Sun, 30 Oct 2016, Christopher Larson wrote:

> On Sun, Oct 30, 2016 at 5:25 AM, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
>
>         not sure if i should have noticed this before, but i was building a
>       number of python modules, and my collection of layers gave me two
>       possibilities for python-django:
>
>         * python-django_git.bb      (meta-openstack)
>         * python-django_1.9.7.bb    (meta-python)
>
>         i simply assumed that any "git"-versioned recipe would typically
>       take precedence over a fixed version recipe, so i was surprised to see
>       that what was built was python-django-1.8.6. huh?
>
>         then i looked at the recipe from meta-openstack, and it contained
>       the lines:
>
>         PV = "1.8.6"
>         SRCREV = "80b7e9d09f2d23209b591288f9b2cf3eb3d927c8"
>
>         SRC_URI = " \
>             git://github.com/django/django.git;branch=stable/1.8.x \
>             "
>
>       am i right in being a bit confused by that? i checked out the github
>       repo, and it has branches "stable/1.8.x", and also "stable/1.9.x" and
>       "stable/1.10.x". so what is that supposed to mean?
>
>         am i right in assuming that a "git" recipe will (in the absence of
>       any PREFERRED_VERSION settings or other overriding settings) always be
>       considered before a fixed version recipe? and is that why i got this
>       (for me) unexpected result?
>
>
> Bitbake selects default versions via DEFAULT_VERSION,
> PREFERRED_VERSION, and lacking both, a naïve version comparison.
> There’s nothing magic to select or not select an _git recipe.
>
> It’s been a very common pattern for the _git recipe to be the
> development version / branch HEAD, to be used only when explicitly
> selected, whereas the versioned recipes are stable and versioned, so
> are appropriate defaults. That said, there are also _git recipes
> that set specific versions, and version recipes that use git to
> fetch that version. There’s a lack of consistency in that regard,
> but what you were surprised by has basically been the expected,
> default convention in the past, not the exception.

  fair enough ... i'm embarrassed to admit i didn't really understand
the versioning selection so i'm going to examine it way more carefully
now. i wonder how many recipes in oe-core are "_git" recipes that, in
the end, just lock down to a specific version. as you say, i was a bit
surprised.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

  reply	other threads:[~2016-10-30 17:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-30 12:25 should a "*git.bb" recipe lock that recipe to a fixed version? Robert P. J. Day
2016-10-30 17:16 ` Christopher Larson
2016-10-30 17:35   ` Robert P. J. Day [this message]
2016-10-30 23:36     ` Burton, Ross
2016-10-31  2:54       ` Khem Raj
2016-10-31  6:29         ` Robert P. J. Day
2016-10-31 16:31           ` Khem Raj
2016-10-30 19:40   ` Christopher Larson

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=alpine.LFD.2.20.1610301333390.3944@localhost.localdomain \
    --to=rpjday@crashcourse.ca \
    --cc=clarson@kergoth.com \
    --cc=openembedded-core@lists.openembedded.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox