From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id 08D2B77065 for ; Wed, 30 Sep 2015 16:13:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id t8UGD6uI016642 for ; Wed, 30 Sep 2015 17:13:06 +0100 Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id HDFLN9HVgj0S for ; Wed, 30 Sep 2015 17:13:06 +0100 (BST) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id t8UGCs8e016606 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Wed, 30 Sep 2015 17:13:05 +0100 Message-ID: <1443629574.5162.129.camel@linuxfoundation.org> From: Richard Purdie To: openembedded-core Date: Wed, 30 Sep 2015 17:12:54 +0100 In-Reply-To: <1443621000.5162.87.camel@linuxfoundation.org> References: <1443621000.5162.87.camel@linuxfoundation.org> X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 Subject: Re: [PATCH] lib/oe/sstate: Add task_resolved handler for virtual/xxx mappings X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Sep 2015 16:13:12 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Wed, 2015-09-30 at 14:50 +0100, Richard Purdie wrote: > In SIGGEN_EXCLUDERECIPES_ABISAFE and SIGGEN_EXCLUDE_SAFE_RECIPE_DEP > we really need to be able to use virtual/xxx namespaces but this > currently doesn't work. > > To make this work, we need to translate them into the resolved > providers. After such a hook was added to bitbake, we can add > this translation here. > > Signed-off-by: Richard Purdie > > diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py > index cba0a84..fa41145 100644 > --- a/meta/lib/oe/sstatesig.py > +++ b/meta/lib/oe/sstatesig.py > @@ -94,6 +94,28 @@ class SignatureGeneratorOEBasicHash(bb.siggen.SignatureGeneratorBasicHash): > self.machine = data.getVar("MACHINE", True) > self.mismatch_msgs = [] > pass > + > + def tasks_resolved(self, virtmap, virtpnmap, dataCache): > + # Translate virtual/xxx entries to PN values > + newabisafe = [] > + for a in self.abisaferecipes: > + if a in virtpnmap: > + newabisafe.append(virtpnmap[a]) > + else: > + newabisafe.append(a) > + self.abisaferecipes = newabisafe > + newsafedeps = [] > + for a in self.saferecipedeps: > + a1, a2 = a.split("->") > + if a1 in virtpnmap: > + a1 = virtpnmap[a1] > + if a2 in virtpnmap: > + a2 = virtpnmap[a2] > + newsafedeps.append(a1 + "->" + a2) > + self.saferecipedeps = newsafedeps > + bb.warn(str(self.abisaferecipes)) > + bb.warn(str(self.saferecipedeps)) Yes, I left some debug in here, I'll remove these two lines sorry! Cheers, Richard