Hello, When using PREFERRED_VERSION, the version specified is matched against PV rather than the recipe filename. This is subtle and easy to miss. I suggest adding the following note before the paragraph that starts with "sometimes the PREFERRED_VERSION variable...": Note { The specified version is matched against PV, which does not necessarily match the version part of the recipe's filename. For example, consider two recipes foo_1.2.3.bb and foo_git.bb where foo_git.bb contains the following assignment: PV = "1.2.2+git{SRCPV}" In this case, the correct way to select foo_git.bb is with an assignment like the following: PREFERRED_VERSION_foo = "1.2.2+git%" The following assignment will *not* work: PREFERRED_VERSION_foo = "git" } Cheers, Ulf
Missed a $. Here's a fixed version (with shorter version strings too). :P Note { The specified version is matched against PV, which does not necessarily match the version part of the recipe's filename. For example, consider two recipes foo_1.2.bb and foo_git.bb where foo_git.bb contains the following assignment: PV = "1.1+git${SRCPV}" In this case, the correct way to select foo_git.bb is with an assignment like the following: PREFERRED_VERSION_foo = "1.1+git%" The following assignment will *not* work: PREFERRED_VERSION_foo = "git" }
Ulf, See http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-PREFERRED_VERSION for the new note. Thanks, Scott
Looks good to me! Thanks, Ulf
Thanks, Setting to RESOLVED and putting the doc flag to "done." Scott