Files
buildroot/package/nfs-utils/0003-support-backend_sqlite.c-fix-getrandom-fallback.patch
Giulio Benetti 23a3df15ed package/nfs-utils: bump version to 2.9.1
Add dependency to libnl that became mandatory with commit:
https://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commitdiff;h=d2fa3421f857e04de7f79cdf3114a0fe73983d25

Add 3 local patches pending upstream to fix build failures.

Release announce:
https://lore.kernel.org/linux-nfs/955a922e-c12d-435b-a698-caf73312f01d@redhat.com/

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
2026-04-20 00:02:38 +02:00

31 lines
1012 B
Diff

From dbd44e7d6d4140e5e9d01f0a6daf6f3e45e5acbc Mon Sep 17 00:00:00 2001
From: Giulio Benetti <giulio.benetti@benettiengineering.com>
Date: Wed, 8 Apr 2026 14:28:28 +0200
Subject: [PATCH] support/backend_sqlite.c: fix getrandom() fallback
In old Linux/Glibc versions __NR_getrandom is defined in <sys/random.h>
so let's add it to fix build failure.
Upstream: https://lore.kernel.org/linux-nfs/20260408173535.3992116-3-giulio.benetti@benettiengineering.com/T/#u
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
support/reexport/backend_sqlite.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/support/reexport/backend_sqlite.c b/support/reexport/backend_sqlite.c
index 0eb5ea37..a1e981e4 100644
--- a/support/reexport/backend_sqlite.c
+++ b/support/reexport/backend_sqlite.c
@@ -9,6 +9,8 @@
#include <string.h>
#include <unistd.h>
+#include <sys/syscall.h>
+
#ifdef HAVE_GETRANDOM
# include <sys/random.h>
# if !defined(SYS_getrandom) && defined(__NR_getrandom)
--
2.47.3