Bug 4504

Summary: base-files shouldn't be installed in core-image-minimal-initramfs
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Stefan Stanacar <sstncr>
Component: coreAssignee: Saul Wold <sgw>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: alexandrux.palalau, meta.mr.watcher, meta.watcher
Version: 1.5   
Target Milestone: 1.5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Stefan Stanacar 2013-05-16 13:53:03 UTC
master:a5f4e5fd991a15d2d9bf48768d214bdc5a68e33c 

base-files is brought in by rpm-postinsts and it shouldn't be in initramfs images

$ bitbake -g core-image-minimal-initramfs
$ grep postinsts package-depends.dot
"core-image-minimal-initramfs" -> "rpm-postinsts" [style=dashed]
$ grep base-files pn-depends
"base-files" [label="base-files :3.0.14-r73\n/home/stefans/yocto/poky/meta/recipes-core/base-files/base-files_3.0.14.bb"]
"rpm-postinsts" -> "base-files" [style=dashed]
"base-files" -> "base-files" [style=dashed]
$ grep base-files package-depends.dot 
"base-files-doc" [label="base-files-doc(base-files) :3.0.14-r73\n/home/stefans/yocto/poky/meta/recipes-core/base-files/base-files_3.0.14.bb"]
"base-files" [label="base-files :3.0.14-r73\n/home/stefans/yocto/poky/meta/recipes-core/base-files/base-files_3.0.14.bb"]
"base-files-dbg" [label="base-files-dbg(base-files) :3.0.14-r73\n/home/stefans/yocto/poky/meta/recipes-core/base-files/base-files_3.0.14.bb"]
"base-files-dev" [label="base-files-dev(base-files) :3.0.14-r73\n/home/stefans/yocto/poky/meta/recipes-core/base-files/base-files_3.0.14.bb"]
"rpm-postinsts" -> "base-files" [style=dashed]
"base-files-dev" -> "base-files" [style=dashed]

This isn't the case in danny.
Comment 1 Stefan Stanacar 2013-05-16 15:41:20 UTC
But why core-image-minimal-initramfs depends on rpm-postinsts?

I _assume_ that it's something like this:

In image.bbclass we have:

RDEPENDS += "${IMAGE_INSTALL} ${LINGUAS_INSTALL} ${NORMAL_FEATURE_INSTALL} ${ROOTFS_BOOTSTRAP_INSTALL}"

...


ROOTFS_BOOTSTRAP_INSTALL = "${@base_contains("IMAGE_FEATURES", "package-management", "", "${ROOTFS_PKGMANAGE_BOOTSTRAP}",d)}"


and in rootfs_rpm.bbclass

ROOTFS_PKGMANAGE_BOOTSTRAP = "rpm-postinsts"


which in danny used to be empty.
Comment 3 Alexandru Palalau 2013-05-21 10:40:56 UTC
Verified on master branch.
Commit ID:6271ac326d08fb3e9b4c2008b796233ee11a83e4