<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>7631</bug_id>
          
          <creation_ts>2015-04-20 12:46:01 +0000</creation_ts>
          <short_desc>wic complains about not finding mkdosfs and has poor message</short_desc>
          <delta_ts>2015-10-09 15:41:02 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>deployment</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.9</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Phlip Balister">philip</reporter>
          <assigned_to name="Ed Bartosh">eduard.bartosh</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>daniel.alexandrux.istrate</cc>
    
    <cc>eduard.bartosh</cc>
          
          <qa_contact name="Daniel Istrate">daniel.alexandrux.istrate</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50412</commentid>
    <comment_count>0</comment_count>
    <who name="Phlip Balister">philip</who>
    <bug_when>2015-04-20 12:46:01 +0000</bug_when>
    <thetext>[balister@thuvia build]$ wic create ../meta-sdr/contrib/wks/sdimage-8G.wks  -e gnuradio-dev-image -o images/$MACHINE
Checking basic build environment...
Done.

Creating image(s)...

Error: A native program mkdosfs required to build the image was not found (see details above). Please make sure it&apos;s installed and try again.

This led me to try:

 bitbake mkdosfs-native


Which doesn&apos;t exist.

bitbake dosfstools-native

Did work.

Same issue for mcopy, run mtools-native.

I wouldn&apos;t be so picky, but the message says to check the details above and there are none.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50413</commentid>
    <comment_count>1</comment_count>
    <who name="Phlip Balister">philip</who>
    <bug_when>2015-04-20 12:47:20 +0000</bug_when>
    <thetext>I am using openembedded-core, not oe-classic.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50654</commentid>
    <comment_count>2</comment_count>
    <who name="Phlip Balister">philip</who>
    <bug_when>2015-04-30 14:51:36 +0000</bug_when>
    <thetext>Any interest in a simple bbclass images can inherit so that these utilities get built at image time?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50793</commentid>
    <comment_count>3</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-05-05 15:17:25 +0000</bug_when>
    <thetext>I&apos;m not sure we should create some artificial images as people might not use them. I&apos;d rather implement dependency check in wic.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50794</commentid>
    <comment_count>4</comment_count>
    <who name="Phlip Balister">philip</who>
    <bug_when>2015-05-05 15:44:53 +0000</bug_when>
    <thetext>Do we want wic running bitbake to fufill the dependencies? The key is
making it easy to build images, without turning bitbake into skynet.

I&apos;m also thinking we could add some tasks to a wic bbclass to run wic.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50800</commentid>
    <comment_count>5</comment_count>
    <who name="Phlip Balister">philip</who>
    <bug_when>2015-05-05 17:06:43 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; I&apos;m not sure we should create some artificial images as people might not use
&gt; them. I&apos;d rather implement dependency check in wic.

Ed, the idea is to use a bbclass that an image recipe would inherit that adds DEPENDS on the bits wic needs to assemble the image. THe downside is slightly longer build time for people using the image recipe, but not wic.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50819</commentid>
    <comment_count>6</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-05-06 11:23:13 +0000</bug_when>
    <thetext>Thank you for explaining your idea. That makes sense to do, but I doubt it can be accepted because of longer build time. Maintainers are really picky about buld time regressions nowadays :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50820</commentid>
    <comment_count>7</comment_count>
    <who name="Phlip Balister">philip</who>
    <bug_when>2015-05-06 11:36:57 +0000</bug_when>
    <thetext>Well, it screws my build time, because I need to remember what recipes to build so I can make an image. Doing it automatically saves time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51185</commentid>
    <comment_count>8</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-05-21 10:37:27 +0000</bug_when>
    <thetext>Would it be ok if I add optional command line option to wic to bake parted-native dosfstools-native and mtools-native?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51191</commentid>
    <comment_count>9</comment_count>
    <who name="Phlip Balister">philip</who>
    <bug_when>2015-05-21 12:10:18 +0000</bug_when>
    <thetext>1) The error message should tell the user what recipes to build so he does not need to hunt around.

2) I still prefer a wic class. This also gives us a path for letting bitbake run wic via a task append.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51604</commentid>
    <comment_count>10</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-06-10 10:59:38 +0000</bug_when>
    <thetext>Bug 7672 (In reply to comment #9)
&gt; 1) The error message should tell the user what recipes to build so he does
&gt; not need to hunt around.

Completely agree. Unfortunately this is hard to implement without integrating bitbake and wic. Bug 7672 is about this integration. As soon as users will have bitbake recipies for partitioned images it would be just a matter of adding dependencies to the recipe.

&gt; 2) I still prefer a wic class. This also gives us a path for letting bitbake
&gt; run wic via a task append.

wic class is too generic solution for this class from my point of view as some of wic runtime dependencies depend on the type of the image, bootloader and other image details.

PS: Added dependency to bug 7672</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52785</commentid>
    <comment_count>11</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-08-03 13:59:36 +0000</bug_when>
    <thetext>I decided to go simple way: I put executable-&gt;recipe pairs for all tools to misc.py and made exec_native_cmd to suggest how to build them.

Please, review: http://lists.openembedded.org/pipermail/openembedded-core/2015-August/108258.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52921</commentid>
    <comment_count>12</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-08-09 09:57:04 +0000</bug_when>
    <thetext>My fix is accepted: http://cgit.openembedded.org/openembedded-core/commit/?id=1274379c91ee8e2fb9fbb34a6445cd5767eb4a35</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53885</commentid>
    <comment_count>13</comment_count>
    <who name="Daniel Istrate">daniel.alexandrux.istrate</who>
    <bug_when>2015-09-09 13:36:15 +0000</bug_when>
    <thetext>Verified on master db92bc23880794be77373b0f2d8c26279dcecb84

[daniel@fedora-ws build]$ wic create directdisk -e core-image-minimal
Checking basic build environment...
Done.

Creating image(s)...

Error: A native program mkdosfs required to build the image was not found (see details above).

Please bake it with &apos;bitbake dosfstools-native&apos; and try again.

[daniel@fedora-ws build]$ bitbake dosfstools-native
Loading cache: 100% |#################################################################################| ETA:  00:00:00
Loaded 1319 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = &quot;1.27.1&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Fedora-21&quot;
TARGET_SYS        = &quot;x86_64-poky-linux&quot;
MACHINE           = &quot;genericx86-64&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.8+snapshot-20150909&quot;
TUNE_FEATURES     = &quot;m64 core2&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        
meta-yocto-bsp    = &quot;master:db92bc23880794be77373b0f2d8c26279dcecb84&quot;

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 72 tasks of which 71 didn&apos;t need to be rerun and all succeeded.
[daniel@fedora-ws build]$ 
[daniel@fedora-ws build]$ 
[daniel@fedora-ws build]$ wic create directdisk -e core-image-minimal
Checking basic build environment...
Done.

Creating image(s)...

Info: The new image(s) can be found here:
  /var/tmp/wic/build/directdisk-201509091633-sda.direct

The following build artifacts were used to create the image(s):
  ROOTFS_DIR:                   /home/daniel/poky-M2/build/tmp/work/genericx86_64-poky-linux/core-image-minimal/1.0-r0/rootfs
  BOOTIMG_DIR:                  /home/daniel/poky-M2/build/tmp/sysroots/genericx86-64/usr/share
  KERNEL_DIR:                   /home/daniel/poky-M2/build/tmp/deploy/images/genericx86-64
  NATIVE_SYSROOT:               /home/daniel/poky-M2/build/tmp/sysroots/x86_64-linux


The image(s) were created using OE kickstart file:
  /home/daniel/poky-M2/scripts/lib/wic/canned-wks/directdisk.wks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55128</commentid>
    <comment_count>14</comment_count>
    <who name="Daniel Istrate">daniel.alexandrux.istrate</who>
    <bug_when>2015-10-09 15:41:02 +0000</bug_when>
    <thetext>*** Bug 8474 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>