mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
![]() [YOCTO #15162] when doing devtool modify, sources are extracted into a devtool temporary workdir. The main source is moved inside build/workspace/sources/${BPN}/ and local files are moved inside build/workspace/sources/${BPN}/oe-local-files. Secondary sources are currently not handled and are lost. Here is the output of devtool modify/build on bzip2 recipe: NOTE: bzip2: compiling from external source tree <...>/build/workspace/sources/bzip2 ERROR: bzip2-1.0.8-r0 do_install_ptest_base: ExecutionError('<...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/temp/run.do_install_ptest_base.3368', 1, None, None) ERROR: Logfile of failure stored in: <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/temp/log.do_install_ptest_base.3368 Log data follows: | DEBUG: Executing shell function do_install_ptest_base | NOTE: make -j 16 DESTDIR=<...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/image/usr/lib/bzip2/ptest install-ptest | sed -n '/^runtest:/,/^install-ptest:/{/^install-ptest:/!p}' \ | ../../../../../../workspace/sources/bzip2/Makefile.am > <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/image/usr/lib/bzip2/ptest/Makefile | cp ../../../../../../workspace/sources/bzip2/sample1.ref <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/image/usr/lib/bzip2/ptest/ | cp ../../../../../../workspace/sources/bzip2/sample2.ref <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/image/usr/lib/bzip2/ptest/ | cp ../../../../../../workspace/sources/bzip2/sample3.ref <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/image/usr/lib/bzip2/ptest/ | cp ../../../../../../workspace/sources/bzip2/sample1.bz2 <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/image/usr/lib/bzip2/ptest/ | cp ../../../../../../workspace/sources/bzip2/sample2.bz2 <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/image/usr/lib/bzip2/ptest/ | cp ../../../../../../workspace/sources/bzip2/sample3.bz2 <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/image/usr/lib/bzip2/ptest/ | ln -s /usr/bin/bzip2 <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/image/usr/lib/bzip2/ptest/bzip2 | cp: cannot stat '<...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/git/commons-compress': No such file or directory | WARNING: <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/temp/run.do_install_ptest_base.3368:189 exit 1 from 'cp -r <...>/build/tmp/work/core2-64-poky-linux/bzip2/ 1.0.8/git/commons-compress <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/image/usr/lib/bzip2/ptest/bzip2-tests/commons-compress' | WARNING: Backtrace (BB generated script): | #1: do_install_ptest, <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/temp/run.do_install_ptest_base.3368, line 189 | #2: do_install_ptest_base, <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/temp/run.do_install_ptest_base.3368, line 158 | #3: main, <...>/build/tmp/work/core2-64-poky-linux/bzip2/1.0.8/temp/run.do_install_ptest_base.3368, line 226 ERROR: Task (<...>/poky/meta/recipes-extended/bzip2/bzip2_1.0.8.bb:do_install_ptest_base) failed with exit code '1' NOTE: Tasks Summary: Attempted 776 tasks of which 765 didn't need to be rerun and 1 failed. Summary: 1 task failed: <...>/poky/meta/recipes-extended/bzip2/bzip2_1.0.8.bb:do_install_ptest_base externalsrc class modify SRC_URI to keep only: * 'file', 'npmsw' and 'crate' sources * url with type parameter matching 'kmeta' or 'git-dependency' So by forcing to add type='git-dependency' on secondary sources, we ensure that when building the recipe, the secondary sources can be unpacked into WORKDIR. This allows recipes containing several sources to be built under a devtool context, but it has some limitations: * user would not be able to generate patches for the secondary sources * type="git-dependency" is added for secondary sources even on non git sources, so we may want to rename this parameter (From OE-Core rev: cfd5ee890163a3d975093359016dda104e7b71df) Signed-off-by: Julien Stephan <jstephan@baylibre.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
||
---|---|---|
.. | ||
contrib | ||
cross-intercept | ||
esdk-tools | ||
lib | ||
native-intercept | ||
nativesdk-intercept | ||
postinst-intercepts | ||
pybootchartgui | ||
tiny | ||
autobuilder-worker-prereq-tests | ||
bblock | ||
bitbake-prserv-tool | ||
buildall-qemu | ||
buildhistory-collect-srcrevs | ||
buildhistory-diff | ||
buildstats-diff | ||
buildstats-summary | ||
combo-layer | ||
combo-layer-hook-default.sh | ||
combo-layer.conf.example | ||
cp-noerror | ||
create-pull-request | ||
crosstap | ||
devtool | ||
gen-lockedsig-cache | ||
gen-site-config | ||
git | ||
install-buildtools | ||
multilib_header_wrapper.h | ||
oe-build-perf-report | ||
oe-build-perf-test | ||
oe-buildenv-internal | ||
oe-check-sstate | ||
oe-debuginfod | ||
oe-depends-dot | ||
oe-find-native-sysroot | ||
oe-git-archive | ||
oe-git-proxy | ||
oe-gnome-terminal-phonehome | ||
oe-pkgdata-browser | ||
oe-pkgdata-browser.glade | ||
oe-pkgdata-util | ||
oe-publish-sdk | ||
oe-pylint | ||
oe-run-native | ||
oe-selftest | ||
oe-setup-builddir | ||
oe-setup-layers | ||
oe-test | ||
oe-time-dd-test.sh | ||
oe-trim-schemas | ||
oepydevshell-internal.py | ||
opkg-query-helper.py | ||
patchtest | ||
patchtest-get-branch | ||
patchtest-get-series | ||
patchtest-send-results | ||
patchtest-setup-sharedir | ||
patchtest.README | ||
pythondeps | ||
README | ||
recipetool | ||
relocate_sdk.py | ||
resulttool | ||
rootfs_rpm-extract-postinst.awk | ||
rpm2cpio.sh | ||
runqemu | ||
runqemu-addptable2image | ||
runqemu-export-rootfs | ||
runqemu-extract-sdk | ||
runqemu-gen-tapdevs | ||
runqemu-ifdown | ||
runqemu-ifup | ||
runqemu.README | ||
send-error-report | ||
send-pull-request | ||
sstate-cache-management.py | ||
sstate-diff-machines.sh | ||
sstate-sysroot-cruft.sh | ||
sysroot-relativelinks.py | ||
task-time | ||
test-reexec | ||
test-remote-image | ||
verify-bashisms | ||
wic | ||
yocto_testresults_query.py | ||
yocto-check-layer | ||
yocto-check-layer-wrapper |
This directory contains Various useful scripts for working with OE builds