Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/4] Fixes for shell message changes (OE-Core side)
@ 2015-07-14 14:56 Paul Eggleton
  2015-07-14 14:56 ` [PATCH 1/4] classes/useradd: don't read bbnote/bbwarn/bbfatal values Paul Eggleton
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Paul Eggleton @ 2015-07-14 14:56 UTC (permalink / raw)
  To: openembedded-core

Unfortunately the shell message changes caused a few minor regressions;
this is a perfect example of a situation where what seems like a simple
and logical change can have unintended consequences that you'll miss if
you're not careful. More testing all round would probably be advisable
in future. Having said that, it has had the effect of highlighting
something that we need to be mindful of in future - don't call bbfatal()
where you expect the rest of the error log to be printed - use die() or
bbfatal_log() for that, or alternatively make your message meaningful
enough that you don't need the log.

NOTE: the fix for die() and bbfatal_log() requires the BitBake change
that implements bbfatal_log internally which has just sent to the
bitbake-devel list. Having said that, logging.bbclass now works as it
used to for older BitBake versions that didn't have the message support
at all.


The following changes since commit 6be698b7270f73f40d38713ecf13f12aec0ced61:

  dpkg: Fix for Fedora22 and new versions of tar (2015-07-13 13:46:45 +0100)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib paule/oecore-shell-logging-fixes
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/oecore-shell-logging-fixes

Paul Eggleton (4):
  classes/useradd: don't read bbnote/bbwarn/bbfatal values
  classes/base: fix die() to print the full log
  Use die() or bbfatal_log() where the log should definitely be printed
  classes/logging: allow shell message functions to work in devshell

 meta/classes/autotools.bbclass              |  4 +--
 meta/classes/base.bbclass                   |  2 +-
 meta/classes/kernel-yocto.bbclass           | 16 +++++-----
 meta/classes/logging.bbclass                | 48 +++++++++++++++++++++++++----
 meta/classes/scons.bbclass                  |  4 +--
 meta/classes/useradd.bbclass                |  6 ++--
 meta/recipes-extended/groff/groff_1.22.3.bb |  2 +-
 7 files changed, 59 insertions(+), 23 deletions(-)

-- 
2.1.0



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-07-14 14:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-14 14:56 [PATCH 0/4] Fixes for shell message changes (OE-Core side) Paul Eggleton
2015-07-14 14:56 ` [PATCH 1/4] classes/useradd: don't read bbnote/bbwarn/bbfatal values Paul Eggleton
2015-07-14 14:56 ` [PATCH 2/4] classes/base: fix die() to print the full log Paul Eggleton
2015-07-14 14:56 ` [PATCH 3/4] Use die() or bbfatal_log() where the log should definitely be printed Paul Eggleton
2015-07-14 14:56 ` [PATCH 4/4] classes/logging: allow shell message functions to work in devshell Paul Eggleton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox