Bug 13265

Summary: devtool build busybox fails
Product: [Build System, Metadata & Runtime] OE-Core Reporter: chandana kalluri <ckalluri>
Component: Scripts and ToolsAssignee: chandana kalluri <ckalluri>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Medium+ CC: alejandr, ckalluri, randy.macleod, ross.burton
Version: 2.6.1   
Target Milestone: 2.8 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 chandana kalluri 2019-04-03 22:38:28 UTC

    
Comment 1 chandana kalluri 2019-04-03 22:43:19 UTC
devtool build busybox fails with the following error

Python function externalsrc_configure_prefunc finished DEBUG: Executing
shell function do_configure
/poky/build/tmp/work/i586-poky-linux/busybox/1.30.1-r0/temp/run.do_configure.2406:
line 120:
/poky/build/tmp/work/i586-poky-linux/busybox/1.30.1-r0/defconfig:
No such file or directory WARNING:
/s/poky/build/tmp/work/i586-poky-linux/busybox/1.30.1-r0/temp/run.do_configure.2406:1
exit 1 from 'sed -e '/CONFIG_STATIC/d' <
/poky/build/tmp/work/i586-poky-linux/busybox/1.30.1-r0/defconfig
> /poky/build/workspace/sources/busybox/.config' WARNING:
> /poky/bitbake/lib/bb/build.py:581: ResourceWarning: unclosed
> file <_io.TextIOWrapper
> name='//poky/build/workspace/sources/busybox/singletask.lock'
> mode='a+' encoding='UTF-8'> exec_func(task, localdata)

ERROR: Function failed: do_configure (log file is located at
/poky/build/tmp/work/i586-poky-linux/busybox/1.30.1-r0/temp/log.do_configure.2406)


this is because within busybox.inc do_prepare_config task tries to access ${WORKDIR}/defconfig.
in devtool, for busybox the external builddir is set to workspace/sources/busybox
when do_prepare_config task runs it errors because it cannot find ${WORKDIR}/defconfig.
Comment 2 Randy MacLeod 2019-08-15 15:21:08 UTC
Are you able to send a patch?
Comment 3 chandana kalluri 2019-10-22 17:28:04 UTC
The issue has been resolved in the latest master tree. Will close the bug as it is no longer reproducible.
Comment 4 chandana kalluri 2019-10-22 17:30:17 UTC
The issue has been resolved in the latest master tree. Will close the bug as it is no longer reproducible.