All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bash: build with bash_cv_getcwd_malloc=yes on musl too
@ 2022-05-14  1:07 Khem Raj
  0 siblings, 0 replies; only message in thread
From: Khem Raj @ 2022-05-14  1:07 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

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>
---
 meta/site/common-musl | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/site/common-musl b/meta/site/common-musl
index d990c4e0720..86aed4a38cd 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}
 #dbus-glib
 ac_cv_have_abstract_sockets=${ac_cv_have_abstract_sockets=yes}
 
+# bash
+bash_cv_getcwd_malloc=${bash_cv_getcwd_malloc=yes}
+
 # coreutils
 fu_cv_sys_stat_statfs2_bsize=${fu_cv_sys_stat_statfs2_bsize=yes}
 gl_cv_func_getcwd_abort_bug=${gl_cv_func_getcwd_abort_bug=no}
-- 
2.36.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-14  1:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-14  1:07 [PATCH] bash: build with bash_cv_getcwd_malloc=yes on musl too Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.