[oe-commits] [openembedded-core] 29/43: bash: fix wrong exit status offset

git at git.openembedded.org git at git.openembedded.org
Tue Jul 17 08:14:25 UTC 2018


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 d5d03c70946db9377b365f53c0949512e6ea8130
Author: Rui Wang <rui.wang at windriver.com>
AuthorDate: Mon Jul 16 10:55:08 2018 +0800

    bash: fix wrong exit status offset
    
    In Linux,8 bits of the return code and 8 bits of the number of
    the killing signal are mixed into a single value on the exit code,
    so the exit status offset should be 8. But the autoconf checker
    can not determine it while cross compiling, and then it is set to
    the default value 0, which will cause generating the wrong exit
    code if program exit with an error code.
    
    Signed-off-by: Rui Wang <rui.wang at windriver.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/recipes-extended/bash/bash.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc
index 9c2b065..2e7f261 100644
--- a/meta/recipes-extended/bash/bash.inc
+++ b/meta/recipes-extended/bash/bash.inc
@@ -7,7 +7,7 @@ DEPENDS = "ncurses bison-native virtual/libiconv"
 inherit autotools gettext texinfo update-alternatives ptest
 
 EXTRA_AUTORECONF += "--exclude=autoheader --exclude=aclocal"
-EXTRA_OECONF = "--enable-job-control --without-bash-malloc"
+EXTRA_OECONF = "--enable-job-control --without-bash-malloc bash_cv_wexitstatus_offset=8"
 
 # If NON_INTERACTIVE_LOGIN_SHELLS is defined, all login shells read the
 # startup files, even if they are not interactive.

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


More information about the Openembedded-commits mailing list