diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2011-11-11 17:28:43 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-15 12:26:07 +0000 |
commit | 820bb7f4a0ced61ae62886bc7c5168151db919ea (patch) | |
tree | 971e58b79c730dcf5e60d388d221e38aabd517fe /meta/classes/base.bbclass | |
parent | df980525792ab14fdca96cc00ab90433aa2d8198 (diff) | |
download | openembedded-core-820bb7f4a0ced61ae62886bc7c5168151db919ea.tar.gz openembedded-core-820bb7f4a0ced61ae62886bc7c5168151db919ea.tar.bz2 openembedded-core-820bb7f4a0ced61ae62886bc7c5168151db919ea.zip |
base.bbclass: add subversion-native to DEPENDS if there is svn:// in SRC_URI
* in some cases this could cause circual dependency (ie if we decide to
apr_svn.bb or something like that before subversion-native in dependency
tree), Saul said he had such case, but I wasn't able to reproduce it
here (here it builds subversion-native-1.7.0 fine).
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r-- | meta/classes/base.bbclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index f3f798f9bf..ba1f230ced 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -401,8 +401,14 @@ python () { bb.note("SKIPPING %s because it's %s" % (pn, this_license)) raise bb.parse.SkipPackage("incompatible with license %s" % this_license) - # Git packages should DEPEND on git-native srcuri = d.getVar('SRC_URI', 1) + # Svn packages should DEPEND on subversion-native + if "svn://" in srcuri: + depends = d.getVarFlag('do_fetch', 'depends') or "" + depends = depends + " subversion-native:do_populate_sysroot" + d.setVarFlag('do_fetch', 'depends', depends) + + # Git packages should DEPEND on git-native if "git://" in srcuri: depends = d.getVarFlag('do_fetch', 'depends') or "" depends = depends + " git-native:do_populate_sysroot" |