<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 30, 2016 at 5:25 AM, Robert P. J. Day <span dir="ltr"><<a href="mailto:rpjday@crashcourse.ca" target="_blank">rpjday@crashcourse.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
not sure if i should have noticed this before, but i was building a<br>
number of python modules, and my collection of layers gave me two<br>
possibilities for python-django:<br>
<br>
* <a href="http://python-django_git.bb" rel="noreferrer" target="_blank">python-django_git.bb</a> (meta-openstack)<br>
* <a href="http://python-django_1.9.7.bb" rel="noreferrer" target="_blank">python-django_1.9.7.bb</a> (meta-python)<br>
<br>
i simply assumed that any "git"-versioned recipe would typically<br>
take precedence over a fixed version recipe, so i was surprised to see<br>
that what was built was python-django-1.8.6. huh?<br>
<br>
then i looked at the recipe from meta-openstack, and it contained<br>
the lines:<br>
<br>
PV = "1.8.6"<br>
SRCREV = "<wbr>80b7e9d09f2d23209b591288f9b2cf<wbr>3eb3d927c8"<br>
<br>
SRC_URI = " \<br>
git://<a href="http://github.com/django/django.git;branch=stable/1.8.x" rel="noreferrer" target="_blank">github.com/django/<wbr>django.git;branch=stable/1.8.x</a> \<br>
"<br>
<br>
am i right in being a bit confused by that? i checked out the github<br>
repo, and it has branches "stable/1.8.x", and also "stable/1.9.x" and<br>
"stable/1.10.x". so what is that supposed to mean?<br>
<br>
am i right in assuming that a "git" recipe will (in the absence of<br>
any PREFERRED_VERSION settings or other overriding settings) always be<br>
considered before a fixed version recipe? and is that why i got this<br>
(for me) unexpected result?<br></blockquote><div><br></div><div>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.</div><div><br></div><div>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.</div></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics</div>
</div></div>