<?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>1137</bug_id>
          
          <creation_ts>2011-06-03 11:07:16 +0000</creation_ts>
          <short_desc>Some native packages reference build tree</short_desc>
          <delta_ts>2011-09-05 13:36:03 +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>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>1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gary Thomas">gary</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>dvhart</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</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>14157</commentid>
    <comment_count>0</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-06-03 11:07:16 +0000</bug_when>
    <thetext>At least some packages within the sstate tree (probably
only -native ones), contain references to the working tree in which
they were built, hence making them unsuitable for sharing.

Here&apos;s how to see this problem:
* step 1 - build Poky baseline
  % . /local/poky-base/oe-init-build-env /local/poky_build1
  % bitbake git-native

* step 2 - rebuild, using baseline for SSTATE_MIRRORS
  % . /local/poky-base/oe-init-build-env /local/poky_build2
  -- adjust conf/local.conf to contain these lines:
    # Reusable state information
    SSTATE_MIRRORS ?= &quot;\
    file://.* file:///local/poky_build1/sstate-cache/&quot;
  % bitbake git-native

In this case, &apos;git-native&apos; only comes from the SSTATE packaging
and will just be installed into tmp/sysroots.  
  % /local/poky_build2/tmp/sysroots/i686-linux/usr/bin/git repack
  fatal: Not a git repository (or any of the parent directories): .git
so it works fine.  Now, to break it:
  % mv /local/poky_build1/tmp{,.ORIG}
  % /local/poky_build2/tmp/sysroots/i686-linux/usr/bin/git repack
  git: &apos;repack&apos; is not a git command. See &apos;git --help&apos;.

Note: I&apos;m quite sure this problem is not isolated to &apos;git-native&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16025</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-09-05 13:36:03 +0000</bug_when>
    <thetext>The git issue is resolved in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=726a9d299a7f6ce59e138363fda15900c92a2bbf

I know there have been sstate relocation fixes pushed for perl and groff amongst others. As and when issues are found please file specific bugs but the ones we know about are addressed at this point.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>