]> code.ossystems Code Review - openembedded-core.git/commitdiff
meta: add ASSUME_PROVIDED dependency on wget-native for http fetches
authorRoss Burton <ross.burton@intel.com>
Mon, 25 Jan 2016 13:38:00 +0000 (13:38 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 4 Feb 2016 23:35:04 +0000 (23:35 +0000)
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@intel.com>
meta/classes/base.bbclass
meta/conf/bitbake.conf

index d68ffbe848d274e5346044b63e816cbc0dbc97e5..d4b11bc7a88757efe81895c2c288d9be206f9e43 100644 (file)
@@ -553,6 +553,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":
             d.appendVarFlag('do_fetch', 'depends', ' subversion-native:do_populate_sysroot')
index 1a2f420c74ac5a8d7f289fcf756bf1b12368f48f..775c0c6617c3eec4bad84b25e75e3770fc3b00bc 100644 (file)
@@ -179,6 +179,7 @@ ASSUME_PROVIDED = "\
     texinfo-native \
     bash-native \
     sed-native \
+    wget-native \
     "
 # gzip-native should be listed above?