Bug 14042

Summary: do_populate_lic_deploy throws exception
Product: [Build System, Metadata & Runtime] OE-Core Reporter: nickersk
Component: coreAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, nickersk, openatv, randy.macleod
Version: unspecified   
Target Milestone: 3.2 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description nickersk 2020-09-06 10:03:26 UTC
i think https://git.openembedded.org/openembedded-core/commit/meta/classes/license_image.bbclass?id=9c6a114213a80bebc2988ae8d39b296bce7f6982 is causing this exception:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:do_populate_lic_deploy(d)
     0003:
File: '/openembedded-core/meta/classes/license_image.bbclass', lineno: 260, function: do_populate_lic_deploy
     0256:ROOTFS_POSTPROCESS_COMMAND_prepend = "write_package_manifest; license_create_manifest; "
     0257:do_rootfs[recrdeptask] += "do_populate_lic"
     0258:
     0259:python do_populate_lic_deploy() {
 *** 0260:    license_deployed_manifest(d)
     0261:}
     0262:
     0263:addtask populate_lic_deploy before do_build after do_image_complete
     0264:do_populate_lic_deploy[recrdeptask] += "do_populate_lic do_deploy"
File: '/openembedded-core/meta/classes/license_image.bbclass', lineno: 210, function: license_deployed_manifest
     0206:    if os.path.islink(lic_manifest_symlink_dir):
     0207:        os.unlink(lic_manifest_symlink_dir)
     0208:
     0209:    # create the image dir symlink
 *** 0210:    os.symlink(lic_manifest_dir, lic_manifest_symlink_dir)
     0211:
     0212:def get_deployed_dependencies(d):
     0213:    """
     0214:    Get all the deployed dependencies of an image
Exception: FileExistsError: [Errno 17] File exists: '/builds/openatv/release/sf8008/tmp/deploy/licenses/openatv-6.5-sf8008-20200906' -> '/oea/nextp3/builds/openatv/release/sf8008/tmp/deploy/licenses/'

DEBUG: Python function do_populate_lic_deploy finished
Comment 1 nickersk 2020-09-10 08:26:47 UTC
IMAGE_LINK_NAME = "" is probably the cause of this
Comment 2 Ross Burton 2020-09-11 04:33:27 UTC
Patch from Diego on the list.
Comment 3 nickersk 2020-09-12 23:41:38 UTC
Thank you, fixed.