diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-21 12:17:07 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-21 23:37:22 +0100 |
commit | f5206e85b3462a6e8b49842e9f7c7823c102f33b (patch) | |
tree | 23ca28963a2ef66f6dae0026f4520d40ef3f10d7 /bitbake/lib/bb/data_smart.py | |
parent | b68de1cdc5d25c9f1b52d1c473c0d50856c6a346 (diff) | |
download | poky-f5206e85b3462a6e8b49842e9f7c7823c102f33b.tar.gz |
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/data_smart.py')
-rw-r--r-- | bitbake/lib/bb/data_smart.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): | |||
780 | 780 | ||
781 | data.overrides = None | 781 | data.overrides = None |
782 | data.overridevars = copy.copy(self.overridevars) | 782 | data.overridevars = copy.copy(self.overridevars) |
783 | data.overridedata = copy.copy(self.overridedata) | 783 | data.overridedata = copy.deepcopy(self.overridedata) |
784 | 784 | ||
785 | return data | 785 | return data |
786 | 786 | ||