]> code.ossystems Code Review - openembedded-core.git/commit
staging: Fix autoconf-native rebuild failure
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Oct 2021 15:04:29 +0000 (16:04 +0100)
committerAnuj Mittal <anuj.mittal@intel.com>
Tue, 2 Nov 2021 02:41:25 +0000 (10:41 +0800)
commitf79fa476c0d0d57ab5ce59728fdb9fff4cd54df1
tree700d388d4143c239000cdc96b43ba020f8225723
parent292cd79bfb9a9e62f1cb4afaef7d8c7f2c4aac98
staging: Fix autoconf-native rebuild failure

When rebuilds are triggered, autoconf-native can fail with:

| DEBUG: Executing shell function update_gnu_config
| install: cannot stat '[BUILDPATH]tmp/work/x86_64-linux/autoconf-native/2.71-r0/recipe-sysroot-native/usr/share/gnu-config/config.guess': No such file or directory

which is due to update_gnu_config running before extend_recipe_sysroot.
This only happens rarely since usually the prepare_recipe_sysroot
function would already have set things up and only in the invalidated
task hash cases does this rebuild in this way from configure only.

Fix the code to prepend this function instead of appending which
resolves the ordering issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b9535f513366536b13d0522058f517d2e04451b5)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/classes/staging.bbclass