]> code.ossystems Code Review - openembedded-core.git/commitdiff
autotools.bbclass: Make builds deterministic
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Feb 2012 13:05:09 +0000 (13:05 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 24 Feb 2012 00:11:32 +0000 (00:11 +0000)
We need to ensure any aclocal-copy directory is removed before we s
earch for .m4 files, else the locations .m4 files are found from can
vary depending on whether its the first or second time we run configure.

Clearing any existing aclocal-copy directory before we start resolves
this issue and makes builds deterministic again.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/autotools.bbclass

index e22ea6837f819a1bfab21ec389321251ff174621..a8d2b5f32e7bc547ed3bf78d5f75592b36bdcff6 100644 (file)
@@ -102,6 +102,8 @@ autotools_do_configure() {
                if [ -e ${S}/configure.in -o -e ${S}/configure.ac ]; then
                        olddir=`pwd`
                        cd ${S}
+                       # Remove any previous copy of the m4 macros
+                       rm -rf ${B}/aclocal-copy/
                        if [ x"${acpaths}" = xdefault ]; then
                                acpaths=
                                for i in `find ${S} -maxdepth 2 -name \*.m4|grep -v 'aclocal.m4'| \