Bug 6769 - smart install with --attempt failed
Summary: smart install with --attempt failed
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.7
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.8 M2
Assignee: Hongxu Jia
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-09-26 11:20 UTC by Hongxu Jia
Modified: 2014-11-05 02:25 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)