Bug 6769

Summary: smart install with --attempt failed
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Hongxu Jia <hongxu.jia>
Component: coreAssignee: Hongxu Jia <hongxu.jia>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: mark.hatle, meta.mr.watcher, meta.watcher, ross.burton
Version: 1.7   
Target Milestone: 1.8 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Hongxu Jia 2014-09-26 11:20:14 UTC
1. vim local.conf
...
IMAGE_INSTALL_append = "shadow man-pages hdparm"
EXTRA_IMAGE_FEATURES += "doc-pkgs"
...

2. bitbake core-image-minimal
...
ERROR: Unable to install packages. Command '/home/jiahongxu/yocto/build-20140924-yocto/tmp/sysroots/x86_64-linux/usr/bin/smart --quiet --data-dir=/home/jiahongxu/yocto/build-20140924-yocto/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/var/lib/smart install --attempt -y libz-doc@i586 ncurses-doc@i586 man-doc@i586 udev-doc@i586 sysvinit-doc@i586 less-doc@i586 shadow-doc@i586 base-passwd-doc@i586 util-linux-doc@i586 groff-doc@i586 netbase-doc@i586 hdparm-doc@i586 libc6-doc@i586 base-files-doc@qemux86' returned 1:
error: file /usr/share/man/man5/passwd.5 from install of shadow-doc-4.2.1-r0.i586 conflicts with file from package man-pages-3.71-r0.i586
error: file /usr/share/man/man3/getspnam.3 from install of shadow-doc-4.2.1-r0.i586 conflicts with file from package man-pages-3.71-r0.i586


ERROR: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/jiahongxu/yocto/build-20140924-yocto/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.20644
ERROR: Task 7 (/home/jiahongxu/yocto/poky/meta/recipes-core/images/core-image-minimal.bb, do_rootfs) failed with exit code '1'
...
Comment 1 Hongxu Jia 2014-11-05 02:25:46 UTC
Merged into master:

commit 944fb2fd0268ee31be7acca4ad56681d5cbb7dfd
Author: Hongxu Jia <hongxu.jia@windriver.com>
Date:   Wed Oct 29 13:54:50 2014 +0800

    python-smartpm: report warn rather than error during install with --attempt
    
    With the following config and build image:
    ...
    IMAGE_INSTALL_append = "shadow man-pages"
    EXTRA_IMAGE_FEATURES += "doc-pkgs"
    ...
    
    There is an error during install with --attempt, and it breaks the build.
    ...
    |error: file /usr/share/man/man5/passwd.5 from install of
    shadow-doc-4.2.1-r0.i586 conflicts with file from package
    man-pages-3.71-r0.i586
    ...
    
    For complementary and 'attemptonly' package processing, we should make sure
    the warn rather than error messages reported.
    
    [YOCTO #6769]
    
    (From OE-Core rev: beb2e989e24e671fecd37805876dfb2375ee0df6)