package/vlc: disable on riscv32
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Fri, 28 May 2021 05:34:43 +0000 (07:34 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tue, 1 Jun 2021 20:42:59 +0000 (22:42 +0200)
vlc unconditionally uses __NR_futex resulting in the following build
failure on riscv32:

linux/thread.c:53:20: error: '__NR_futex' undeclared (first use in this function)
   53 |     return syscall(__NR_futex, addr, op, val, to, addr2, val3);
      |                    ^~~~~~~~~~

A patch that fixes this was submitted upstream, but rejected [1].

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

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
[1] https://patches.videolan.org/patch/30581/

package/vlc/Config.in

index 96ff8f2fcbe689de5b4e0fb6e993229d0da5b303..964b7660afdb02b1cbe95a487c6084563d923d91 100644 (file)
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_VLC
        bool "vlc"
+       depends on !BR2_RISCV_32
        depends on BR2_USE_MMU # fork()
        depends on BR2_INSTALL_LIBSTDCPP
        depends on !BR2_STATIC_LIBS
@@ -23,6 +24,7 @@ config BR2_PACKAGE_VLC_OPENCV3_BACKEND
        select BR2_PACKAGE_OPENCV3_LIB_OBJDETECT
 
 comment "vlc needs a toolchain w/ C++, dynamic library, wchar, threads, gcc >= 4.9, headers >= 3.7"
+       depends on !BR2_RISCV_32
        depends on BR2_USE_MMU
        depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS \
                || !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS \