diff options
author | André Draszik <git@andred.net> | 2020-01-10 16:52:53 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-01-11 09:19:20 +0000 |
commit | a1a0fa131768bcc52d87ee16d0d790d4f51b2237 (patch) | |
tree | 6ee232dbacbeb75884b593617a936cdd23169f91 /meta | |
parent | e594841ef5644b8a09878c8a949b05c71de4f594 (diff) | |
download | poky-a1a0fa131768bcc52d87ee16d0d790d4f51b2237.tar.gz |
site: set getcwd() behaviour for long paths for glibc / musl
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 <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/site/common-glibc | 1 | ||||
-rw-r--r-- | meta/site/common-musl | 1 |
2 files changed, 2 insertions, 0 deletions
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} | |||
30 | # coreutils | 30 | # coreutils |
31 | fu_cv_sys_stat_statfs2_bsize=${fu_cv_sys_stat_statfs2_bsize=yes} | 31 | fu_cv_sys_stat_statfs2_bsize=${fu_cv_sys_stat_statfs2_bsize=yes} |
32 | gl_cv_func_getcwd_null=${gl_cv_func_getcwd_null=yes} | 32 | gl_cv_func_getcwd_null=${gl_cv_func_getcwd_null=yes} |
33 | gl_cv_func_getcwd_path_max=${gl_cv_func_getcwd_path_max=yes} | ||
33 | gl_cv_func_working_mkstemp=${gl_cv_func_working_mkstemp=yes} | 34 | gl_cv_func_working_mkstemp=${gl_cv_func_working_mkstemp=yes} |
34 | 35 | ||
35 | # glib | 36 | # glib |
diff --git a/meta/site/common-musl b/meta/site/common-musl index 0c9d21e0b7..c8113755aa 100644 --- a/meta/site/common-musl +++ b/meta/site/common-musl | |||
@@ -35,6 +35,7 @@ bash_cv_sys_siglist=${bash_cv_sys_siglist=no} | |||
35 | # coreutils | 35 | # coreutils |
36 | fu_cv_sys_stat_statfs2_bsize=${fu_cv_sys_stat_statfs2_bsize=yes} | 36 | fu_cv_sys_stat_statfs2_bsize=${fu_cv_sys_stat_statfs2_bsize=yes} |
37 | gl_cv_func_getcwd_null=${gl_cv_func_getcwd_null=yes} | 37 | gl_cv_func_getcwd_null=${gl_cv_func_getcwd_null=yes} |
38 | gl_cv_func_getcwd_path_max=${gl_cv_func_getcwd_path_max='no, but it is partly working'} | ||
38 | gl_cv_func_gettimeofday_clobber=${gl_cv_func_gettimeofday_clobber=no} | 39 | gl_cv_func_gettimeofday_clobber=${gl_cv_func_gettimeofday_clobber=no} |
39 | gl_cv_func_tzset_clobber=${gl_cv_func_tzset_clobber=no} | 40 | gl_cv_func_tzset_clobber=${gl_cv_func_tzset_clobber=no} |
40 | gl_cv_func_gettimeofday_posix_signature=${gl_cv_func_gettimeofday_posix_signature=yes} | 41 | gl_cv_func_gettimeofday_posix_signature=${gl_cv_func_gettimeofday_posix_signature=yes} |