Bug 8670 - enhance command_variables() in image.bbclass
Summary: enhance command_variables() in image.bbclass
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.1 M3
Assignee: Chen Qi
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-11-10 06:50 UTC by Robert Yang
Modified: 2016-03-18 09:04 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Yang 2015-11-10 06:50:28 UTC
Currently:

def command_variables(d):
    return ['ROOTFS_POSTPROCESS_COMMAND','ROOTFS_PREPROCESS_COMMAND','ROOTFS_POSTINSTALL_COMMAND','OPKG_PREPROCESS_COMMANDS','OPKG_POSTPROCESS_COMMANDS','IMAGE_POSTPROCESS_COMMAND',
            'IMAGE_PREPROCESS_COMMAND','ROOTFS_POSTPROCESS_COMMAND','POPULATE_SDK_POST_HOST_COMMAND','POPULATE_SDK_POST_TARGET_COMMAND','SDK_POSTPROCESS_COMMAND','RPM_PREPROCESS_COMMANDS',        
            'RPM_POSTPROCESS_COMMANDS']


do_rootfs[vardeps] += "${@rootfs_variables(d)}"

but do_populate_sdk doesn't depend on them, and it can't since a few of them are not related to do_populate_sdk, we may need separate them out (which are for do_rootfs and which are for do_populate_sdk), currently, the problem is when you update SDK_POSTPROCESS_COMMAND, bitbake meta-toolchain doesn't get re-run.
Comment 1 Chen Qi 2016-03-18 09:04:00 UTC
commit fad63e3ab42d03f0802e8d772b3d28ba9e704ced
Author: Chen Qi <Qi.Chen@windriver.com>
Date:   Tue Feb 16 15:06:05 2016 +0800

    coreutils: fix problem with acl for 6.9 version
    
    If 'acl' is not in DISTRO_FEATURES, building coreutils 6.9 would sometimes
    fail. The problem could be reproduced by executing the following command.
    
    `bitbake acl && bitbake coreutils -c configure && bitbake acl -c cleansstate
    && bitbake coreutils -c compile'
    
    Fix this problem by setting the correct value for the 'acl' PACKAGECONFIG.
    
    [YOCTO #8906]
    
    (From OE-Core rev: a9004ff3f8de83d22d9159a9f103e2773e927a0b)
    
    Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>