[OE-core] [PATCHv2] sanity.bbclass: remove forced abspath for SSTATE_MIRRORS

Christopher Larson kergoth at gmail.com
Wed Aug 26 04:35:39 UTC 2015


From: Christopher Larson <chris_larson at mentor.com>

The sstate URI is relative to begin with, so it's completely valid to want to
alter it in a way that keeps it relative using a mirror, and I have real world
cases where this is causing issues. Remove the check which warns on relative
file:// paths.

Signed-off-by: Christopher Larson <chris_larson at mentor.com>
---
 meta/classes/sanity.bbclass | 2 --
 1 file changed, 2 deletions(-)

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index ef90fc8..c142274 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -818,8 +818,6 @@ def check_sanity_everybuild(status, d):
                 continue
 
             if mirror.startswith('file://'):
-                if not mirror.startswith('file:///'):
-                    bb.warn('Invalid file url in %s: %s, must be absolute path (file:///)' % (mirror_var, mirror_entry))
                 import urlparse
                 check_symlink(urlparse.urlparse(mirror).path, d)
                 # SSTATE_MIRROR ends with a /PATH string
-- 
2.2.1




More information about the Openembedded-core mailing list