]> code.ossystems Code Review - openembedded-core.git/commit
autotools: fix traversal bug in aclocal copying
authorChristopher Larson <chris_larson@mentor.com>
Sun, 20 Sep 2015 05:19:24 +0000 (22:19 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 21 Sep 2015 22:05:42 +0000 (23:05 +0100)
commite6d4f8198a8708f54fc17333ae643b51ed9100b6
tree05f233d42ccc6d60b6bb1379d91f8f72a6947f7e
parentf4d7f7075b3da1a3a37d6bb3e19613e7a068a63c
autotools: fix traversal bug in aclocal copying

The logic is supposed to avoid following dependencies when we depend on
a target recipe which depends on a native recipe. The problem is, we were
marking the dep (the native recipe) as already processed when we avoided
traversal, meaning that even when that recipe would be pulled in via
a different dependency, we skipped it there too, and whether it was skipped
entirely depended on the non-deterministic dep processing order. If the first
one to be encountered was via the indirect target dep, it wouldn't end up in
configuredeps, otherwise it would.

As we want to avoid traversing that particular dependency relationship, not
*every* dependency on the native, we should continue, but not add it to done,
so it can be traversed from other avenues.

This fixes an intermittent bug in some of my non-GPLv3 builds, where one
dependency upon gettext-minimal-native was skipped, but others should not have
been, resulting in it being removed from configuredeps entirely, and no
gettext macros being available.

Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/autotools.bbclass