mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
autotools: Avoid find race for S = "${WORKDIR}"
For recipes with PACKAGES_remove = "${PN}", the find which removes .la files
can race against deletion of other directories in WORKDIR e.g.:
find: '/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/work/qemux86_64-poky-linux/init-ifupdown/1.0-r7/sstate-build-populate_lic': No such file or directory
| WARNING: /home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/work/qemux86_64-poky-linux/init-ifupdown/1.0-r7/temp/run.do_configure.6558:1 exit 1 from
| find /home/autobuilder/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/build/tmp/work/qemux86_64-poky-linux/init-ifupdown/1.0-r7 -name \*.la -delete
The simplest fix is to add the find option which ignores these kind of races.
[YOCTO #7522]
(From OE-Core rev: 7dd17effffc00cd6e58ba6a004b811c8452254d7)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -86,7 +86,7 @@ oe_runconf () {
|
|||||||
${CACHED_CONFIGUREVARS} $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@"
|
${CACHED_CONFIGUREVARS} $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@"
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
echo "Configure failed. The contents of all config.log files follows to aid debugging"
|
echo "Configure failed. The contents of all config.log files follows to aid debugging"
|
||||||
find ${S} -name config.log -print -exec cat {} \;
|
find ${S} -ignore_readdir_race -name config.log -print -exec cat {} \;
|
||||||
bbfatal "oe_runconf failed"
|
bbfatal "oe_runconf failed"
|
||||||
fi
|
fi
|
||||||
set -e
|
set -e
|
||||||
|
|||||||
Reference in New Issue
Block a user