[OE-core] [PATCH] meta: add ASSUME_PROVIDED dependency on wget-native for http fetches

Ross Burton ross.burton at intel.com
Tue Feb 2 21:52:40 UTC 2016


For clarity and consistency, add a dependency on wget-native for any URIs that
will be fetched using the wget fetcher, and add wget-native to ASSUME_PROVIDED.

Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/base.bbclass | 4 ++++
 meta/conf/bitbake.conf    | 1 +
 2 files changed, 5 insertions(+)

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 75c9acc..82ec0c9 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -554,6 +554,10 @@ python () {
     for uri in srcuri.split():
         (scheme, _ , path) = bb.fetch.decodeurl(uri)[:3]
 
+        # HTTP/FTP use the wget fetcher
+        if scheme in ("http", "https", "ftp"):
+            d.appendVarFlag('do_fetch', 'depends', ' wget-native:do_populate_sysroot')
+
         # Svn packages should DEPEND on subversion-native
         if scheme == "svn":
             needsrcrev = True
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 0617b73..6e126b4 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -179,6 +179,7 @@ ASSUME_PROVIDED = "\
     texinfo-native \
     bash-native \
     sed-native \
+    wget-native \
     "
 # gzip-native should be listed above?
 
-- 
2.7.0




More information about the Openembedded-core mailing list