sstate.bbclass: specify func dirs for sstate_hardcode_path
cover sstate.bbclass: specify func dirs for sstate_hardcode_path
From: Wenzong Fan <[email protected]>
For some recipes that inhrient cmake, the ${B} may be removed by cmake_do_configure() while sstate_hardcode_path() running, this causes build errors:
Exception: OSError: [Errno 2] No such file or directory: \ '/path/to/build'
The function sstate_hardcode_path() called command:
$SSTATE_SCAN_CMD which extended as "find ${SSTATE_BUILDDIR} ..."So the proper function dirs could be ${SSTATE_BUILDDIR}.
The following changes since commit ccf5a4d2342c4fd40e4e0b332ea7e34e0bf175d4:
build-appliance-image: Update to dizzy head revision (2014-10-11 08:11:17 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib wenzong/fix-sstate
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=wenzong/fix-sstate
Wenzong Fan (1):
sstate.bbclass: specify func dirs for sstate_hardcode_path
meta/classes/sstate.bbclass | 5 +++++ 1 file changed, 5 insertions(+)
Signature · 1 line
1.7.9.5
PATCH 1/1 sstate.bbclass: specify func dirs for sstate_hardcode_path
From: Wenzong Fan <[email protected]>
For some recipes that inhrient cmake, the ${B} may be removed by cmake_do_configure() while sstate_hardcode_path() running, this causes build errors:
Exception: OSError: [Errno 2] No such file or directory: \ '/path/to/build'
The function sstate_hardcode_path() called command:
$SSTATE_SCAN_CMD which extended as "find ${SSTATE_BUILDDIR} ..."So the proper function dirs could be ${SSTATE_BUILDDIR}.
--- meta/classes/sstate.bbclass | 5 +++++ 1 file changed, 5 insertions(+)
meta/classes/sstate.bbclass +5 -0
@@ -47,6 +47,11 @@ SIGGEN_LOCKEDSIGS_CHECK_LEVEL ?= 'error' sstate_create_package[dirs] = "${SSTATE_BUILDDIR}" sstate_unpack_package[dirs] = "${SSTATE_INSTDIR}" +# Do not run sstate_hardcode_path() in ${B}: +# the ${B} maybe removed by cmake_do_configure() while +# sstate_hardcode_path() running. +sstate_hardcode_path[dirs] = "${SSTATE_BUILDDIR}" + python () { if bb.data.inherits_class('native', d): d.setVar('SSTATE_PKGARCH', d.getVar('BUILD_ARCH'))
Signature · 1 line
1.7.9.5