package/unscd: disable on riscv32
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Thu, 27 May 2021 20:19:04 +0000 (22:19 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tue, 1 Jun 2021 20:32:10 +0000 (22:32 +0200)
unscd unconditionally uses __NR_clock_gettime which will raise the
following build failure on riscv32:

nscd-0.54.c:339:14: error: '__NR_clock_gettime' undeclared (first use in this function); did you mean 'clock_gettime'?
  339 |  if (syscall(__NR_clock_gettime, CLOCK_MONOTONIC, &ts))
      |              ^~~~~~~~~~~~~~~~~~
      |              clock_gettime

Fixes:
 - http://autobuild.buildroot.org/results/eb77b18f268d8e59c407f757662117a33d3f9ee3

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/unscd/Config.in

index 23cc5a4fcb3a4dc4caf03464ba1b0118ca1f633d..88f106210359bc02e49a5fbeeb34c40d7a94a30e 100644 (file)
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_UNSCD
        bool "unscd"
+       depends on !BR2_RISCV_32
        depends on BR2_TOOLCHAIN_USES_GLIBC
        help
          Micro Name Service Caching Daemon
@@ -22,4 +23,5 @@ config BR2_PACKAGE_UNSCD
          http://busybox.net/~vda/unscd
 
 comment "unscd needs a glibc toolchain"
+       depends on !BR2_RISCV_32
        depends on !BR2_TOOLCHAIN_USES_GLIBC