diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2016-07-17 20:32:46 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-26 08:56:28 +0100 |
commit | cbf7902030ba367baaf0b8551b11c882aaefae3d (patch) | |
tree | 0fbb6818e26d468c3ab2ee823daf34aa2087c8b6 /meta/classes/package_ipk.bbclass | |
parent | 9621959a3ad052af33bb8a5ed530f8e84b799f0d (diff) | |
download | poky-cbf7902030ba367baaf0b8551b11c882aaefae3d.tar.gz |
package_deb.bbclass/package_ipk.bbclass: sort RPROVIDES
The dict.fromkeys() creates a dict without order, there might be a
problem when build the same recipe again, for example:
- First build of make:
Provides: es-translation, make-locale
- Second build of acl:
Provides: make-locale, es-translation
They are exactly the same Provides, but tools like "diff" doesn't think
so. Sort RPROVIDES will fix the problem.
(From OE-Core rev: 3506172d7d9f8d92362b6ebb75582b7c3e662dae)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package_ipk.bbclass')
-rw-r--r-- | meta/classes/package_ipk.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass index 1b5f4f59e3..e32b9cb5fd 100644 --- a/meta/classes/package_ipk.bbclass +++ b/meta/classes/package_ipk.bbclass | |||
@@ -20,6 +20,7 @@ python do_package_ipk () { | |||
20 | import re, copy | 20 | import re, copy |
21 | import textwrap | 21 | import textwrap |
22 | import subprocess | 22 | import subprocess |
23 | import collections | ||
23 | 24 | ||
24 | oldcwd = os.getcwd() | 25 | oldcwd = os.getcwd() |
25 | 26 | ||
@@ -192,6 +193,7 @@ python do_package_ipk () { | |||
192 | debian_cmp_remap(rsuggests) | 193 | debian_cmp_remap(rsuggests) |
193 | # Deliberately drop version information here, not wanted/supported by ipk | 194 | # Deliberately drop version information here, not wanted/supported by ipk |
194 | rprovides = dict.fromkeys(bb.utils.explode_dep_versions2(localdata.getVar("RPROVIDES", True) or ""), []) | 195 | rprovides = dict.fromkeys(bb.utils.explode_dep_versions2(localdata.getVar("RPROVIDES", True) or ""), []) |
196 | rprovides = collections.OrderedDict(sorted(rprovides.items(), key=lambda x: x[0])) | ||
195 | debian_cmp_remap(rprovides) | 197 | debian_cmp_remap(rprovides) |
196 | rreplaces = bb.utils.explode_dep_versions2(localdata.getVar("RREPLACES", True) or "") | 198 | rreplaces = bb.utils.explode_dep_versions2(localdata.getVar("RREPLACES", True) or "") |
197 | debian_cmp_remap(rreplaces) | 199 | debian_cmp_remap(rreplaces) |