[oe-commits] [openembedded-core] 22/28: site: set nanosleep() behaviour for glibc / musl

git at git.openembedded.org git at git.openembedded.org
Fri Jan 10 23:48:38 UTC 2020


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit e25a342705e5767ab4abf19dc95c3870c252e6fd
Author: André Draszik <git at andred.net>
AuthorDate: Fri Jan 10 16:53:00 2020 +0000

    site: set nanosleep() behaviour for glibc / musl
    
    As per coreutils' (gnulib's) autotools test, nanosleep()
    misbehaves on glibc (2.29), and works fine on musl.
    
    During cross-compile, recent coreutils assume brokenness
    when compiling for linux, which pessimises musl.
    
    Set the correct result for musl, and for coherency reasons,
    also specify the result for glibc.
    
    Signed-off-by: André Draszik <git at andred.net>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/site/common-glibc | 1 +
 meta/site/common-musl  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/meta/site/common-glibc b/meta/site/common-glibc
index ca55d48..1a28a27 100644
--- a/meta/site/common-glibc
+++ b/meta/site/common-glibc
@@ -33,6 +33,7 @@ gl_cv_func_getcwd_abort_bug=${gl_cv_func_getcwd_abort_bug=no}
 gl_cv_func_getcwd_null=${gl_cv_func_getcwd_null=yes}
 gl_cv_func_getcwd_path_max=${gl_cv_func_getcwd_path_max=yes}
 ac_cv_func_getgroups_works=${ac_cv_func_getgroups_works=yes}
+gl_cv_func_nanosleep=${gl_cv_func_nanosleep='no (mishandles large arguments)'}
 gl_cv_func_working_mkstemp=${gl_cv_func_working_mkstemp=yes}
 gl_cv_func_working_utimes=${gl_cv_func_working_utimes=yes}
 
diff --git a/meta/site/common-musl b/meta/site/common-musl
index 1e7efbc..386991d 100644
--- a/meta/site/common-musl
+++ b/meta/site/common-musl
@@ -39,6 +39,7 @@ gl_cv_func_getcwd_null=${gl_cv_func_getcwd_null=yes}
 gl_cv_func_getcwd_path_max=${gl_cv_func_getcwd_path_max='no, but it is partly working'}
 ac_cv_func_getgroups_works=${ac_cv_func_getgroups_works=yes}
 gl_cv_func_gettimeofday_clobber=${gl_cv_func_gettimeofday_clobber=no}
+gl_cv_func_nanosleep=${gl_cv_func_nanosleep=yes}
 gl_cv_func_tzset_clobber=${gl_cv_func_tzset_clobber=no}
 gl_cv_func_gettimeofday_posix_signature=${gl_cv_func_gettimeofday_posix_signature=yes}
 gl_cv_func_working_mkstemp=${gl_cv_func_working_mkstemp=yes}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list