]> code.ossystems Code Review - openembedded-core.git/commit
make: disable use of posix_spawn on mips
authorVictor Kamensky <kamensky@cisco.com>
Sat, 29 Feb 2020 07:55:46 +0000 (23:55 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 29 Feb 2020 13:02:56 +0000 (13:02 +0000)
commitde5572deff36ecf7dd209600a94b3b7fb991cdc1
treebb9842a01bcb4599b4bbf4ac697c274860b0e752
parent4a5d4cf0cc8a4a6af76f23dd8a29627042230f98
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@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/make/make_4.3.bb