Bug 5898

Summary: Changing BAD_RECOMMENDATIONS/NO_RECOMMENDATIONS doesn't rebuild image
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Jonathan Liu <net147>
Component: deploymentAssignee: Jonathan Liu <net147>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided    
Version: 1.6   
Target Milestone: 1.6 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Jonathan Liu 2014-03-01 11:09:26 UTC
Build Configuration:
BB_VERSION        = "1.21.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Arch-rolling"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "1.5+snapshot-20140301"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta
meta-yocto
meta-yocto-bsp    = "master:8f36e1ef1afd10594391596391564e8904a840f2"

Changes to conf/local.conf:
PACKAGE_CLASSES = "package_ipk"
DISTRO_FEATURES_append = " systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
VIRTUAL-RUNTIME_init_manager = "systemd"
INHERIT += "buildhistory"
BUILDHISTORY_COMMIT = "1"

1. bitbake core-image-minimal
2. grep udev-hwdb buildhistory/images/qemux86/eglibc/core-image-minimal/installed-package-names.txt, notice udev-hwdb is included
3. Add the following to conf/local.conf:
BAD_RECOMMENDATIONS += "udev-hwdb"
4. bitbake core-image-minimal, notice the image isn't rebuilt
5. grep udev-hwdb buildhistory/images/qemux86/eglibc/core-image-minimal/installed-package-names.txt, notice udev-hwdb is still included
6. bitbake -c cleanall core-image-minimal
7. bitbake core-image-minimal
8. grep udev-hwdb buildhistory/images/qemux86/eglibc/core-image-minimal/installed-package-names.txt, notice udev-hwdb is now excluded as expected

Similarly, changes to NO_RECOMMENDATIONS don't cause the image to be rebuilt.