Bug 1137 - Some native packages reference build tree
Summary: Some native packages reference build tree
Status: RESOLVED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.1
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-06-03 11:07 UTC by Gary Thomas
Modified: 2011-09-05 13:36 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Thomas 2011-06-03 11:07:16 UTC
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'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 ?= "\
    file://.* file:///local/poky_build1/sstate-cache/"
  % bitbake git-native

In this case, 'git-native' 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: 'repack' is not a git command. See 'git --help'.

Note: I'm quite sure this problem is not isolated to 'git-native'
Comment 1 Richard Purdie 2011-09-05 13:36:03 UTC
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.