summaryrefslogtreecommitdiffstats
path: root/meta/classes/autotools.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-03 16:06:43 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-03 17:46:46 +0100
commit23774530c1c2df8c306807d20baaea693250ef16 (patch)
treef7e4652b78437c6e67a13f9e4b3be4c33d803357 /meta/classes/autotools.bbclass
parente8e06a48b34882bdd80aa94ff1d5ff329b7505dc (diff)
downloadpoky-23774530c1c2df8c306807d20baaea693250ef16.tar.gz
autotools.bbclass: Fix m4 file race
If something removes .m4 files from the aclocal directory whilst aclocal is running it gets upset. To avoid this we need to take a copy of the aclocal directory and build against this instead. [YOCTO #861] (From OE-Core rev: 6a4778e21341f031569f561e7699d2c616b60af0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/autotools.bbclass')
-rw-r--r--meta/classes/autotools.bbclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index e5c13ae691..8f65b709fd 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -111,8 +111,13 @@ autotools_do_configure() {
111 if [ -d ${STAGING_DATADIR_NATIVE}/aclocal-$AUTOV ]; then 111 if [ -d ${STAGING_DATADIR_NATIVE}/aclocal-$AUTOV ]; then
112 acpaths="$acpaths -I${STAGING_DATADIR_NATIVE}/aclocal-$AUTOV" 112 acpaths="$acpaths -I${STAGING_DATADIR_NATIVE}/aclocal-$AUTOV"
113 fi 113 fi
114 # The aclocal directory could get modified by other processes
115 # uninstalling data from the sysroot. See Yocto #861 for details.
116 # We avoid this by taking a copy here and then files cannot disappear.
114 if [ -d ${STAGING_DATADIR}/aclocal ]; then 117 if [ -d ${STAGING_DATADIR}/aclocal ]; then
115 acpaths="$acpaths -I ${STAGING_DATADIR}/aclocal" 118 mkdir -p ${B}/aclocal-copy/
119 cp ${STAGING_DATADIR}/aclocal/* ${B}/aclocal-copy/
120 acpaths="$acpaths -I ${B}/aclocal-copy/"
116 fi 121 fi
117 # autoreconf is too shy to overwrite aclocal.m4 if it doesn't look 122 # autoreconf is too shy to overwrite aclocal.m4 if it doesn't look
118 # like it was auto-generated. Work around this by blowing it away 123 # like it was auto-generated. Work around this by blowing it away