summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/package_manager.py
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2019-02-22 16:19:08 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-25 10:43:07 +0000
commita3c4aaf9b38f6b97083ffcc4d2128885556a5643 (patch)
tree161a488751d2917bf71ef1d07b99a7d5ba7f36dd /meta/lib/oe/package_manager.py
parent2a727a368c496be6bcabf4a652e7bc7272f6c3b6 (diff)
downloadpoky-a3c4aaf9b38f6b97083ffcc4d2128885556a5643.tar.gz
lib/oe/package_manager.py: turn nativesdk postinst warnings into notes
The warnings deal with two specific cases of failure: 1) unable to execute nativesdk postinsts for mingw SDKs because they need to be run under wine 2) unable to execute target postinsts when there is no qemu usermode support for the target Neither of these should be a big problem as mingw issue was never found to problematic, and target postinsts deal with things that are needed at runtime and not at build time which is the purpose of SDKs. The specific reason to do this is to reduce the amount of warnings shown by the Yocto autobuilder, to zero eventually. (From OE-Core rev: cbc32fcd9b52e750600cce9dd84b33e3ce612eae) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/package_manager.py')
-rw-r--r--meta/lib/oe/package_manager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index f5cd7454d7..2835c1ddf8 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -440,7 +440,7 @@ class PackageManager(object, metaclass=ABCMeta):
440 continue 440 continue
441 441
442 if populate_sdk == 'host' and self.d.getVar('SDK_OS') == 'mingw32': 442 if populate_sdk == 'host' and self.d.getVar('SDK_OS') == 'mingw32':
443 bb.warn("The postinstall intercept hook '%s' could not be executed due to missing wine support, details in %s/log.do_%s" 443 bb.note("The postinstall intercept hook '%s' could not be executed due to missing wine support, details in %s/log.do_%s"
444 % (script, self.d.getVar('T'), self.d.getVar('BB_CURRENTTASK'))) 444 % (script, self.d.getVar('T'), self.d.getVar('BB_CURRENTTASK')))
445 continue 445 continue
446 446
@@ -455,7 +455,7 @@ class PackageManager(object, metaclass=ABCMeta):
455 bb.fatal("The postinstall intercept hook '%s' failed, details in %s/log.do_%s" % (script, self.d.getVar('T'), self.d.getVar('BB_CURRENTTASK'))) 455 bb.fatal("The postinstall intercept hook '%s' failed, details in %s/log.do_%s" % (script, self.d.getVar('T'), self.d.getVar('BB_CURRENTTASK')))
456 elif populate_sdk == 'target': 456 elif populate_sdk == 'target':
457 if "qemuwrapper: qemu usermode is not supported" in e.output.decode("utf-8"): 457 if "qemuwrapper: qemu usermode is not supported" in e.output.decode("utf-8"):
458 bb.warn("The postinstall intercept hook '%s' could not be executed due to missing qemu usermode support, details in %s/log.do_%s" 458 bb.note("The postinstall intercept hook '%s' could not be executed due to missing qemu usermode support, details in %s/log.do_%s"
459 % (script, self.d.getVar('T'), self.d.getVar('BB_CURRENTTASK'))) 459 % (script, self.d.getVar('T'), self.d.getVar('BB_CURRENTTASK')))
460 else: 460 else:
461 bb.fatal("The postinstall intercept hook '%s' failed, details in %s/log.do_%s" % (script, self.d.getVar('T'), self.d.getVar('BB_CURRENTTASK'))) 461 bb.fatal("The postinstall intercept hook '%s' failed, details in %s/log.do_%s" % (script, self.d.getVar('T'), self.d.getVar('BB_CURRENTTASK')))