diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-01-06 14:45:08 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-01-06 14:48:25 +0000 |
commit | fd8d01134aaacb62ce344393fa2f3950c00ef6fc (patch) | |
tree | f75d44f7b6b99892e74e5e1c3d287ab65117cec9 | |
parent | b060d4b76abdf7db4737d28749584d7da1d925eb (diff) | |
download | poky-fd8d01134aaacb62ce344393fa2f3950c00ef6fc.tar.gz |
populate_sdk_ext: Fix confusing failure message
This stack trace is horrible and obscurs the real failure message, avoid that.
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:copy_buildsystem(d)
0003:
File: 'build/meta/classes/populate_sdk_ext.bbclass', lineno: 446, function: copy_buildsystem
0442: sdk_ext_type = d.getVar('SDK_EXT_TYPE')
0443: if (sdk_ext_type != 'minimal' or sdk_include_toolchain or derivative) and not sdk_include_nativesdk:
0444: # Create the filtered task list used to generate the sstate cache shipped with the SDK
0445: tasklistfn = d.getVar('WORKDIR') + '/tasklist.txt'
*** 0446: create_filtered_tasklist(d, baseoutpath, tasklistfn, conf_initpath)
0447: else:
0448: tasklistfn = None
0449:
0450: if os.path.exists(builddir + '/cache/bb_unihashes.dat'):
File: 'build/meta/classes/populate_sdk_ext.bbclass', lineno: 182, function: create_filtered_tasklist
0178: # Clean out residue of running bitbake, which check_sstate_task_list()
0179: # will effectively do
0180: clean_esdk_builddir(d, sdkbasepath)
0181: finally:
*** 0182: os.replace(sdkbasepath + '/conf/local.conf.bak', sdkbasepath + '/conf/local.conf')
0183:
0184:python copy_buildsystem () {
0185: import re
0186: import shutil
Exception: FileNotFoundError: [Errno 2] No such file or directory: 'tmp/work/qemux86-poky-linux/core-image-sato/1.0-r0/sdk-ext/image//opt/poky/3.0/conf/local.conf.bak' -> 'tmp/work/qemux86-poky-linux/core-image-sato/1.0-r0/sdk-ext/image//opt/poky/3.0/conf/local.conf'
(From OE-Core rev: 5115d2616b0847d521ccbecf1fbbf1f695a04fea)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/populate_sdk_ext.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass index 05cfc1cc15..af6e1b6e6a 100644 --- a/meta/classes/populate_sdk_ext.bbclass +++ b/meta/classes/populate_sdk_ext.bbclass | |||
@@ -179,7 +179,9 @@ def create_filtered_tasklist(d, sdkbasepath, tasklistfile, conf_initpath): | |||
179 | # will effectively do | 179 | # will effectively do |
180 | clean_esdk_builddir(d, sdkbasepath) | 180 | clean_esdk_builddir(d, sdkbasepath) |
181 | finally: | 181 | finally: |
182 | os.replace(sdkbasepath + '/conf/local.conf.bak', sdkbasepath + '/conf/local.conf') | 182 | localconf = sdkbasepath + '/conf/local.conf' |
183 | if os.path.exists(localconf + '.bak'): | ||
184 | os.replace(localconf + '.bak', localconf) | ||
183 | 185 | ||
184 | python copy_buildsystem () { | 186 | python copy_buildsystem () { |
185 | import re | 187 | import re |