* [Buildroot] [PATCH/RFC 1/1] package/clamav: disable on riscv64
@ 2020-11-14 16:51 Bernd Kuhls
2021-01-17 14:48 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Bernd Kuhls @ 2020-11-14 16:51 UTC (permalink / raw)
To: buildroot
Fixes:
http://autobuild.buildroot.net/results/6ad/6adc1ff74be4848c057aaf7bd02cc4b7d3610b1c/
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
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(+)
diff --git a/package/clamav/Config.in b/package/clamav/Config.in
index 990a818b5c..21add35c91 100644
--- a/package/clamav/Config.in
+++ b/package/clamav/Config.in
@@ -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
--
2.27.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH/RFC 1/1] package/clamav: disable on riscv64
2020-11-14 16:51 [Buildroot] [PATCH/RFC 1/1] package/clamav: disable on riscv64 Bernd Kuhls
@ 2021-01-17 14:48 ` Thomas Petazzoni
2021-04-01 17:14 ` Bernd Kuhls
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2021-01-17 14:48 UTC (permalink / raw)
To: buildroot
Hello,
On Sat, 14 Nov 2020 17:51:00 +0100
Bernd Kuhls <bernd.kuhls@t-online.de> wrote:
> Fixes:
> http://autobuild.buildroot.net/results/6ad/6adc1ff74be4848c057aaf7bd02cc4b7d3610b1c/
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> 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.
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
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH/RFC 1/1] package/clamav: disable on riscv64
2021-01-17 14:48 ` Thomas Petazzoni
@ 2021-04-01 17:14 ` Bernd Kuhls
0 siblings, 0 replies; 3+ messages in thread
From: Bernd Kuhls @ 2021-04-01 17:14 UTC (permalink / raw)
To: buildroot
Am Sun, 17 Jan 2021 15:48:11 +0100 schrieb Thomas Petazzoni:
> The problem is that uClibc-ng only implements renameat() in terms of the
> renameat() system call, and not using the renameat2() system call.
Hi Thomas,
fixed by uclibc-1.0.38.
Regards, Bernd
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-04-01 17:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-14 16:51 [Buildroot] [PATCH/RFC 1/1] package/clamav: disable on riscv64 Bernd Kuhls
2021-01-17 14:48 ` Thomas Petazzoni
2021-04-01 17:14 ` Bernd Kuhls
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.