[bitbake-devel] [PATCH] bb/fetch2: fixes copying of file://dir; subdir=foo, bug 6128 and bug 6129

Sasha Shashkevich alex at stunpix.com
Fri Feb 26 11:30:20 UTC 2016


> On Feb 26, 2016, at 12:51, Richard Purdie <richard.purdie at linuxfoundation.org> wrote:
> 
> On Thu, 2016-02-25 at 18:32 +0200, Alexander Shashkevich wrote:
>> When in SRC_URI appears file://dir;subdir=foo unpacker copies 'dir'
>> to ${WORKDIR}, not
>> ${WORKDIR}/foo as it should be.
>> 
>> These changes are fixing following bugs as well:
>> Bug 6128 - Incorrect wildcard unpack behaviour in fetcher
>> Bug 6129 - Local directories unpack to a different location than
>> local files
> 
> Sadly, this change isn't without side effects. For example:
> 
> https://autobuilder.yoctoproject.org/main/builders/nightly-x86-64/builds/680/steps/Building%20Toolchain%20Images/logs/stdio
> 
> | NOTE: Unpacking /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64/build/scripts/runqemu to /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64/build/build/tmp/work/i686-nativesdk-pokysdk-linux/nativesdk-qemu-helper/1.0-r9/
> | cp: `/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64/build/scripts/runqemu' and `/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64/build/scripts/runqemu' are the same file
> | DEBUG: Python function base_do_unpack finished
> | DEBUG: Python function do_unpack finished


Despite all tests were successfully passed, something remains incorrect. Very sensitive feature. I'll check what is wrong and supply additional test cases with updated patch. Seems I need to build several configurations locally before submitting such patches – just tests are not enough.

Regards,
Alexander


More information about the bitbake-devel mailing list