[oe-commits] [openembedded-core] 13/16: make: disable use of posix_spawn on mips

git at git.openembedded.org git at git.openembedded.org
Sat Feb 29 13:05:56 UTC 2020


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

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

commit de5572deff36ecf7dd209600a94b3b7fb991cdc1
Author: Victor Kamensky <kamensky at cisco.com>
AuthorDate: Fri Feb 28 23:55:46 2020 -0800

    make: disable use of posix_spawn on mips
    
    After make-4.3 migration child_execute_job function started
    using posix_spawn function, which happens to be broken on mips.
    
    It manifests itself as when make executed by root, it switches
    real user id to wrong value because of some issues with direct
    setresuid system call done in glibc __spawni_child function
    through inline assemble and/or gcc compiling it produces wrong
    code. I.e instead of passing -1 posix_spawn function incorrectly
    passes 127 as ruid. Subsequently job started by make can fail
    with permission issue because they run under wrong user.
    
    For now workaround is used by explicitly disabling posix_spawn
    call use by make on mips through configure variable.
    
    Signed-off-by: Victor Kamensky <kamensky at cisco.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-devtools/make/make_4.3.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/recipes-devtools/make/make_4.3.bb b/meta/recipes-devtools/make/make_4.3.bb
index 70caf0a..ede90b9 100644
--- a/meta/recipes-devtools/make/make_4.3.bb
+++ b/meta/recipes-devtools/make/make_4.3.bb
@@ -12,6 +12,11 @@ SRC_URI += "\
 
 EXTRA_OECONF += "--without-guile"
 
+# This was breaking on target kernel modules tests from testimage on mips/mips64. Likely a 
+# glibc issue in 2.31 which may be fixed in branch updates (testing pending).
+EXTRA_OECONF_append_mips=" ac_cv_func_posix_spawn=no"
+EXTRA_OECONF_append_mips64=" ac_cv_func_posix_spawn=no"
+
 SRC_URI[md5sum] = "d5c40e7bd1e97a7404f5d3be982f479a"
 SRC_URI[sha256sum] = "de1a441c4edf952521db30bfca80baae86a0ff1acd0a00402999344f04c45e82"
 

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


More information about the Openembedded-commits mailing list