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_deb.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_deb.bbclass')
-rw-r--r-- | meta/classes/package_deb.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass index 6db69332e2..4e5dc12850 100644 --- a/meta/classes/package_deb.bbclass +++ b/meta/classes/package_deb.bbclass | |||
@@ -52,6 +52,7 @@ python do_package_deb () { | |||
52 | import re, copy | 52 | import re, copy |
53 | import textwrap | 53 | import textwrap |
54 | import subprocess | 54 | import subprocess |
55 | import collections | ||
55 | 56 | ||
56 | oldcwd = os.getcwd() | 57 | oldcwd = os.getcwd() |
57 | 58 | ||
@@ -247,6 +248,7 @@ python do_package_deb () { | |||
247 | debian_cmp_remap(rsuggests) | 248 | debian_cmp_remap(rsuggests) |
248 | # Deliberately drop version information here, not wanted/supported by deb | 249 | # Deliberately drop version information here, not wanted/supported by deb |
249 | rprovides = dict.fromkeys(bb.utils.explode_dep_versions2(localdata.getVar("RPROVIDES", True) or ""), []) | 250 | rprovides = dict.fromkeys(bb.utils.explode_dep_versions2(localdata.getVar("RPROVIDES", True) or ""), []) |
251 | rprovides = collections.OrderedDict(sorted(rprovides.items(), key=lambda x: x[0])) | ||
250 | debian_cmp_remap(rprovides) | 252 | debian_cmp_remap(rprovides) |
251 | rreplaces = bb.utils.explode_dep_versions2(localdata.getVar("RREPLACES", True) or "") | 253 | rreplaces = bb.utils.explode_dep_versions2(localdata.getVar("RREPLACES", True) or "") |
252 | debian_cmp_remap(rreplaces) | 254 | debian_cmp_remap(rreplaces) |