<?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>11809</bug_id>
          
          <creation_ts>2017-07-19 15:01:02 +0000</creation_ts>
          <short_desc>Possible race in xcb recipes</short_desc>
          <delta_ts>2018-03-09 03:57:42 +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>graphics</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>major</bug_severity>
          <target_milestone>2.5 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock">joshuagloe</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>juro.bystricky</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>75135</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-07-19 15:01:02 +0000</bug_when>
    <thetext>We&apos;re seeing what looks like a race in the xcb recipes:

ERROR: libxcb-1.12-r0 do_prepare_recipe_sysroot: 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;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/meta/classes/staging.bbclass&apos;, lineno: 510, function: extend_recipe_sysroot
     0506:                    dest = newmanifest[l]
     0507:                    if l.endswith(&quot;/&quot;):
     0508:                        staging_copydir(l, targetdir, dest, seendirs)
     0509:                        continue
 *** 0510:                    staging_copyfile(l, targetdir, dest, postinsts, seendirs)
     0511:
     0512:    for f in fixme:
     0513:        if f == &apos;&apos;:
     0514:            staging_processfixme(fixme[f], recipesysroot, recipesysroot, recipesysrootnative, d)
File: &apos;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/meta/classes/staging.bbclass&apos;, lineno: 151, function: staging_copyfile
     0147:        os.symlink(linkto, dest)
     0148:        #bb.warn(c)
     0149:    else:
     0150:        try:
 *** 0151:            os.link(c, dest)
     0152:        except OSError as err:
     0153:            if err.errno == errno.EXDEV:
     0154:                bb.utils.copyfile(c, dest)
     0155:            else:
Exception: FileExistsError: [Errno 17] File exists: &apos;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/sysroots-components/core2-64/xcb-proto/usr/lib/xcb-proto/xcbgen/__pycache__/matcher.cpython-35.pyc&apos; -&gt; &apos;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/work/core2-64-poky-linux/libxcb/1.12-r0/recipe-sysroot/usr/lib/xcb-proto/xcbgen/__pycache__/matcher.cpython-35.pyc&apos;

ERROR: libxcb-1.12-r0 do_prepare_recipe_sysroot: Function failed: extend_recipe_sysroot
ERROR: Logfile of failure stored in: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/build/tmp/work/core2-64-poky-linux/libxcb/1.12-r0/temp/log.do_prepare_recipe_sysroot.9322
NOTE: recipe libxcb-1.12-r0: task do_prepare_recipe_sysroot: Failed
ERROR: Task (/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-extras/build/meta/recipes-graphics/xorg-lib/libxcb_1.12.bb:do_prepare_recipe_sysroot) failed with exit code &apos;1&apos;

Transient link to AB output: https://autobuilder.yocto.io/builders/nightly-qa-extras/builds/361/steps/BuildImages_14/logs/stdio

Note we&apos;ve observed this a couple of times on the Yocto Autobuilder since consolidating all of the nightly-qa-* builders into nightly-qa-extras.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75161</commentid>
    <comment_count>1</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2017-07-19 20:34:28 +0000</bug_when>
    <thetext>Looks very much like:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=11631
so not necessarily a race, but multiple providers?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76538</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-09-05 16:46:09 +0000</bug_when>
    <thetext>Can&apos;t see how this can happen as that file is by and only shipped by xcb-proto.

Looks like we need to resolve bug 11631 to solve this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77276</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-10-02 16:42:22 +0000</bug_when>
    <thetext>That bug is now fixed so if this happens again we&apos;ll either get told if something else is shipping them, or if there&apos;s genuinely another bug.

I&apos;ll also note that I haven&apos;t seen this bug since it was first reported so maybe it has  be resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79513</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-02-20 20:10:56 +0000</bug_when>
    <thetext>Saw it again recently. :rageface: :tableflip:</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79696</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-03-05 02:58:41 +0000</bug_when>
    <thetext>Figured it out, patch out shortly</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79771</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-03-09 03:57:42 +0000</bug_when>
    <thetext>Fixed in oe-core 6f6a2b5ff7ec23bd3782f0c3521f3576101cbc9d.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>