<?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>2450</bug_id>
          
          <creation_ts>2012-05-12 00:53:17 +0000</creation_ts>
          <short_desc>quilt-native siginfo file name matches despite cache file being unused/unusable ?</short_desc>
          <delta_ts>2012-06-19 15:07: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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>(P1)(Scheduled)</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock - Disabled">josh</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21315</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2012-05-12 00:53:17 +0000</bug_when>
    <thetext>When trying to work through some sstate sharing issues I had two users who are members of the same group building in different paths and b using a&apos;s sstate-cache.

When b is building native packages the do_populate_sysroot_setscene() calls fail, as is to be expected (I believe), and BitBake sets off building my pseudo and -native recipes.

quilt-native appears to be the first to compile and install and all seems well until it tries to create the siginfo file, this fails as the file already exists from user a.

I would have assumed that if the sstate file from a couldn&apos;t be used the siginfo filename, which includes something which looks like a hash, would be different and that b would create a new siginfo file rather than trying to overwrite a&apos;s.

a&apos;s sstate-cache is rw-rw-r-- so b can create files in a&apos;s sstate-directory but the siginfo files are created rw-r--r-- which seems fine except for in the above issue.

I&apos;m not sure what the right solution is here so hoping for some feedback/suggestions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21317</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-05-12 07:52:54 +0000</bug_when>
    <thetext>Was this not a race? Did the file from a not exist at the time the build started, hence it wasn&apos;t used?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21342</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2012-05-14 15:59:34 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Was this not a race? Did the file from a not exist at the time the build
&gt; started, hence it wasn&apos;t used?

It wasn&apos;t a race. a&apos;s build had completed long before b&apos;s even started.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21498</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-05-21 14:13:49 +0000</bug_when>
    <thetext>I think what happened here was that some of the task checksums matches but not all for all tasks. Bitbake concluded it had to rerun other tasks completely to finish the build. I therefore think the behaviour is expected but we need to be more careful with permissions. I believe patches addressing the permissions have been fixed so this issue should be resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22341</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2012-06-19 15:07:02 +0000</bug_when>
    <thetext>Sounds reasonable.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>