Bug 5898 - Changing BAD_RECOMMENDATIONS/NO_RECOMMENDATIONS doesn't rebuild image
Summary: Changing BAD_RECOMMENDATIONS/NO_RECOMMENDATIONS doesn't rebuild image
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: deployment (show other bugs)
Version: 1.6
Hardware: x86 Multiple
: Undecided normal
Target Milestone: 1.6 M4
Assignee: Jonathan Liu
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-03-01 11:09 UTC by Jonathan Liu
Modified: 2014-03-06 09:48 UTC (History)
0 users

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 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.