From: Pino Toscano Date: Sun, 14 Aug 2022 16:55:39 +0000 (+0100) Subject: On Hurd, do not look for functions unimplemented in libc X-Git-Tag: archive/raspbian/6.6.0-1+rpi1~1^2^2^2^2^2^2^2^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=921f4f0e526757b223bb6178d3f937add4682265;p=kf6-kio.git On Hurd, do not look for functions unimplemented in libc Last-Update: 2022-02-22 Forwarded: not-needed The check_function_exists() function of cmake does not keep into account the defines that glibc provides for the stubs (i.e. unimplemented functions that always return ENOSYS), so some functions are detected as available. Unfortunately, due to --fatal-warnings for the linker, linking will fail. Hence, do not attempt to look for functions that are currently unimplemented on GNU/Hurd's libc. Gbp-Pq: Name hurd_disable_unimplemented.diff --- diff --git a/src/ioslaves/file/ConfigureChecks.cmake b/src/ioslaves/file/ConfigureChecks.cmake index ccc9353..76a4a68 100644 --- a/src/ioslaves/file/ConfigureChecks.cmake +++ b/src/ioslaves/file/ConfigureChecks.cmake @@ -13,9 +13,13 @@ check_include_files(sys/xattr.h HAVE_SYS_XATTR_H) # On FreeBSD extattr.h doesn't compile without manually including sys/types.h check_include_files("sys/types.h;sys/extattr.h" HAVE_SYS_EXTATTR_H) -check_function_exists(copy_file_range HAVE_COPY_FILE_RANGE) +if (NOT (CMAKE_SYSTEM_NAME STREQUAL "GNU")) + check_function_exists(copy_file_range HAVE_COPY_FILE_RANGE) +endif() -check_function_exists(posix_fadvise HAVE_FADVISE) # kioslave +if (NOT (CMAKE_SYSTEM_NAME STREQUAL "GNU")) + check_function_exists(posix_fadvise HAVE_FADVISE) # kioslave +endif() check_struct_has_member("struct dirent" d_type dirent.h HAVE_DIRENT_D_TYPE LANGUAGE CXX)