From f5206e85b3462a6e8b49842e9f7c7823c102f33b Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 21 Jul 2015 12:17:07 +0100 Subject: bitbake: data_smart: Use deepcopy for overridedata dbus sets RDEPENDS_dbus-ptest_class-target = "X". nativesdk as BBCLASSEXTEND was expanding and setting various RDEPENDS variables which were clearing overrides queued against RDEPENDS. The problem was that this was leaking into other data contexts such as the target case. This was because overridedata was a shallow copy. Replacing the shallow copy with a deep copy avoids this problem of leakage between the data stores at a small performance penalty. (Bitbake rev: 83e2923cd3c8f2e25987132f85b06ce72bc941d7) Signed-off-by: Richard Purdie --- bitbake/lib/bb/data_smart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib/bb/data_smart.py') diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py index 7755f1afd8..e69f8d72df 100644 --- a/bitbake/lib/bb/data_smart.py +++ b/bitbake/lib/bb/data_smart.py @@ -780,7 +780,7 @@ class DataSmart(MutableMapping): data.overrides = None data.overridevars = copy.copy(self.overridevars) - data.overridedata = copy.copy(self.overridedata) + data.overridedata = copy.deepcopy(self.overridedata) return data -- cgit v1.2.3-54-g00ecf