Bug 870 - do_rootfs_ipk failed for atom-pc machine
Summary: do_rootfs_ipk failed for atom-pc machine
Status: VERIFIED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 1.0
Hardware: x86 Multiple
: High major
Target Milestone: 1.1
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-03-14 22:57 UTC by Lianhao Lu
Modified: 2011-08-24 20:47 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lianhao Lu 2011-03-14 22:57:05 UTC
Setting the MACHINE to atom-pc, with the PACKAGE_CLASSES="package_ipk", "bitbake poky-image-minimal" failed in do_rootfs_ipk:

......
Configuring task-poky-boot.
Configuring run-postinsts.
Collected errors:
 * opkg_conf_parse_file: Duplicate src declaration (oe-i586 file:/home/lulianhao/poky-build/1.0/build/tmp/deploy/ipk/i586). Skipping.
+ '[' '!' -z '' ']'
+ export D=/home/lulianhao/poky-build/1.0/build/tmp/work/atom-pc-poky-linux/poky-image-minimal-1.0-r0/rootfs
+ D=/home/lulianhao/poky-build/1.0/build/tmp/work/atom-pc-poky-linux/poky-image-minimal-1.0-r0/rootfs
+ export OFFLINE_ROOT=/home/lulianhao/poky-build/1.0/build/tmp/work/atom-pc-poky-linux/poky-image-minimal-1.0-r0/rootfs
+ echo ''

+ do_exit=1
+ for keyword_die in '"exit 1"' '"Collected errors"' ERR Fail
+ for keyword_die in '"exit 1"' '"Collected errors"' ERR Fail
+ test 1 = 1
+ exit 1
ERROR: Function 'do_rootfs' failed (see /home/lulianhao/poky-build/1.0/build/tmp/work/atom-pc-poky-linux/poky-image-minimal-1.0-r0/temp/log.do_rootfs.29743 for further information)
Comment 1 Lianhao Lu 2011-03-14 23:03:59 UTC
This is because there are duplicate values in PACKAGE_ARCHS for atom-pc machine settings, which results the log_check for ipk failed.

We need to remove those duplicate values when generating the opkg configuration files.
Comment 2 Lianhao Lu 2011-03-15 18:37:11 UTC
According to RP, the PACKAGE_ARCHS should never have duplicates in it. He committed a quick workaround http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=bd161f759461d4fc96ad78cb60861e6ea34f0529 into master. And proposed a better one on the OE Core list as it needs discussion.
Comment 3 Richard Purdie 2011-03-21 07:23:13 UTC
Between Joshua Lock's commits and mine, we have the duplicates removed and also sanity tests in place to detect duplicates, hence resolving this as fixed.
Comment 4 Lianhao Lu 2011-08-24 20:47:33 UTC
The following patch is used to check the duplication of PACKAGE_ARCHS.
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=e235357841311a4681c747cebcc5e51940aec606