package/clamav: disable on riscv64
PATCH 1/1 package/clamav: disable on riscv64
Fixes:
http://autobuild.buildroot.net/results/6ad/6adc1ff74be4848c057aaf7bd02cc4b7d3610b1c/
---
The real fix is to add
"#define __ARCH_WANT_RENAMEAT"
to the kernel headers in arch/riscv/include/uapi/asm/unistd.h Inspired by https://lore.kernel.org/patchwork/patch/856923/#1053531
But patching kernel headers/image seems to be complicated. Because I did not find a way to do so I am sending this patch as RFC combined with a request for help.
package/clamav/Config.in | 2 ++ 1 file changed, 2 insertions(+)
package/clamav/Config.in +2 -0
@@ -1,6 +1,7 @@ config BR2_PACKAGE_CLAMAV bool "clamav" depends on BR2_INSTALL_LIBSTDCPP + depends on !BR2_RISCV_64 # renameat depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_USE_MMU # fork() depends on !BR2_STATIC_LIBS # dlopen
@@ -20,3 +21,4 @@ comment "clamav needs a toolchain w/ C++, dynamic library, threads, wchar" depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS \ || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR depends on BR2_USE_MMU + depends on !BR2_RISCV_64
Signature · 1 line
2.27.0
PATCH 1/1 package/clamav: disable on riscv64
Hello,
Quoted 7 lines · On Sat, 14 Nov 2020 17:51:00 +0100 Bernd Kuhls <[email protected]> wrote:
Fixes:
http://autobuild.buildroot.net/results/6ad/6adc1ff74be4848c057aaf7bd02cc4b7d3610b1c/Signed-off-by Bernd Kuhls <[email protected]>---
The real fix is to add
Quoted 8 lines
"#define
__ARCH_WANT_RENAMEAT"to the kernel headers in
arch/riscv/include/uapi/asm/unistd.hInspired by https://lore.kernel.org/patchwork/patch/856923/#1053531But patching kernel headers/image seems to be complicated. Because I did not find a way to do so I am sending this patch as RFC combined with a request for help.
The problem is that uClibc-ng only implements renameat() in terms of the renameat() system call, and not using the renameat2() system call. Because RISC-V is a fairly new CPU architecture, there is no reason for it to support the renameat system call, which is just the same as renameat2 without the flags argument.
Waldemar ?
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 1/1 package/clamav: disable on riscv64
Am Sun, 17 Jan 2021 15:48:11 +0100 schrieb Thomas Petazzoni:
Quoted 2 lines
The problem is that uClibc-ng only implements
renameat()in terms of therenameat()system call, and not using therenameat2()system call.
Hi Thomas,
fixed by uclibc-1.0.38.
Regards, Bernd