]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bash: build with bash_cv_getcwd_malloc=yes on musl too
authorKhem Raj <raj.khem@gmail.com>
Sat, 14 May 2022 01:07:50 +0000 (18:07 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 15 May 2022 07:57:09 +0000 (08:57 +0100)
commit2137f68f6e84b669b5aba8f12237f164f710dba2
tree90a734079c24786221d5bd028b3c61d2aea338d6
parent9896a7e3a9bdbc6bf3bb67b5f5d5c8ae8225ed0f
bash: build with bash_cv_getcwd_malloc=yes on musl too

This fixes bash using its own broken getcwd() during cross compiling
The configure script assumes that your getcwd() function is broken.
Which then makes bash use it's own getcwd() implementation, which
doesn't work if the path to the current directory
contains bind mounts in its paths. This shows up as:

Fixes errors on musl images like
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Bad file descriptor

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/site/common-musl