Bug 5288 - Incremental RPM image generation fails
Summary: Incremental RPM image generation fails
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.5
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 1.5 M5
Assignee: Saul Wold
QA Contact: Ionut Chisanovici
URL:
Whiteboard:
Depends on:
Blocks: 4079
  Show dependency tree
 
Reported: 2013-09-30 07:55 UTC by Ionut Chisanovici
Modified: 2015-08-07 13:49 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ionut Chisanovici 2013-09-30 07:55:26 UTC
STATUS: FAILED
BUILD: 1.5_M5_RC5: 4d8ab87d25ea6e59dc88375813ef88ee0ac813d0
ENVIRONMENT: Fedora 19 / Ubuntu 13.04
STEPS TO REPRODUCE: When modify a package, there is no need to reconstruct the image from 
scratch, but instead simply use the packaging infrastructure and 
incrementally update it based on the "package".

1. Download poky source and prepare the build environment
2. Add the following line to conf/local.conf: 
   
INC_RPM_IMAGE_GEN = "1" 
3. Run "bitbake core-image-sato" to build a image and check the log.do_rootfs. 
4. Remove "x11vnc" from meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb. Re-run command "bitbake 
core-image-sato" and check the log.do_rootfs. 


EXPECTED OUTCOME: 
  
 For steps 4 the log.do_rootfs will show that the rootfs is not 
reconstruct when some packages changed. Only the modified packages will 
be added/removed.

Actual outcome:

After removing x11vnc package from meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb, bitbake command failed to build the image at do_rootfs:

 makedevs: /home/ionut/work/poky/build/tmp/work/qemux86_64-poky-linux/core-image-sato/1.0-r0/rootfs/dev/initctl: file can not be created with mknod!
| WARNING: /home/ionut/work/poky/build/tmp/work/qemux86_64-poky-linux/core-image-sato/1.0-r0/temp/run.do_rootfs.10838:1 exit 1 from
|   makedevs -r /home/ionut/work/poky/build/tmp/work/qemux86_64-poky-linux/core-image-sato/1.0-r0/rootfs -D $devtable
| ERROR: Function failed: do_rootfs (log file is located at /home/ionut/work/poky/build/tmp/work/qemux86_64-poky-linux/core-image-sato/1.0-r0/temp/log.do_rootfs.10838)
ERROR: Task 7 (/home/ionut/work/poky/meta/recipes-sato/images/core-image-sato.bb, do_rootfs) failed with exit code '1'
Comment 1 Saul Wold 2013-10-01 15:40:18 UTC
This appears to affect other places as well.
Comment 3 Ionut Chisanovici 2013-10-03 10:53:44 UTC
Hi,

The error doesn't appear anymore.