<?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>12765</bug_id>
          
          <creation_ts>2018-06-01 14:49:23 +0000</creation_ts>
          <short_desc>Race condition do_package_write_ipk fails due to empty package-split dir.</short_desc>
          <delta_ts>2018-06-24 09:32:22 +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>core</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>mips</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.6 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hains">hainsvdbosch</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>betacentauri</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>openatv</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80684</commentid>
    <comment_count>0</comment_count>
    <who name="Hains">hainsvdbosch</who>
    <bug_when>2018-06-01 14:49:23 +0000</bug_when>
    <thetext>Introduced with commit:
http://cgit.openembedded.org/openembedded-core/commit/?id=f04e6bd144deb0c8fe2742f66b18904b6619a502


ERROR: enigma2-plugin-systemplugins-autobouquetsmaker-2.1+gitAUTOINC+5ceda844ba-r2 do_package_write_ipk:
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:do_package_ipk(d)
     0003:
File: &apos;/home/hains/openpli-dm8000-oe-core/openembedded-core/meta/classes/package_ipk.bbclass&apos;, lineno: 87, function: do_package_ipk
     0083:
     0084:    os.chdir(oldcwd)
     0085:
     0086:    if error:
 *** 0087:        raise error
     0088:}
     0089:do_package_ipk[vardeps] += &quot;ipk_write_pkg&quot;
     0090:do_package_ipk[vardepsexclude] = &quot;BB_NUMBER_THREADS&quot;
     0091:
Exception: FileNotFoundError: [Errno 2] No such file or directory: &apos;/home/hains/openpli-dm8000-oe-core/build/tmp/work/dm8000-oe-linux/
enigma2-plugin-systemplugins-autobouquetsmaker/2.1+gitAUTOINC+5ceda844ba-r2/packages-split/enigma2-plugin-systemplugins-autobouquetsmaker&apos;

ERROR: enigma2-plugin-systemplugins-autobouquetsmaker-2.1+gitAUTOINC+5ceda844ba-r2 do_package_write_ipk: Function failed: do_package_ipk
ERROR: Logfile of failure stored in: /home/hains/openpli-dm8000-oe-core/build/tmp/work/dm8000-oe-linux/enigma2-plugin-systemplugins-autobouquetsmaker/
2.1+gitAUTOINC+5ceda844ba-r2/temp/log.do_package_write_ipk.20920
ERROR: Task (/home/hains/openpli-dm8000-oe-core/meta-openpli/recipes-openpli/e2openplugins/enigma2-plugin-systemplugins-autobouquetsmaker.bb:do_package_write_ipk)
failed with exit code &apos;1&apos;


This occurs with a lot more packages (allarch/machine arch).
packages-split directory does exist but it&apos;s empty when this error occur.
I noticed this happens with relative small packages only.
How smaller the package, the greater the chance this race condition occurs.

To fix this temporarily to finish build:
bitbake -c cleanall &lt;package name&gt;
and run build again.

Using latest bitbake, meta-openembedded and openembedded-core master branch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80706</commentid>
    <comment_count>1</comment_count>
    <who name="Hains">hainsvdbosch</who>
    <bug_when>2018-06-04 12:14:41 +0000</bug_when>
    <thetext>For test to fix race condition, i moved &apos;*do_package|*do_package.*|*do_package_setscene.*)&apos;
to the top of the loop.
So it&apos;s before the &apos;*_setscene*)&apos; now, as it was in the old situation before commit:
http://cgit.openembedded.org/openembedded-core/commit/?id=f04e6bd144deb0c8fe2742f66b18904b6619a502

I rebuild some packages by bumping PR in recipe and create new git commits in test repo and it&apos;s seems OK now so far.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80865</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-06-21 09:01:05 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=2869b56efa53d144f4641b06e9780206c7100567 and following patches</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80873</commentid>
    <comment_count>3</comment_count>
    <who name="Hains">hainsvdbosch</who>
    <bug_when>2018-06-21 10:48:01 +0000</bug_when>
    <thetext>Tested and OK now.
Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80911</commentid>
    <comment_count>4</comment_count>
    <who name="">betacentauri</who>
    <bug_when>2018-06-24 09:28:55 +0000</bug_when>
    <thetext>Can you merge that into sumo branch?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>