diff options
author | Andreas Oberritter <obi@opendreambox.org> | 2012-03-09 22:34:40 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-13 11:45:12 +0000 |
commit | b9027a94163d8eb27efc464e9f1ad8159dd69c33 (patch) | |
tree | 990a1e2c88ba47a10dc4bf7877f47d00906a8ec3 /meta/classes | |
parent | e9fdfbbcde4525ab2f82dbac086b3caa86521d6f (diff) | |
download | ast2050-yocto-poky-b9027a94163d8eb27efc464e9f1ad8159dd69c33.zip ast2050-yocto-poky-b9027a94163d8eb27efc464e9f1ad8159dd69c33.tar.gz |
package.bbclass: sort dynamically generated packages
* do_split_packages and package_do_split_locales dynamically add
packages in order of appearance of os.walk() or os.listdir().
This order varies between multiple build hosts (and probably
also between successive builds).
* Sort the list of dynamically added packages, to get a consistent
and reproducible order.
* This reduces the diffs in buildhistory and improves
comparability between builds.
(From OE-Core rev: 76f46391239d3e123cfde900c52ca12ac73fd84f)
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/package.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 9b6862d..7bcfa02 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -116,7 +116,7 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst mainpkg = mainpkg.replace('-dev', '') extra_depends = mainpkg - for o in objs: + for o in sorted(objs): import re, stat if match_path: m = re.match(file_regex, o) @@ -415,7 +415,7 @@ python package_do_split_locales() { summary = d.getVar('SUMMARY', True) or pn description = d.getVar('DESCRIPTION', True) or "" locale_section = d.getVar('LOCALE_SECTION', True) - for l in locales: + for l in sorted(locales): ln = legitimize_package_name(l) pkg = pn + '-locale-' + ln packages.append(pkg) |