Bug 6656

Summary: Add ability to edit an existing recipe using development wrapper tool
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Paul Eggleton <bluelightning>
Component: devtools / tool chainAssignee: Paul Eggleton <bluelightning>
Status: VERIFIED FIXED QA Contact: Alexandru Georgescu <alexandru.c.georgescu>
Severity: enhancement    
Priority: Medium+ CC: alexandru.c.georgescu, costin.c.constantin, georgex.l.musat, meta.mr.watcher, meta.watcher
Version: 1.7   
Target Milestone: 1.8 M2   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)
Bug Depends on: 6653    
Bug Blocks: 6662    

Description Paul Eggleton 2014-08-24 17:19:07 UTC
Extending the tool in bug 6653, add the ability to "edit" an existing recipe and point it an external source tree managed with git. This will need the ability to translate from a set of patch files in the recipe to commits in a git tree and vice-versa.
Comment 1 Paul Eggleton 2014-08-24 21:10:27 UTC
This may obviate bug 6561.
Comment 2 Paul Eggleton 2014-10-01 11:19:24 UTC
And possibly bug 1652.
Comment 3 Alexandru Georgescu 2014-11-20 09:23:43 UTC
To be discussed internally with Lucian and Costin.
Comment 4 Paul Eggleton 2014-12-26 12:28:41 UTC
A new "devtool" utility with a "modify" command was added to master in the following commit (a number of earlier supporting commits are also required):

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=cd5ca4a11daff2089ba3031103b9b9dab5b3c94e

Some basic QA tests have been added in meta/lib/oeqa/selftest/devtool.py. Documentation is still pending.
Comment 5 Alexandru Georgescu 2015-03-19 10:17:30 UTC
Verified with devtool selftest.

[fed@fed build]$ oe-selftest --run-tests devtool                                                                                                                                                                   │·················
2015-03-19 11:38:13,645 - selftest - INFO - Checking that everything is in order before running the tests                                                                                                          │·················
2015-03-19 11:38:14,415 - selftest - INFO - Running bitbake -p                                                                                                                                                     │·················
2015-03-19 11:38:16,613 - selftest - INFO - Loading tests from: oeqa.selftest.devtool                                                                                                                              │·················
2015-03-19 11:38:16,622 - selftest - INFO - Adding: "include selftest.inc" in local.conf                                                                                                                           │·················
test_create_workspace (oeqa.selftest.devtool.DevtoolTests) ... ok                                                                                                                                                  │·················
test_devtool_add (oeqa.selftest.devtool.DevtoolTests) ... ok                                                                                                                                                       │·················
test_devtool_add_library (oeqa.selftest.devtool.DevtoolTests) ... ok                                                                                                                                               │·················
test_devtool_extract (oeqa.selftest.devtool.DevtoolTests) ... ok                                                                                                                                                   │·················
test_devtool_modify (oeqa.selftest.devtool.DevtoolTests) ... ok                                                                                                                                                    │·················
test_devtool_modify_git (oeqa.selftest.devtool.DevtoolTests) ... ok                                                                                                                                                │·················
test_devtool_update_recipe (oeqa.selftest.devtool.DevtoolTests) ... ok                                                                                                                                             │·················
test_devtool_update_recipe_git (oeqa.selftest.devtool.DevtoolTests) ... ok                                                                                                                                         │·················
test_recipetool_create (oeqa.selftest.devtool.DevtoolTests) ... ok                                                                                                                                                 │·················
test_recipetool_create_git (oeqa.selftest.devtool.DevtoolTests) ... ok                                                                                                                                             │·················
                                                                                                                                                                                                                   │·················
----------------------------------------------------------------------                                                                                                                                             │·················
Ran 10 tests in 586.325s                                                                                                                                                                                           │·················
                                                                                                                                                                                                                   │·················
OK