Bug 10998

Summary: IMAGE_FSTYPES=btrfs requires udev-native to build
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Francisco Pedraza <francisco.j.pedraza.gonzalez>
Component: devtools / tool chainAssignee: Ed Bartosh <eduard.bartosh>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: jose.perez.carranza, meta.mr.watcher, meta.watcher
Version: 2.3   
Target Milestone: 2.3 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on:    
Bug Blocks: 10745    

Description Francisco Pedraza 2017-01-31 21:37:35 UTC
Bitbake fails when trying to compile adding all the IMAGE_FSTYPES, requires udev-native.

Steps to reproduce
1. Edit conf/local.conf file, adding the following variable.
IMAGE_FSTYPES += "btrfs"

as per images types [1] and mega manual describes [2]

2. Compile a minimal image
$ bitbake core-image-minimal

Expected Result:
Should compile successfully

Actual Result:

The following error message is displayed:

ERROR: Nothing PROVIDES 'udev-native' (but virtual:native:/home/fjpedraz/Debugging/poky/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.8.5.bb DEPENDS on or otherwise requires it). Close matches:
  unifdef-native
  db-native
  guile-native
ERROR: Required build target 'core-image-minimal' has no buildable providers.
Missing or unbuildable dependency chain was: ['core-image-minimal', 'btrfs-tools-native', 'udev-native']


Links:
[1] - http://www.yoctoproject.org/docs/2.2/mega-manual/mega-manual.html#var-IMAGE_FSTYPES
[2] - http://www.yoctoproject.org/docs/2.2/mega-manual/mega-manual.html#var-IMAGE_TYPES
Comment 1 Ed Bartosh 2017-02-22 12:53:54 UTC
The fix is in ross/mut already, soon to be merged: https://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=ross/mut&id=11dab5eb7388f51e8e4946022b2edb0b5bdc5536
Comment 2 Ed Bartosh 2017-03-02 11:27:49 UTC
the fix has been merged to master
Comment 3 Jose Perez C 2017-03-14 20:21:45 UTC
Reopining bug as is still failing, just the error is different now:

commit: 6e20b31d5d17133e0fca086e12a0ad06ab5c4cc8


ERROR: core-image-minimal-1.0-r0 do_image_btrfs: Rootfs is too small for BTRFS (Rootfs Actual Size: 9740, BTRFS Minimum Size: 16384)
ERROR: core-image-minimal-1.0-r0 do_image_btrfs: Function failed: do_image_btrfs (log file is located at /home/jgperezc/sandbox/poky-bugs/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image_btrfs.28944)
ERROR: Logfile of failure stored in: /home/jgperezc/sandbox/poky-bugs/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image_btrfs.28944
ERROR: Task (/home/jgperezc/sandbox/poky-bugs/meta/recipes-core/images/core-image-minimal.bb:do_image_btrfs) failed with exit code '1'
Comment 4 Ed Bartosh 2017-03-15 09:35:03 UTC
This bug is fixed as btrfs doesn't require dev-native to build anymore.

Please, create new bug for the new issue. The issue doesn't have anything in common with this bug.
Comment 5 Jose Perez C 2017-03-15 14:52:08 UTC
(In reply to comment #4)
> This bug is fixed as btrfs doesn't require dev-native to build anymore.
> 
> Please, create new bug for the new issue. The issue doesn't have anything in
> common with this bug.

Bug 11163 created