standard.py: Not filtering devtool workspace for devtool finish
PATCH 1/1 standard.py: Not filtering devtool workspace for devtool finish
All devtool commands right now are filtering out the devtool workspace bbappends in build/workspace/appends when calling parse_recipe. While this may make sense for devtool add and modify, we need devtool finish to include those appends.
A specific breakage that is caused because devtool finish filters devtool appends is the cmake/cml1 flow where a file is created in the WORKDIR that finish needs access to, to commit those files. Particularly for git packages with SRCPV in PV, SRCPV is only changed to 999 when using external source, hence when creating the cfg or cmake config files using for instance bitbake -c diffconfig, these files are created in the git999 workdir correctly (as in the devtool bbapends, we are inheriting externalsrc class). But when devtool finish is run, the devtool appends are not parsed, hence SRCPV is not changed to 999 and devtool is looking for the fragment files in the wrong WORKDIR.
Changing the parse_recipe call just in devtool finish to not filter out the devtool workspace.
Fixes [YOCTO #13533]
--- scripts/lib/devtool/standard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/lib/devtool/standard.py +1 -1
@@ -2011,7 +2011,7 @@ def finish(args, config, basepath, workspace): no_clean = False tinfoil = setup_tinfoil(basepath=basepath, tracking=True) try: - rd = parse_recipe(config, tinfoil, args.recipename, True) + rd = parse_recipe(config, tinfoil, args.recipename, True, False) if not rd: return 1
Signature · 1 line
2.7.4
ping
Quoted 53 lines
-----Original Message-----
From: Jaewon Lee <[email protected]>
Sent: Thursday, September 19, 2019 5:13 PM
To: [email protected]; [email protected]; Manjukumar Harthikote Matha <[email protected]>; Alejandro Enedino Hernandez Samaniego <[email protected]>
Cc: Jaewon Lee <[email protected]>
Subject: [OE-core][master][PATCH]standard.py: Not filtering devtool workspace for devtool finishAll devtool commands right now are filtering out the devtool workspace bbappends in build/workspace/appends when calling
parse_recipe. While this may make sense for devtool add and modify, we need devtool finish to include those appends.A specific breakage that is caused because devtool finish filters devtool appends is the cmake/cml1 flow where a file is created in the WORKDIR that finish needs access to, to commit those files. Particularly for git packages with SRCPV in PV, SRCPV is only changed to 999 when using external source, hence when creating the cfg or cmake config files using for instance bitbake - c diffconfig, these files are created in the
git999 workdir correctly (as in the devtool bbapends, we are inheriting externalsrc class). But when devtool finish is run, the devtool appends are not parsed, hence SRCPV is not changed to 999 and devtool is looking for the fragment files in the wrong WORKDIR.Changing the
parse_recipecall just in devtool finish to not filter out the devtool workspace.Fixes [YOCTO #13533]
Signed-off-by Jaewon Lee <[email protected]>--- scripts/lib/devtool/standard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/lib/devtool/standard.py +2
-2@@ -2011,7 +2011,7 @@ def finish(args, config, basepath, workspace): no_clean = False tinfoil = setup_tinfoil(basepath=basepath, tracking=True) try: - rd = parse_recipe(config, tinfoil, args.recipename, True) + rd = parse_recipe(config, tinfoil, args.recipename, True, + False) if not rd: return 1 --2.7.4
Unfortunately this broke 'devtool upgrade' functionality, where 'devtool finish' erroneously rewrites SRC_URI to no longer include the path to the remote tarball.
I will have to send a revert for this.
Alex
Quoted 69 lines · Jaewon Lee
ping
Quoted 11 lines
-----Original Message-----
From: Jaewon Lee <[email protected]>
Sent: Thursday, September 19, 2019 5:13 PM
To: [email protected]; [email protected]; Manjukumar Harthikote Matha <[email protected]>; Alejandro Enedino Hernandez Samaniego <[email protected]>
Cc: Jaewon Lee <[email protected]>
Subject: [OE-core][master][PATCH]standard.py: Not filtering devtool workspace for devtool finishQuoted 7 lines
All devtool commands right now are filtering out the devtool workspace bbappends in build/workspace/appends when calling
parse_recipe. While this may make sense for devtool add and modify, we need devtool finish to include those appends.A specific breakage that is caused because devtool finish filters devtool appends is the cmake/cml1 flow where a file is created in the WORKDIR
that
Quoted 1 line
finish needs access to, to commit those files. Particularly for git
packages with
Quoted 2 lines
SRCPV in PV, SRCPV is only changed to 999 when using external source, hence when creating the cfg or cmake config files using for instance
bitbake -
Quoted 3 lines
c diffconfig, these files are created in the
git999 workdir correctly (as in the devtool bbapends, we are inheriting externalsrc class). But when devtool finish is run, the devtool appendsare
Quoted 1 line
not parsed, hence SRCPV is not changed to 999 and devtool is looking for
the
Quoted 3 lines
fragment files in the wrong WORKDIR.
Changing the
parse_recipecall just in devtool finish to not filter outthe
Review
Quoted 10 lines
devtool workspace.
Fixes [YOCTO #13533]
Signed-off-by Jaewon Lee <[email protected]>--- scripts/lib/devtool/standard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0
b/scripts/lib/devtool/standard.pyQuoted 14 lines
index 9eeaefb..e87b433 100644
scripts/lib/devtool/standard.py +2
-2@@ -2011,7 +2011,7 @@ def finish(args, config, basepath, workspace): no_clean = False tinfoil = setup_tinfoil(basepath=basepath, tracking=True) try: - rd = parse_recipe(config, tinfoil, args.recipename, True) + rd = parse_recipe(config, tinfoil, args.recipename, True, + False) if not rd: return 1 --Quoted 1 line
2.7.4
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core