diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-05-13 18:07:50 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-05-15 08:57:16 +0100 |
commit | 9353730a6be40763710b2d928904012bf7771305 (patch) | |
tree | ebad121fd5b4fd34b0b26f9e895354565056fbd9 /meta/site | |
parent | 96f4a89d8d82c6663a537dec43011190ac395e3a (diff) | |
download | poky-9353730a6be40763710b2d928904012bf7771305.tar.gz |
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
(From OE-Core rev: 2137f68f6e84b669b5aba8f12237f164f710dba2)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/site')
-rw-r--r-- | meta/site/common-musl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/site/common-musl b/meta/site/common-musl index d990c4e072..86aed4a38c 100644 --- a/meta/site/common-musl +++ b/meta/site/common-musl | |||
@@ -28,6 +28,9 @@ glib_cv_have_qsort_r=${glib_cv_have_qsort_r=yes} | |||
28 | #dbus-glib | 28 | #dbus-glib |
29 | ac_cv_have_abstract_sockets=${ac_cv_have_abstract_sockets=yes} | 29 | ac_cv_have_abstract_sockets=${ac_cv_have_abstract_sockets=yes} |
30 | 30 | ||
31 | # bash | ||
32 | bash_cv_getcwd_malloc=${bash_cv_getcwd_malloc=yes} | ||
33 | |||
31 | # coreutils | 34 | # coreutils |
32 | fu_cv_sys_stat_statfs2_bsize=${fu_cv_sys_stat_statfs2_bsize=yes} | 35 | fu_cv_sys_stat_statfs2_bsize=${fu_cv_sys_stat_statfs2_bsize=yes} |
33 | gl_cv_func_getcwd_abort_bug=${gl_cv_func_getcwd_abort_bug=no} | 36 | gl_cv_func_getcwd_abort_bug=${gl_cv_func_getcwd_abort_bug=no} |