Bug 7260

Summary: do_rootfs fails with debian package backend and multilib enabled
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Chen Qi <Qi.Chen>
Component: coreAssignee: Chen Qi <Qi.Chen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: anibal.limon, meta.mr.watcher, meta.watcher, ross.burton, sgw
Version: 1.8   
Target Milestone: 1.8 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Chen Qi 2015-01-28 08:49:20 UTC
Error messages
---------------
ERROR: Unable to install packages. Command '/buildarea2/chenqi/poky/build-systemd/tmp/sysroots/x86_64-linux/usr/bin/apt-get  install --force-yes --allow-unauthenticated run-postinsts packagegroup-core-boot' returned 100:
Reading package lists...
Building dependency tree...
Reading state information...
W: Unable to read /buildarea2/chenqi/poky/build-systemd/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/apt/preferences.d/ - DirectoryExists (2: No such file or directory)
E: Unable to locate package packagegroup-core-boot

ERROR: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /buildarea2/chenqi/poky/build-systemd/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.27487
ERROR: Task 7 (/buildarea2/chenqi/poky/meta/recipes-core/images/core-image-minimal.bb, do_rootfs) failed with exit code '1'

Steps to reproduce:
-------------------
1. Enable multilib in local.conf; enable package_deb in local.conf
MACHINE ??= "qemux86-64"
PACKAGE_CLASSES ?= "package_deb"
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"

2. bitbake core-image-minimal

Simple Analysis
----------------
The package_manager.py is not setting up apt.conf file correctly.

//Chen Qi
Comment 1 Chen Qi 2015-03-11 02:11:43 UTC
Module: openembedded-core.git
Branch: master
Commit: d140d556ae30b6dbd0ffce8882c3e22b17050820
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=d140d556ae30b6dbd0ffce8882c3e22b17050820