| Summary: | devtool uses a gitsm URI for a version not using submodules if HEAD does | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | alexandre.truong |
| Component: | devtools / tool chain | Assignee: | alexandre.truong |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | meta.mr.watcher, meta.watcher, randy.macleod, tim.orling, vincent, yoann.congal |
| Version: | unspecified | ||
| Target Milestone: | 5.1 M2 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
alexandre.truong
2024-04-04 14:20:30 UTC
This is not an issue with devtool not setting the correct URI for a version, but the --version not being used for anything else but setting the "PV" value in the recipe. The version it will check out from git will be the same as if no version is specified. If I add mbedtls by doing: > devtool add --srcrev v3.1.0 mbedtls git://git@github.com/ARMmbed/mbedtls.git it checks out the correct tag and sets the SRC_URI as expected. > SRC_URI = "git://git@github.com/ARMmbed/mbedtls.git;protocol=ssh;branch=master" To fix this issue I ould change the command to set both the --srcrev and the --version: > devtool add --srcrev v3.1.0 --version v3.1.0 mbedtls git://git@github.com/ARMmbed/mbedtls.git Patches sent: https://lists.openembedded.org/g/openembedded-core/topic/patch_2_2/105746806 https://lists.openembedded.org/g/openembedded-core/topic/patch_1_2_revert/105746807 Link to the v2 of the patches: https://lists.openembedded.org/g/openembedded-core/message/198719 https://lists.openembedded.org/g/openembedded-core/message/198720 https://git.openembedded.org/openembedded-core/log/?qt=range&q=731f47ecfd8ad6558aac629806810789c623986b and follow commit. Thanks! |