Bug 11198 - devtool doesn't handle do_unpack dependencies
Summary: devtool doesn't handle do_unpack dependencies
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 normal
Target Milestone: 2.4 M4
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
: 11988 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-03-21 13:17 UTC by Richard Purdie
Modified: 2017-09-18 23:59 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 2017-03-21 13:17:52 UTC
To reproduce, with an empty tmp directory:

$ oe-selftest -r devtool.DevtoolTests.test_devtool_buildclean

NOTE: Patching...
NOTE: Executing do_unpack...
ERROR: Unpack failure for URL: 'http://cdn.kernel.org/pub/linux/utils/raid/mdadm/mdadm-4.0.tar.xz'. Unpack command PATH="/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/scripts:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/work/core2-64-poky-linux/mdadm/4.0-r0/devtooltmp-tq3misrq/workdir/recipe-sysroot-native/usr/bin/x86_64-poky-linux:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/work/core2-64-poky-linux/mdadm/4.0-r0/devtooltmp-tq3misrq/workdir/recipe-sysroot/usr/bin/crossscripts:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/work/core2-64-poky-linux/mdadm/4.0-r0/devtooltmp-tq3misrq/workdir/recipe-sysroot-native/usr/sbin:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/work/core2-64-poky-linux/mdadm/4.0-r0/devtooltmp-tq3misrq/workdir/recipe-sysroot-native/usr/bin:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/work/core2-64-poky-linux/mdadm/4.0-r0/devtooltmp-tq3misrq/workdir/recipe-sysroot-native/sbin:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/work/core2-64-poky-linux/mdadm/4.0-r0/devtooltmp-tq3misrq/workdir/recipe-sysroot-native/bin:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/bitbake/bin:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/hosttools" xz -dc /srv/autobuilder/autobuilder.yoctoproject.org/current_sources/mdadm-4.0.tar.xz | tar x --no-same-owner -f - failed with return value 2

which is due to xz-native not having been unpacked.

$ bitbake xz-native
$ oe-selftest -r devtool.DevtoolTests.test_devtool_buildclean

works.
Comment 1 Paul Eggleton 2017-07-25 09:54:47 UTC
The underlying issue has now been fixed for devtool add / recipetool create, but this bug is actually about devtool modify, which will require quite a bit of reworking in order to fix (basically because there we are executing a task, doing some processing, executing the next task...)
Comment 2 Paul Eggleton 2017-08-28 20:19:09 UTC
*** Bug 11988 has been marked as a duplicate of this bug. ***