Re: [OE-core] [PATCH v4 0/2] Yocto Bug #6945

2016-05-29 Thread He Zhe
Hi Richard, Do we have plan to try this in v2.2 m1 or some milestone later? Thanks, Zhe On 05/25/2016 04:47 PM, zhe...@windriver.com wrote: > From: He Zhe > > This has been reviewed several rounds and no more comments are provided so > far. > Here is the brief history. More details can be foun

[OE-core] [PATCH 6/7] recipetool: create: use ${BP} for subdir for binary packages

2016-05-29 Thread Paul Eggleton
If we use ${BP} for the subdirectory, the default value of S will work rather than having to have an ugly value derived from the package file name in both places. This does mean that we have to assume the default though (we can't just let the normal logic work because the value of BP is the default

[OE-core] [PATCH 5/7] recipetool: create: extract variable values from .deb/.ipk/.rpm

2016-05-29 Thread Paul Eggleton
Extract the metadata from package files and use it to set variable values in the recipe (including recipe name and version, LICENSE, SUMMARY, DESCRIPTION, SECTION and HOMEPAGE). For LICENSE we take care not to step on any value determined by our license file scan; if there is one we simply add a co

[OE-core] [PATCH 3/7] lib/oe/recipeutils: fix insertion of variable values

2016-05-29 Thread Paul Eggleton
Add some more variables in appropriate places in recipe_progression such that the patch_recipe_* functions are able to insert variables in the right place within a recipe. Signed-off-by: Paul Eggleton --- meta/lib/oe/recipeutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

[OE-core] [PATCH 7/7] recipetool / devtool: set a fixed SRCREV by default when fetching from git

2016-05-29 Thread Paul Eggleton
If fetching source from a git repository, typically within OpenEmbedded we encourage setting SRCREV to a fixed revision, so change to do that by default and add a -a/--autorev option to use "${AUTOREV}" instead. Signed-off-by: Paul Eggleton --- meta/lib/oeqa/selftest/devtool.py | 6 -- scri

[OE-core] [PATCH 4/7] recipetool: create: support extracting SUMMARY and HOMEPAGE

2016-05-29 Thread Paul Eggleton
Allow plugins to set any variable value through the extravalues dict, and use this to support extracting SUMMARY and HOMEPAGE values from spec files included with the source; additionally translate "License:" to a comment next to the LICENSE field (we have our own logic for setting LICENSE, but it

[OE-core] [PATCH 2/7] lib/oe/recipeutils: patch_recipe_lines: allow omitting trailing newlines

2016-05-29 Thread Paul Eggleton
This function was assuming that what you wanted was that output lines had trailing newline characters. If you're just outputting each line verbatim to a text file then that's fine, but sometimes you start with the assumption that the lines don't have trailing newlines; thus we shouldn't allow for t

[OE-core] [PATCH 1/7] lib/oe/recipeutils: split out patch_recipe_lines()

2016-05-29 Thread Paul Eggleton
Split out a function from patch_recipe_file() that takes just the lines as input so we can edit recipe lines in memory. This will be used within recipetool to ensure we insert new values in the right place. Signed-off-by: Paul Eggleton --- meta/lib/oe/recipeutils.py | 23 ++-

[OE-core] [PATCH 0/7] recipetool improvements

2016-05-29 Thread Paul Eggleton
Make the following improvements to recipetool create (and by extension, devtool add): * Improve creation of recipes for binary deb/ipk/rpm package files with -b * General supporting improvements to patch_recipe_* functions * Set a fixed SRCREV when pointing to a git repo by default rather than us

[OE-core] [python3][PATCH] scripts/lnr: update for python3

2016-05-29 Thread Allen Wild
Change shebang line to python3 and add parentheses to print Signed-off-by: Allen Wild --- scripts/lnr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/lnr b/scripts/lnr index 9dacebe..5fed780 100755 --- a/scripts/lnr +++ b/scripts/lnr @@ -1,4 +1,4 @@ -#! /usr/bin/e