Bug 11136 - devtool: Being able to change a devtool generated recipe from git to a tagged version
Summary: devtool: Being able to change a devtool generated recipe from git to a tagged...
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: unspecified
Hardware: All Multiple
: Medium enhancement
Target Milestone: 2.4
Assignee: Behan Webster
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-03-08 19:46 UTC by Behan Webster
Modified: 2017-04-07 16:39 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Behan Webster 2017-03-08 19:46:41 UTC
If you generate a recipe with devtool using a raw git repo without specifying a tag at "Devtool add" time you can't then change the name of the recipe nor update SRC_URI after the fact. The only way to do this is to start over again by specifying the tag when you do the add.

It would be nice to be able to transition a git/HEAD recipe to a tag, or branch version of the recipe without starting over.
Comment 1 Paul Eggleton 2017-03-09 19:28:25 UTC
So in master for the upcoming release, devtool does have a rename subcommand that lets you change the name and/or version portion of the filename, updating any references to these. It won't set branch= or SRCREV but those you can set in the recipe after the fact without any adverse effects.

Does that meet with your expectations?
Comment 2 Behan Webster 2017-03-24 19:04:25 UTC
Excellent. That's all I was hoping for anyways. :)