[oe-commits] [openembedded-core] 04/07: lib/oe/package_manager.py: turn nativesdk postinst warnings into notes

git at git.openembedded.org git at git.openembedded.org
Sat Feb 23 13:52:10 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 6ec1f6da36644376b4fae8a5c5785251f8cd11b3
Author: Alexander Kanavin <alex.kanavin at gmail.com>
AuthorDate: Fri Feb 22 16:19:08 2019 +0100

    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.
    
    Signed-off-by: Alexander Kanavin <alex.kanavin at gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/lib/oe/package_manager.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index f5cd745..2835c1d 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -440,7 +440,7 @@ class PackageManager(object, metaclass=ABCMeta):
                 continue
 
             if populate_sdk == 'host' and self.d.getVar('SDK_OS') == 'mingw32':
-                bb.warn("The postinstall intercept hook '%s' could not be executed due to missing wine support, details in %s/log.do_%s"
+                bb.note("The postinstall intercept hook '%s' could not be executed due to missing wine support, details in %s/log.do_%s"
                                 % (script, self.d.getVar('T'), self.d.getVar('BB_CURRENTTASK')))
                 continue
 
@@ -455,7 +455,7 @@ class PackageManager(object, metaclass=ABCMeta):
                     bb.fatal("The postinstall intercept hook '%s' failed, details in %s/log.do_%s" % (script, self.d.getVar('T'), self.d.getVar('BB_CURRENTTASK')))
                 elif populate_sdk == 'target':
                     if "qemuwrapper: qemu usermode is not supported" in e.output.decode("utf-8"):
-                        bb.warn("The postinstall intercept hook '%s' could not be executed due to missing qemu usermode support, details in %s/log.do_%s"
+                        bb.note("The postinstall intercept hook '%s' could not be executed due to missing qemu usermode support, details in %s/log.do_%s"
                                 % (script, self.d.getVar('T'), self.d.getVar('BB_CURRENTTASK')))
                     else:
                         bb.fatal("The postinstall intercept hook '%s' failed, details in %s/log.do_%s" % (script, self.d.getVar('T'), self.d.getVar('BB_CURRENTTASK')))

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list