Handle the hossttools directory when restoring from the sstate cache
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | bitbake.conf: Add HOSTTOOLS_DIR for ${TMPDIR}/hosttoolsmeta/ meta/ meta/ | +6 | 0 replies | |
| 2/2 | sstate.bbclass, staging.bbclass: Handle HOSTTOOLS_DIR when restoring statemeta/ meta/ meta/ | +3 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] Handle the hossttools directory when restoring from the sstate cache
After the introduction of copying host tools to the build directory and cleaning out $PATH, we got a problem with one of our tools. It turned out that its configure.ac uses AC_PATH_PROG(PERL, perl) to locate the perl interpreter, and uses that on the shebang line of the installed tool. Previously it found /usr/bin/perl and used that, but now it will find ${TMPDIR}/hosttools/perl and use that instead, which means that if the tool is restored from the sstate cache in another build directory than where it originated from, the path will be wrong.
These two patches adds a new variable (HOSTTOOLS_DIR) for the ${TMPDIR}/hosttools directory, and then makes sure it is handled by the staging code so that any references to its value are properly corrected when restoring from the sstate cache.
//Peter
The following changes since commit 7a0e795373653886452a7a2992ced10080711c26:
build-appliance-image: Update to master head revision (2017-04-21 08:22:18 +0100)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib pkj/hosttools_dir
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=pkj/hosttools_dir
Peter Kjellerstedt (2):
bitbake.conf: Add HOSTTOOLS_DIR for ${TMPDIR}/hosttools sstate.bbclass, staging.bbclass: Handle HOSTTOOLS_DIR when restoring
state
meta/classes/base.bbclass | 4 ++-- meta/classes/sstate.bbclass | 2 +- meta/classes/staging.bbclass | 2 +- meta/conf/bitbake.conf | 3 +++ meta/conf/layer.conf | 2 +- meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb | 2 +- 6 files changed, 9 insertions(+), 6 deletions(-)
Signature · 1 line
2.12.0