]> code.ossystems Code Review - openembedded-core.git/commit
coreutils: Disable statx for native build
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 1 Mar 2022 09:13:47 +0000 (01:13 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 2 Mar 2022 18:41:31 +0000 (18:41 +0000)
commit6c120d8856fab044e7b8e09d6de91c2b228a2dd9
treeaf5d6d0fd1e78d2e11ef4790f35d8293f8f8167f
parent25ea276a13a6ac2342c2b0945c8fafe878d56095
coreutils: Disable statx for native build

The statx requires glibc >= 2.28 and linux kernel >= 4.11, but coreutils's
configure only checks glibc compatibility for statx syscall but fail to check
kernel support, e.g.:

RedHat Enterprise Linux Server 7.6 (Maipo)
Host kernel: 3.10.0-1127.8.2.el7.x86_64
Docker OS: Ubuntu 20.04.1 LTS

$ bitbake coreutils-native
find the binary ls and run it as "ls -l ."
The result is something like: "?????????. ? ? ? ? ? foo"

This is because glibc is 2.31 (Ubunut 20.04 in docker) which has statx,
but host's kernel is 3.10.0 (CentOS 7) which doesn't support statx.

Disable statx for native build to fix the problem.

Original from: Davi Poyastro <davi.poyastro@nokia.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/coreutils/coreutils_9.0.bb