<?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>11295</bug_id>
          
          <creation_ts>2017-04-04 21:54:05 +0000</creation_ts>
          <short_desc>do_image_wic: fails when rm_work is active</short_desc>
          <delta_ts>2017-04-12 09:33:08 +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>Scripts and Tools</component>
          <version>2.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</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>2.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="brian avery">brian.avery</reporter>
          <assigned_to name="Ed Bartosh">eduard.bartosh</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
          
          
          <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>72091</commentid>
    <comment_count>0</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2017-04-04 21:54:05 +0000</bug_when>
    <thetext>add the following to local.conf:
IMAGE_FSTYPES+= &quot; wic tar.bz2 &quot;                                                                                               INHERIT += &quot; rm_work &quot;

get error like:
ERROR: core-image-minimal-1.0-r0 do_image_wic: Error executing a python function in exec_python_func()
autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: &apos;exec_python_func() autogenerated&apos;, lineno: 2, function: &lt;module&gt;
     0001:
 *** 0002:extend_recipe_sysroot(d)
     0003:
File: &apos;/big/src/myBugs/poky/meta/classes/staging.bbclass&apos;, lineno: 592, function: extend_recipe_sysroo$
     0588:                    dest = newmanifest[l]
     0589:                    if l.endswith(&quot;/&quot;):
     0590:                        staging_copydir(l, targetdir, dest, seendirs)
     0591:                        continue
 *** 0592:                    staging_copyfile(l, targetdir, dest, postinsts, seendirs)
     0593:
     0594:    for f in fixme:
     0595:        if f == &apos;&apos;:
     0596:            staging_processfixme(fixme[f], recipesysroot, recipesysroot, recipesysrootnative$
 d)
File: &apos;/big/src/myBugs/poky/meta/classes/staging.bbclass&apos;, lineno: 233, function: staging_copyfile
     0229:        os.symlink(linkto, dest)
     0230:        #bb.warn(c)
     0231:    else:
     0232:        try:
 *** 0233:            os.link(c, dest)
     0234:        except OSError as err:
     0235:            if err.errno == errno.EXDEV:
     0236:                bb.utils.copyfile(c, dest)
     0237:            else:
Exception: FileExistsError: [Errno 17] File exists: &apos;/big/src/myBugs/RUN/PSEUDO-NATIVE/build/tmp/sysro$
ts-components/i586/glibc-initial/usr/lib/crtn.o&apos; -&gt; &apos;/big/src/myBugs/RUN/PSEUDO-NATIVE/build/tmp/work/$
emux86-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot/usr/lib/crtn.o&apos;

ERROR: core-image-minimal-1.0-r0 do_image_wic: Function failed: extend_recipe_sysroot
ERROR: Logfile of failure stored in: /big/src/myBugs/RUN/PSEUDO-NATIVE/build/tmp/work/qemux86-poky-linu
x/core-image-minimal/1.0-r0/temp/log.do_image_wic.33444
ERROR: Task (/big/src/myBugs/poky/meta/recipes-core/images/core-image-minimal.bb:do_image_wic) failed w
ith exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 3186 tasks of which 2487 didn&apos;t need to be rerun and 1 failed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72135</commentid>
    <comment_count>1</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-04-06 14:54:53 +0000</bug_when>
    <thetext>this should be fixed by these 3 commits:
http://lists.openembedded.org/pipermail/openembedded-core/2017-April/135281.html
http://lists.openembedded.org/pipermail/openembedded-core/2017-April/135291.html
http://lists.openembedded.org/pipermail/openembedded-core/2017-April/135299.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72377</commentid>
    <comment_count>2</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-04-12 09:33:08 +0000</bug_when>
    <thetext>All 3 patches have been merged into master.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>