From a1a0fa131768bcc52d87ee16d0d790d4f51b2237 Mon Sep 17 00:00:00 2001 From: André Draszik Date: Fri, 10 Jan 2020 16:52:53 +0000 Subject: site: set getcwd() behaviour for long paths for glibc / musl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In glibc, getcwd() handles long file names properly, on musl, getcwd() only works up to PATH_MAX directory depths. Configuring the autotools (gnulib) test result here allows coreutils to compile more optimised code for both platforms, rather than being pessimistic and re-implementing everything itself. The difference in behaviour is because both do the kernel getcwd syscall (which only supports up to PATH_MAX), but glibc implements fallbacks for longer paths, while musl doesn't. (From OE-Core rev: 525e33cf99983ee4bc3cf1822364123551aa7c83) Signed-off-by: André Draszik Signed-off-by: Richard Purdie --- meta/site/common-glibc | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/site/common-glibc') diff --git a/meta/site/common-glibc b/meta/site/common-glibc index e5085f518f..1f6175ba93 100644 --- a/meta/site/common-glibc +++ b/meta/site/common-glibc @@ -30,6 +30,7 @@ ac_cv_func_mmap_fixed_mapped=${ac_cv_func_mmap_fixed_mapped=yes} # coreutils fu_cv_sys_stat_statfs2_bsize=${fu_cv_sys_stat_statfs2_bsize=yes} gl_cv_func_getcwd_null=${gl_cv_func_getcwd_null=yes} +gl_cv_func_getcwd_path_max=${gl_cv_func_getcwd_path_max=yes} gl_cv_func_working_mkstemp=${gl_cv_func_working_mkstemp=yes} # glib -- cgit v1.2.3-54-g00ecf