diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-26 14:18:30 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-31 22:23:15 +0100 |
commit | aa1438b56f30515f9c31b306decef7f562dda81f (patch) | |
tree | 4e85c165f35c1cbdbe843244fccf349cf5695d88 /meta | |
parent | c0e32b475e62781dfe9cd057c8ad6a58b025563d (diff) | |
download | poky-aa1438b56f30515f9c31b306decef7f562dda81f.tar.gz |
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: dd8099ca3092fbd5c685e5ef1b1c5a8185a6893d)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/autotools.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index 046e83dc9b..bb129fb245 100644 --- a/meta/classes/autotools.bbclass +++ b/meta/classes/autotools.bbclass | |||
@@ -86,7 +86,7 @@ oe_runconf () { | |||
86 | ${CACHED_CONFIGUREVARS} $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@" | 86 | ${CACHED_CONFIGUREVARS} $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@" |
87 | if [ "$?" != "0" ]; then | 87 | if [ "$?" != "0" ]; then |
88 | echo "Configure failed. The contents of all config.log files follows to aid debugging" | 88 | echo "Configure failed. The contents of all config.log files follows to aid debugging" |
89 | find ${S} -name config.log -print -exec cat {} \; | 89 | find ${S} -ignore_readdir_race -name config.log -print -exec cat {} \; |
90 | bbfatal "oe_runconf failed" | 90 | bbfatal "oe_runconf failed" |
91 | fi | 91 | fi |
92 | set -e | 92 | set -e |