summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python-smartpm
diff options
context:
space:
mode:
authorBogdan Marinescu <bogdan.a.marinescu@intel.com>2013-01-29 11:05:02 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-01 15:54:03 +0000
commit9a9848d2156783ce65ad734e86fe0c212c26a6c8 (patch)
treeec416b86c61e12b74536fe8729db5e6be77ef0c9 /meta/recipes-devtools/python/python-smartpm
parentbbc374a69bf5bfc56091859e143d03541d3d8661 (diff)
downloadast2050-yocto-poky-9a9848d2156783ce65ad734e86fe0c212c26a6c8.zip
ast2050-yocto-poky-9a9848d2156783ce65ad734e86fe0c212c26a6c8.tar.gz
python-smartpm: multilib fixes
To fix some multilib issues, change the way the RPM backend decides if two packages can coexist: if they have a different architecture, automatically assume that they can coexist (which is fundamental for multilib). [YOCTO #3681] (From OE-Core rev: 05fd850f09c58dba8f64f3fe1de28ed9f21890a2) (From OE-Core rev: 03c892a02568fa8a5765d9fb569a55f17ea05f96) Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python-smartpm')
-rw-r--r--meta/recipes-devtools/python/python-smartpm/smart-multilib-fixes.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python-smartpm/smart-multilib-fixes.patch b/meta/recipes-devtools/python/python-smartpm/smart-multilib-fixes.patch
new file mode 100644
index 0000000..56fef79
--- /dev/null
+++ b/meta/recipes-devtools/python/python-smartpm/smart-multilib-fixes.patch
@@ -0,0 +1,22 @@
+To fix some multilib issues, change the way the RPM backend decides
+if two packages can coexist: if they have a different architecture,
+automatically assume that they can coexist (which is fundamental for
+multilib).
+
+Upstream-Status: Pending
+
+Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com>
+
+diff --git a/smart/backends/rpm/base.py b/smart/backends/rpm/base.py
+index 6e83d40..7140c1b 100644
+--- a/smart/backends/rpm/base.py
++++ b/smart/backends/rpm/base.py
+@@ -228,6 +228,8 @@ class RPMPackage(Package):
+ return False
+ selfver, selfarch = splitarch(self.version)
+ otherver, otherarch = splitarch(other.version)
++ if selfarch != otherarch:
++ return True
+ selfcolor = getArchColor(selfarch)
+ othercolor = getArchColor(otherarch)
+ if (selfcolor and othercolor and selfcolor != othercolor and
OpenPOWER on IntegriCloud