]> code.ossystems Code Review - openembedded-core.git/commit
autotools: Fix race over aclocal macro directory
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 5 Oct 2012 14:17:23 +0000 (14:17 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Oct 2012 11:03:28 +0000 (12:03 +0100)
commitf362cc419e5a480acd16c71c802636dbedc932d9
tree361809bf97f5ec89df1fa6f9569123b8a3b2bffc
parent8c5544c2311b080bb212efb7f6b804db63e125f5
autotools: Fix race over aclocal macro directory

The previous steps taken to address races over the aclocal macro directory and the removal
of files hasn't been sufficient since aclocal still looks at that directory as part of its
default search path. This patch passes the aclocal-copy directory into aclocal as its system
directory, removing any chance of it accessing the original aclocal directory.

Hopefully this should therefore fix the race issues once and for all.

In order to do this, cp-noerror needs to not error if the directory already exists.

Its also been noticed that aclocal defaults to using STAGING_DATADIR_NATIVE even when
building for the target. Only using the target directory would cause errors such as
missing pkgconfig macros (since we only depend on pkgconfig-native, not pkgconfig).
This patch processes both sets of macros maintaining existing behaviour. At a future
date we could look into potentially optimsing this.

[YOCTO #3216]

(From OE-Core rev: ad29b331e0d61708e68ef772cdb19154956fa67e)

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