| Summary: | Suggested small note to avoid confusion re. the version specification in PREFERRED_VERSION | ||
|---|---|---|---|
| Product: | [Documentation] Reference | Reporter: | ulfalizer |
| Component: | handbook | Assignee: | Scott Rifenbark <srifenbark> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Undecided | CC: | bluelightning, poky.doc.watcher, poky.watcher, srifenbark |
| Version: | 2.2 | ||
| Target Milestone: | 2.2 M4 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | 14 Sept 2016: RESOLVED | ||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Done (doc changes complete) | |
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 |
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