]> code.ossystems Code Review - openembedded-core.git/commitdiff
sstate: Ensure populate_lic dependencies are not followed
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 10 Dec 2015 22:49:38 +0000 (22:49 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 14 Dec 2015 15:16:04 +0000 (15:16 +0000)
It was observed that do_fetch dependencies (e.g. subversion-native of tremor)
were being installed even when sstate was available and hence no fetch was
needed. This turned out to be due to the recursive nature of the rootfs
dependencies which include populate_lic.

We can explicitly whitelist these dependencies as being ones we don't
need to follow when installing sstate (the code defaults to being paranoid).

[YOCTO #8746]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sstate.bbclass

index 43c3e7e2e68a79879695765bf571ea7bbc7378f8..9bef2125218e06c13e228175bf3ffb95b88e1f9f 100644 (file)
@@ -895,6 +895,9 @@ def setscene_depvalid(task, taskdependees, notneeded, d):
         if taskdependees[task][1] == 'do_shared_workdir':
             continue
 
+        if taskdependees[dep][1] == "do_populate_lic":
+            continue
+
         # This is due to the [depends] in useradd.bbclass complicating matters
         # The logic *is* reversed here due to the way hard setscene dependencies are injected
         if taskdependees[task][1] == 'do_package' and taskdependees[dep][0].endswith(('shadow-native', 'shadow-sysroot', 'base-passwd', 'pseudo-native')) and taskdependees[dep][1] == 'do_populate_sysroot':