Bug 2906

Summary: Incremental RPM image generation doesn't work with 1.3 20120801 build
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Yi Zhao <yi.zhao>
Component: coreAssignee: Robert Yang <liezhi.yang>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jessica.zhang, laurentiu.serban, liang.li2, meta.mr.watcher, meta.watcher, richard.purdie, sgw, song.liu, zhenfeng.zhao
Version: 1.3   
Target Milestone: 1.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Yi Zhao 2012-08-07 06:43:18 UTC
Tree/Branch: poky/master
Commit: 3309cf42d314f0a26079a11836c6b9b9bb5f253e


Incremental RPM image generation doesn't work with 20120801 build

Steps:
#########
1. Add INC_RPM_IMAGE_GEN = "1" to local.conf
2. Run "bitbake core-image-sato" to build a image.
3. Modify bzip2_1.0.6.bb file, add some comments. Run "bitbake bzip2 -ccleansstate"
4. Run "bitbake core-image-sato" again.
###########


In step 4, I got the following error:
##########
DEBUG: Executing shell function do_rootfs
  Generating solve db for /buildarea2/yzhao-test/poky-build/build-qemumips/tmp/deploy/rpm/qemumips...
)>Generating solve db for /buildarea2/yzhao-test/poky-build/build-qemumips/tmp/deploy/rpm/mips32...
  Generating solve db for /buildarea2/yzhao-test/poky-build/build-qemumips/tmp/deploy/rpm/all...
  Generating solve db for /buildarea2/yzhao-test/poky-build/build-qemumips/tmp/deploy/rpm/x86_64-nativesdk...
6>Generating solve db for /buildarea2/yzhao-test/poky-build/build-qemumips/tmp/deploy/rpm/all...
  Processing locale-base-en-us...
  Processing locale-base-en-gb...
  Processing task-core-boot...
  Processing task-core-apps-x11-pimlico...
8>Processing sudo...
5>Processing task-core-sdk...
  Processing task-core-tools-testapps...
  Processing at...
  Processing task-core-apps-x11-core...
  Processing cups...
  Processing rpm...
  Processing task-core-apps-console...
  Processing task-core-standalone-sdk-target...
  Processing service...
  Processing task-core-x11-sato...
  Processing task-core-apps-x11-games...
  Processing task-core-x11-base...
  Processing screen...
  Processing zypper...
  Processing polkit...
  Processing task-core-tools-debug...
  Processing shadow...
  Processing cronie...
  Processing task-core-tools-profile...
  Processing task-core-qt-demos...
  Processing task-core-ssh-openssh...
  Processing task-base-extended...
0>Processing kernel-dev...
  Manifest: /buildarea2/yzhao-test/poky-build/build-qemumips/tmp/work/qemumips-poky-linux/core-image-sato-sdk-1.0-r0/rootfs/install/install.manifest
  Installing base dependencies first (base-passwd, base-files and shadow) since rpm is special
  Installing main solution manifest (/buildarea2/yzhao-test/poky-build/build-qemumips/tmp/work/qemumips-poky-linux/core-image-sato-sdk-1.0-r0/rootfs/install/total_solution.manifest)
  Preparing...                ##################################################
  kernel-module-ts-kmp        ##################################################
  perl                        ##################################################
  python-core                 ##################################################
  kernel-module-xfrm-user     ##################################################
  kernel-module-nls-koi8-u    ##################################################
  util-linux-swaponoff        ##################################################
...
...
  task-base-pcmcia            ##################################################
  task-base-usbgadget         ##################################################
  task-base-wifi              ##################################################
  task-base-zeroconf          ##################################################
  task-core-apps-console      ##################################################
  task-core-apps-x11-core     ##################################################
  task-core-apps-x11-games    ##################################################
  task-core-apps-x11-pimlico  ##################################################
  task-core-boot              ##################################################
  task-core-tools-debug       ##################################################
  task-core-tools-profile     ##################################################
2>task-core-tools-testapps    ##################################################
  task-core-x11-base          ##################################################
  task-core-x11-sato          ##################################################
  task-distro-base            ##################################################
  task-machine-base           ##################################################
  Running useradd commands...
  Note: username xuser already exists, not re-creating it
  xserver-nodm-init           ##################################################
   System startup links for /buildarea2/yzhao-test/poky-build/build-qemumips/tmp/work/qemumips-poky-linux/core-image-sato-sdk-1.0-r0/rootfs/etc/init.d/xserver-nodm already exist.
(>xserver-xf86-config         ##################################################
  zypper                      ##################################################
4>ERROR: Function failed: do_rootfs (see /buildarea2/yzhao-test/poky-build/build-qemumips/tmp/work/qemumips-poky-linux/core-image-sato-sdk-1.0-r0/temp/log.do_rootfs.14468 for further in  formation)
#############
Comment 1 Robert Yang 2012-08-20 06:23:10 UTC
*** Bug 2969 has been marked as a duplicate of this bug. ***
Comment 2 Robert Yang 2012-08-20 15:27:44 UTC
The current implementation depends on the saved manifest files, it would break easily when the manifest changes, I will change its implementaion to not depend on the manifest files any more, which would make it much more stable:-).
Comment 4 liang li 2012-08-23 06:31:19 UTC
no such errors on:
git info:19ff55a53b436d463f9577adaed15be77708f0d2
git branch:poky/master
test hosts: ubuntu 11.10 x86_64 (qemumips sato image)