nilfs-utils: need NPTL threads
authorKurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
Thu, 4 Jan 2018 10:10:51 +0000 (11:10 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 6 Jan 2018 14:29:53 +0000 (15:29 +0100)
nilfs-utils use clock_nanosleep(), which comes with NPTL threads. We
keep the dependency on threads, because sem_open() is really related
to thread support. The dependency on NPTL for clock_nanosleep() might
be lifted in the future, as it seems to be a bug in uClibc-ng.

Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
[Thomas: update Config.in comment.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/nilfs-utils/Config.in

index 0c6b7a0ce86160bdc5e03702dc9ff96ee9a042e2..e49cab369bf9e6a65b877937e69494846080dfa4 100644 (file)
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_NILFS_UTILS
        bool "nilfs-utils"
        depends on BR2_TOOLCHAIN_HAS_THREADS # sem_open()
+       depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # clock_nanosleep()
        depends on BR2_USE_MMU # util-linux libmount, libblkid
        select BR2_PACKAGE_UTIL_LINUX_LIBUUID
        select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
@@ -11,5 +12,6 @@ config BR2_PACKAGE_NILFS_UTILS
 
          https://github.com/nilfs-dev/nilfs-utils
 
-comment "nilfs-utils needs a toolchain w/ threads"
-       depends on !BR2_TOOLCHAIN_HAS_THREADS
+comment "nilfs-utils needs a toolchain w/ threads, NPTL"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS || \
+               !BR2_TOOLCHAIN_HAS_THREADS_NPTL