From 46505e1fdef91e2a5654fa2d8972419e3b3fc987 Mon Sep 17 00:00:00 2001 From: Patrick Vacek Date: Tue, 29 May 2018 18:01:42 +0200 Subject: find_packages.py: Ignore packages in ASSUME_PROVIDED. There will not be recipes for those packages, so don't go looking for them. We don't need them, anyway. --- scripts/find_packages.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/find_packages.py b/scripts/find_packages.py index 970a25a..7a60a17 100755 --- a/scripts/find_packages.py +++ b/scripts/find_packages.py @@ -15,11 +15,9 @@ def print_deps(tinfoil, abcd_file, rn): try: info = tinfoil.get_recipe_info(rn) except Exception: - # fails on hostperl-runtime-native, virtual/libintl-native, grep-native, virtual/libiconv-native print('Failed to get recipe info for: %s' % rn) return [] if not info: - # fails on the above and virtual/crypt-native print('No recipe info found for: %s' % rn) return [] append_files = tinfoil.get_file_appends(info.fn) @@ -88,6 +86,11 @@ def main(): abcd_manifest = 'manifest.abcd' with open(abcd_manifest, "w") as abcd_file, bb.tinfoil.Tinfoil() as tinfoil: tinfoil.prepare() + # These are the packages that bitbake assumes are provided by the host + # system. They do not have recipes, so searching tinfoil for them will + # not work. Anyway, by nature they are not included in code we release, + # only used by it. + assume_provided = tinfoil.config_data.getVar('ASSUME_PROVIDED').split() abcd_file.write('packages:\n') # Does NOT include garage-sign, anything used only for testing (i.e. @@ -114,7 +117,7 @@ def main(): for recipe in recipes_to_check: depends = print_deps(tinfoil, abcd_file, recipe) for dep in depends: - if dep not in recipes_to_check: + if dep not in recipes_to_check and dep not in assume_provided: recipes_to_check.append(dep) -- cgit v1.2.3-54-g00ecf