Bug 12973 - yocto-check-layer traceback
Summary: yocto-check-layer traceback
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium minor
Target Milestone: 2.7
Assignee: Changqing Li
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2018-10-30 17:31 UTC by Richard Purdie
Modified: 2018-11-30 01:52 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Purdie 2018-10-30 17:31:35 UTC
Changing out the build directory before running yocto-check-layer gives a traceback:

~/poky$ source oe-init-build-env 

### Shell environment set up for builds. ###

You can now run 'bitbake <target>'

Common targets are:
    core-image-minimal
    core-image-sato
    meta-toolchain
    meta-ide-support

You can also run generated qemu images with a command like 'runqemu qemux86'
~/poky/build$ cd ..
~/poky$ ./scripts/yocto-check-layer meta-yocto-bsp/
INFO: Detected layers:
INFO: meta-yocto-bsp: LayerType.BSP, /home/richard/Repos/poky/meta-yocto-bsp
INFO: 
INFO: Setting up for meta-yocto-bsp(LayerType.BSP), /home/richard/Repos/poky/meta-yocto-bsp
INFO: Getting initial bitbake variables ...
INFO: Getting initial signatures ...
Traceback (most recent call last):
  File "./scripts/yocto-check-layer", line 210, in <module>
    ret =  main()
  File "./scripts/yocto-check-layer", line 173, in main
    td['sigs'], td['tunetasks'] = get_signatures(td['builddir'])
  File "/home/richard/Repos/poky/scripts/lib/checklayer/__init__.py", line 274, in get_signatures
    with open(sigs_file, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/richard/Repos/poky/build/locked-sigs.inc'
Comment 1 Changqing Li 2018-11-15 05:21:47 UTC
@Richard

This
Comment 2 Changqing Li 2018-11-16 01:27:35 UTC
(In reply to comment #1)
> @Richard
> 
> This

Please ignore this comments. It is sent by mistake.
Comment 3 Changqing Li 2018-11-30 01:52:20 UTC
have fixed by oe commit 2ec0bc0b038bc6413978c8f34ef5c0d22b4bc3e7