<?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>7436</bug_id>
          
          <creation_ts>2015-03-09 16:01:35 +0000</creation_ts>
          <short_desc>kbd build race</short_desc>
          <delta_ts>2016-09-22 15:08:29 +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>1.8</version>
          <rep_platform>All</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.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Maxin B. John">maxin.john</assigned_to>
          <cc>jku</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</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>49305</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-03-09 16:01:35 +0000</bug_when>
    <thetext>| make[3]: Entering directory `/data/poky-master/tmp/work/ppc7400-poky-linux/kbd/2.0.2-r0/build/data&apos;
| cp -r /data/poky-master/tmp/work/ppc7400-poky-linux/kbd/2.0.2-r0/kbd-2.0.2/data/keymaps keymaps_Z
| cp -r /data/poky-master/tmp/work/ppc7400-poky-linux/kbd/2.0.2-r0/kbd-2.0.2/data/consolefonts consolefonts_Z
| cp -r /data/poky-master/tmp/work/ppc7400-poky-linux/kbd/2.0.2-r0/kbd-2.0.2/data/partialfonts partialfonts_Z
| chmod -R u+w keymaps_Z
| chmod -R u+w consolefonts_Z partialfonts_Z
| cd keymaps_Z &amp;&amp; gzip -f -n -9 */*.map */*/*.map
| chmod: cannot read directory `consolefonts_Z/README.Cyrillic&apos;: Not a directory
| make[3]: *** [consolefonts_Z] Error 1
| make[3]: *** Waiting for unfinished jobs....
| make[3]: Leaving directory `/data/poky-master/tmp/work/ppc7400-poky-linux/kbd/2.0.2-r0/build/data&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52485</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-07-20 16:17:06 +0000</bug_when>
    <thetext>Or,

| make  install-data-hook
| make[3]: Entering directory &apos;/data/poky-master/tmp/work/corei7-64-poky-linux/kbd/2.0.2-r0/build/data&apos;
| cp -r /data/poky-master/tmp/work/corei7-64-poky-linux/kbd/2.0.2-r0/kbd-2.0.2/data/keymaps keymaps_Z
| cp -r /data/poky-master/tmp/work/corei7-64-poky-linux/kbd/2.0.2-r0/kbd-2.0.2/data/consolefonts consolefonts_Z
| chmod -R u+w keymaps_Z
| chmod: cannot read directory &apos;keymaps_Z/i386/qwerty/hypermap.m4&apos;: Not a directory
| Makefile:506: recipe for target &apos;keymaps_Z&apos; failed
| make[3]: *** [keymaps_Z] Error 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54775</commentid>
    <comment_count>2</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2015-09-29 09:02:12 +0000</bug_when>
    <thetext>Ross: I have tried and failed to re-create the kbd build error in a 16 core build machine. Is it acceptable to disable parallel make as a temporary work-around (PARALLEL_MAKE = &quot;&quot;) ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54781</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-09-29 12:18:42 +0000</bug_when>
    <thetext>It&apos;s almost certainly a race in the $(KEYMAPDIR)_Z and $(FONTDIR)_Z in data/Makefile.am, but for now PARALLEL_MAKE_INST=0 (the rules only trigger in make install) would be a workaround.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55012</commentid>
    <comment_count>4</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2015-10-07 08:07:36 +0000</bug_when>
    <thetext>patch sent to oe-core:
http://lists.openembedded.org/pipermail/openembedded-core/2015-October/111337.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55356</commentid>
    <comment_count>5</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2015-10-15 14:56:11 +0000</bug_when>
    <thetext>Upstreamed the work-around :
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=acdc2db899307b9a0fdbf1bc672964bb83fd58fc

Will close after pushing a &quot;real&quot; fix for the race.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56577</commentid>
    <comment_count>6</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2015-11-18 12:56:46 +0000</bug_when>
    <thetext>This is probably no longer medium+: the workaround is in place and works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60964</commentid>
    <comment_count>7</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2016-04-08 08:08:28 +0000</bug_when>
    <thetext>Still don&apos;t think this is medium+ importance but... I had a look and this one is weird. There&apos;s no obvious race in the Makefile.am and:

&gt; chmod: cannot read directory `consolefonts_Z/README.Cyrillic&apos;: Not a directory

This seems to be chmod saying &quot;I can&apos;t even&quot;. The only way I could see that happening is README.Cyrillic being a directory first and then getting replaced by a file while chmod is running, and this seems unlikely.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61912</commentid>
    <comment_count>8</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2016-05-04 08:32:56 +0000</bug_when>
    <thetext>Created an upstream bug. Maintainer mentioned that he can&apos;t re-create the failure at his setup.

https://github.com/legionus/kbd/issues/1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66496</commentid>
    <comment_count>9</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-09-22 15:08:29 +0000</bug_when>
    <thetext>We&apos;ve had this in oe-core since August:

Author:     Robert Yang &lt;liezhi.yang@windriver.com&gt;
AuthorDate: Thu Aug 18 18:29:16 2016 -0700
Commit:     Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
CommitDate: Sat Aug 20 16:06:03 2016 +0100

    kbd: remove PARALLEL_MAKEINST = &quot;&quot;

    There isn&apos;t anything wrong when looked into its Makefile, I guess that
    it had been fixed during ugprade, and I&apos;ve applied this patch locally
    for more than 2 months, there isn&apos;t anything wrong.

    (From OE-Core rev: 53687cadaab307fc843768d61973ed1630eb28af)

    Signed-off-by: Robert Yang &lt;liezhi.yang@windriver.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;

So, closing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>