[oe-commits] [openembedded-core] 24/118: sstate.bbclass: make PV to depend on PV variable value

git at git.openembedded.org git at git.openembedded.org
Wed Jul 20 09:29:58 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 918646ca803d56004fb0ab7c21e86cc9cb14513d
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Mon Jul 11 12:43:09 2016 +0300

    sstate.bbclass: make PV to depend on PV variable value
    
    Currently PV is defined in meta/conf/bitbake.conf as a python
    expression: "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE',
    False),d)[1] or '1.0'}". As FILE is whitelisted it causes PV to
    not depend on it. This causes sstate code to not detect that
    PV changes when recipe filename changes.
    
    Making PV to explicitly depend on PV variable value overrides default
    behaviour. Instead of depending on python expression bitbake depends
    on evaluated value of PV variable, which should fix the above
    mentioned issue.
    
    [YOCTO #9806]
    
    Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/sstate.bbclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 621dc37..d706d75 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -17,6 +17,9 @@ SSTATE_EXTRAPATH   = ""
 SSTATE_EXTRAPATHWILDCARD = ""
 SSTATE_PATHSPEC   = "${SSTATE_DIR}/${SSTATE_EXTRAPATHWILDCARD}*/${SSTATE_PKGSPEC}"
 
+# explicitly make PV to depend on evaluated value of PV variable
+PV[vardepvalue] = "${PV}"
+
 # We don't want the sstate to depend on things like the distro string
 # of the system, we let the sstate paths take care of this.
 SSTATE_EXTRAPATH[vardepvalue] = ""

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list