{"id":2221173,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2221173/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/patch/20260408193359.4047938-2-giulio.benetti@benettiengineering.com/","project":{"id":27,"url":"http://patchwork.ozlabs.org/api/1.1/projects/27/?format=json","name":"Buildroot development","link_name":"buildroot","list_id":"buildroot.buildroot.org","list_email":"buildroot@buildroot.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260408193359.4047938-2-giulio.benetti@benettiengineering.com>","date":"2026-04-08T19:33:59","name":"[v2,2/2] package/nfs-utils: bump version to 2.9.1","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"f064c5cae5a82574df589de3cd728bb7f4c1f5d6","submitter":{"id":77479,"url":"http://patchwork.ozlabs.org/api/1.1/people/77479/?format=json","name":"Giulio Benetti","email":"giulio.benetti@benettiengineering.com"},"delegate":{"id":89618,"url":"http://patchwork.ozlabs.org/api/1.1/users/89618/?format=json","username":"juju","first_name":"Julien","last_name":"Olivain","email":"juju@cotds.org"},"mbox":"http://patchwork.ozlabs.org/project/buildroot/patch/20260408193359.4047938-2-giulio.benetti@benettiengineering.com/mbox/","series":[{"id":499200,"url":"http://patchwork.ozlabs.org/api/1.1/series/499200/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/list/?series=499200","date":"2026-04-08T19:33:59","name":"[v2,1/2] package/libnl: enable host package variant","version":2,"mbox":"http://patchwork.ozlabs.org/series/499200/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2221173/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2221173/checks/","tags":{},"headers":{"Return-Path":"<buildroot-bounces@buildroot.org>","X-Original-To":["incoming-buildroot@patchwork.ozlabs.org","buildroot@buildroot.org"],"Delivered-To":["patchwork-incoming-buildroot@legolas.ozlabs.org","buildroot@buildroot.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=buildroot.org header.i=@buildroot.org\n header.a=rsa-sha256 header.s=default header.b=Tj221t/y;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org\n (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org;\n envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org)"],"Received":["from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4frYCm0dD5z1xv0\n\tfor <incoming-buildroot@patchwork.ozlabs.org>;\n Thu, 09 Apr 2026 05:34:11 +1000 (AEST)","from localhost (localhost [127.0.0.1])\n\tby smtp1.osuosl.org (Postfix) with ESMTP id 902CE8271D;\n\tWed,  8 Apr 2026 19:34:09 +0000 (UTC)","from smtp1.osuosl.org ([127.0.0.1])\n by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id tJWo9XFZu_KY; Wed,  8 Apr 2026 19:34:08 +0000 (UTC)","from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142])\n\tby smtp1.osuosl.org (Postfix) with ESMTP id 83DF68272C;\n\tWed,  8 Apr 2026 19:34:08 +0000 (UTC)","from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133])\n by lists1.osuosl.org (Postfix) with ESMTP id 29AED1F6\n for <buildroot@buildroot.org>; Wed,  8 Apr 2026 19:34:07 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n by smtp2.osuosl.org (Postfix) with ESMTP id 1BA594006F\n for <buildroot@buildroot.org>; Wed,  8 Apr 2026 19:34:07 +0000 (UTC)","from smtp2.osuosl.org ([127.0.0.1])\n by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id pL26nSkN0kxD for <buildroot@buildroot.org>;\n Wed,  8 Apr 2026 19:34:06 +0000 (UTC)","from smtpcmd0756.aruba.it (smtpcmd0756.aruba.it [62.149.156.56])\n by smtp2.osuosl.org (Postfix) with ESMTPS id AA43F405FA\n for <buildroot@buildroot.org>; Wed,  8 Apr 2026 19:34:03 +0000 (UTC)","from localhost.localdomain ([84.33.84.190])\n by Aruba SMTP with ESMTPSA\n id AYf2weC6stpTfAYf2wsLE4; Wed, 08 Apr 2026 21:34:00 +0200"],"X-Virus-Scanned":["amavis at osuosl.org","amavis at osuosl.org"],"X-Comment":"SPF check N/A for local connections - client-ip=140.211.166.142;\n helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org;\n receiver=<UNKNOWN> ","DKIM-Filter":["OpenDKIM Filter v2.11.0 smtp1.osuosl.org 83DF68272C","OpenDKIM Filter v2.11.0 smtp2.osuosl.org AA43F405FA"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org;\n\ts=default; t=1775676848;\n\tbh=fgwXrGxi7fNhHxK7TkbUwCosoGIVH/+m8WX/3eK2KAU=;\n\th=From:To:Cc:Date:In-Reply-To:References:Subject:List-Id:\n\t List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:\n\t From;\n\tb=Tj221t/y3Ah6bKqKjf5IipZEfNYB9/KOP0ZzrVOe/bBhb2/EraDSH6s19hNEcroPr\n\t 3HbOmUMIIw+WuqTl0G/1r1j4n8prOPIpwnusxC793j8Eeid8KmwqZ9jKKwvq/sgh5X\n\t R2mTPXN8s21j5zROKuqkO1DboC6vPY7BtOb99FbVbh+lpLOZ/fNR56dfNbMx4Vq0SG\n\t RM3VUiLRFuDDvpSHIfCOp2NnFWHwUZoOv3mVbzx8P12U//ESYqy25LGgePgNogw8Yz\n\t TiYjbbKloo53uku77Iquge7WX8IShY2iKoJ6wQThfDgWRXZFH4Qxg18xDP8QqNm1pR\n\t M3+dnj7VLDtCw==","Received-SPF":"Pass (mailfrom) identity=mailfrom; client-ip=62.149.156.56;\n helo=smtpcmd0756.aruba.it;\n envelope-from=giulio.benetti@benettiengineering.com;\n receiver=<UNKNOWN>","DMARC-Filter":"OpenDMARC Filter v1.4.2 smtp2.osuosl.org AA43F405FA","From":"Giulio Benetti <giulio.benetti@benettiengineering.com>","To":"buildroot@buildroot.org","Cc":"Giulio Benetti <giulio.benetti@benettiengineering.com>,\n Petr Vorel <petr.vorel@gmail.com>,\n Thomas Petazzoni <thomas.petazzoni@bootlin.com>","Date":"Wed,  8 Apr 2026 21:33:59 +0200","Message-ID":"<20260408193359.4047938-2-giulio.benetti@benettiengineering.com>","X-Mailer":"git-send-email 2.47.3","In-Reply-To":"<20260408193359.4047938-1-giulio.benetti@benettiengineering.com>","References":"<20260408193359.4047938-1-giulio.benetti@benettiengineering.com>","MIME-Version":"1.0","X-CMAE-Envelope":"\n MS4xfEBHeYAQSyY6FwWwXDmzpAxbpKxdC7UAuz9lHpu/wSxs6/x16WVGH8FqtZwa+zvYPmxY2lF8xmF8Eg1iImHfXo2oePBxtCDN+FgPJyP+FjY6I5+3XYwQ\n 5ViOkVQ1IsuVmOSGsrtVk/FDCe+y0AqFqh6/9/a6E5z0MOFbGCD5NNhk63+NF5rQtkH1QmLVXDfW2OoPmPjyQUeKFSm+4oeQ6jgjQXv1OSalHkjdgJqPd2Qe\n aRKyHSsh4zfRyaiIQvejvZCGDT75f4745B0xZDkc543jSc0SEWDj8bPnlPVYUqvoN8lU0NdQsbrnNWiYTpyD7dLB99xBppm4Lo4D5p9Jj/yJG++3sNoMt6CH\n 8ZHldZJE","X-Mailman-Original-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple;\n d=aruba.it; s=a1;\n t=1775676840; bh=vu8X/HXzXRmE/KwRbi7zMrg9er5FYdTO8Y6duKKmPlY=;\n h=From:To:Subject:Date:MIME-Version;\n b=JxpWGebQ2OENBtFZZOtmZ+UXOWLTbZexUzMko8c6emfGsHKQDYrSEkpTNFmKFQ4Tk\n jq83vpC1g19hu3fRoWyQFoCl9i/U/DSad94QnyIrRHgmfp9II5xZvVvo46RUuhFx3E\n AP6TnmOHdoCol/MwBwoD3cqSnKIz9UJP11x6XBCl7zbXeMy2qe4OdSCH3uSmw6l99g\n 1KyUjmOVS45OddOp5yqNxGmsGt3tWwYjRuaDanjuWxeoKat5Vw68wgW6ERQd63NSJk\n TuPETK/P08+rxVMjwEaor3A7/kac7IB2UFr2cl5n2uOZ7ZS2zykAIjoOlEVC+gUakf\n 8Cc8IIP83i/4Q==","X-Mailman-Original-Authentication-Results":["smtp2.osuosl.org;\n dmarc=pass (p=none dis=none)\n header.from=benettiengineering.com","smtp2.osuosl.org;\n dkim=pass (2048-bit key,\n unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256\n header.s=a1 header.b=JxpWGebQ"],"Subject":"[Buildroot] [PATCH v2 2/2] package/nfs-utils: bump version to 2.9.1","X-BeenThere":"buildroot@buildroot.org","X-Mailman-Version":"2.1.30","Precedence":"list","List-Id":"Discussion and development of buildroot <buildroot.buildroot.org>","List-Unsubscribe":"<https://lists.buildroot.org/mailman/options/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=unsubscribe>","List-Archive":"<http://lists.buildroot.org/pipermail/buildroot/>","List-Post":"<mailto:buildroot@buildroot.org>","List-Help":"<mailto:buildroot-request@buildroot.org?subject=help>","List-Subscribe":"<https://lists.buildroot.org/mailman/listinfo/buildroot>,\n <mailto:buildroot-request@buildroot.org?subject=subscribe>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Errors-To":"buildroot-bounces@buildroot.org","Sender":"\"buildroot\" <buildroot-bounces@buildroot.org>"},"content":"Add dependency to libnl that became mandatory with commit:\nhttps://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commitdiff;h=d2fa3421f857e04de7f79cdf3114a0fe73983d25\n\nAdd 3 local patches pending upstream to fix build failures.\n\nRelease announce:\nhttps://lore.kernel.org/linux-nfs/955a922e-c12d-435b-a698-caf73312f01d@redhat.com/\n\nSigned-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>\n---\nV1->V2:\n* reworked patches 1 and 2 and added patch 3 to fix build with old glibc\n---\n ..._file-fix-missing-string.h-inclusion.patch | 28 +++++++\n ....h-file-to-deal-with-old-Linux-api-a.patch | 77 +++++++++++++++++++\n ...kend_sqlite.c-fix-getrandom-fallback.patch | 30 ++++++++\n package/nfs-utils/Config.in                   |  1 +\n package/nfs-utils/nfs-utils.hash              |  4 +-\n package/nfs-utils/nfs-utils.mk                |  6 +-\n 6 files changed, 141 insertions(+), 5 deletions(-)\n create mode 100644 package/nfs-utils/0001-fh_key_file-fix-missing-string.h-inclusion.patch\n create mode 100644 package/nfs-utils/0002-Introduce-compat.h-file-to-deal-with-old-Linux-api-a.patch\n create mode 100644 package/nfs-utils/0003-support-backend_sqlite.c-fix-getrandom-fallback.patch","diff":"diff --git a/package/nfs-utils/0001-fh_key_file-fix-missing-string.h-inclusion.patch b/package/nfs-utils/0001-fh_key_file-fix-missing-string.h-inclusion.patch\nnew file mode 100644\nindex 0000000000..838d519d5a\n--- /dev/null\n+++ b/package/nfs-utils/0001-fh_key_file-fix-missing-string.h-inclusion.patch\n@@ -0,0 +1,28 @@\n+From 2d99ff0aa8a3b4d20558bce742edaaed9d24b3cb Mon Sep 17 00:00:00 2001\n+From: Giulio Benetti <giulio.benetti@benettiengineering.com>\n+Date: Tue, 7 Apr 2026 17:23:13 +0200\n+Subject: [PATCH] fh_key_file: fix missing string.h inclusion\n+\n+Add #include <string.h> to fix build failure.\n+\n+Upstream: https://lore.kernel.org/linux-nfs/20260408173535.3992116-1-giulio.benetti@benettiengineering.com/T/#t\n+Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>\n+---\n+ support/nfs/fh_key_file.c | 1 +\n+ 1 file changed, 1 insertion(+)\n+\n+diff --git a/support/nfs/fh_key_file.c b/support/nfs/fh_key_file.c\n+index 5f5eafc1..81ea1500 100644\n+--- a/support/nfs/fh_key_file.c\n++++ b/support/nfs/fh_key_file.c\n+@@ -26,6 +26,7 @@\n+ #include <sys/types.h>\n+ #include <unistd.h>\n+ #include <errno.h>\n++#include <string.h>\n+ #include <uuid/uuid.h>\n+ \n+ #include \"nfslib.h\"\n+-- \n+2.47.3\n+\ndiff --git a/package/nfs-utils/0002-Introduce-compat.h-file-to-deal-with-old-Linux-api-a.patch b/package/nfs-utils/0002-Introduce-compat.h-file-to-deal-with-old-Linux-api-a.patch\nnew file mode 100644\nindex 0000000000..c5c57c6503\n--- /dev/null\n+++ b/package/nfs-utils/0002-Introduce-compat.h-file-to-deal-with-old-Linux-api-a.patch\n@@ -0,0 +1,77 @@\n+From 218e1b572123f527bd92c17ebb7ac00c2a7e6c01 Mon Sep 17 00:00:00 2001\n+From: Giulio Benetti <giulio.benetti@benettiengineering.com>\n+Date: Tue, 7 Apr 2026 17:47:40 +0200\n+Subject: [PATCH] Introduce compat.h file to deal with old Linux api and fix\n+ build failure due to missing NETLINK_EXT_ACK\n+\n+In compat.h check if NETLINK_EXT_ACK exists, otherwise define it to fix\n+build failure and where at the moment <linux/netlink.h> is included\n+let's include \"compat.h\"\n+\n+Upstream: https://lore.kernel.org/linux-nfs/20260408173535.3992116-2-giulio.benetti@benettiengineering.com/T/#u\n+Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>\n+---\n+ support/export/cache.c       |  2 +-\n+ support/export/cache_flush.c |  2 ++\n+ support/include/compat.h     | 10 ++++++++++\n+ utils/nfsdctl/nfsdctl.c      |  1 +\n+ 4 files changed, 14 insertions(+), 1 deletion(-)\n+ create mode 100644 support/include/compat.h\n+\n+diff --git a/support/export/cache.c b/support/export/cache.c\n+index 2f128d7d..65008f51 100644\n+--- a/support/export/cache.c\n++++ b/support/export/cache.c\n+@@ -40,7 +40,7 @@\n+ #include <netlink/genl/ctrl.h>\n+ #include <netlink/msg.h>\n+ #include <netlink/attr.h>\n+-#include <linux/netlink.h>\n++#include \"compat.h\"\n+ \n+ #ifdef USE_SYSTEM_NFSD_NETLINK_H\n+ #include <linux/nfsd_netlink.h>\n+diff --git a/support/export/cache_flush.c b/support/export/cache_flush.c\n+index ed7b964f..2a24dec7 100644\n+--- a/support/export/cache_flush.c\n++++ b/support/export/cache_flush.c\n+@@ -38,6 +38,8 @@ extern int no_netlink;\n+ #include \"sunrpc_netlink.h\"\n+ #endif\n+ \n++#include \"compat.h\"\n++\n+ static int nl_send_flush(struct nl_sock *sock, int family, int cmd)\n+ {\n+ \tstruct nl_msg *msg;\n+diff --git a/support/include/compat.h b/support/include/compat.h\n+new file mode 100644\n+index 00000000..83229b65\n+--- /dev/null\n++++ b/support/include/compat.h\n+@@ -0,0 +1,10 @@\n++#ifndef COMPAT_H\n++#define COMPAT_H\n++\n++#include <linux/netlink.h>\n++\n++#ifndef NETLINK_EXT_ACK\n++#define NETLINK_EXT_ACK 11\n++#endif\n++\n++#endif /* COMPAT_H */\n+diff --git a/utils/nfsdctl/nfsdctl.c b/utils/nfsdctl/nfsdctl.c\n+index 016dd2eb..c7126748 100644\n+--- a/utils/nfsdctl/nfsdctl.c\n++++ b/utils/nfsdctl/nfsdctl.c\n+@@ -26,6 +26,7 @@\n+ #include <netlink/msg.h>\n+ #include <netlink/attr.h>\n+ #include <linux/netlink.h>\n++#include \"compat.h\"\n+ \n+ #include <readline/readline.h>\n+ #include <readline/history.h>\n+-- \n+2.47.3\n+\ndiff --git a/package/nfs-utils/0003-support-backend_sqlite.c-fix-getrandom-fallback.patch b/package/nfs-utils/0003-support-backend_sqlite.c-fix-getrandom-fallback.patch\nnew file mode 100644\nindex 0000000000..86d615ca34\n--- /dev/null\n+++ b/package/nfs-utils/0003-support-backend_sqlite.c-fix-getrandom-fallback.patch\n@@ -0,0 +1,30 @@\n+From dbd44e7d6d4140e5e9d01f0a6daf6f3e45e5acbc Mon Sep 17 00:00:00 2001\n+From: Giulio Benetti <giulio.benetti@benettiengineering.com>\n+Date: Wed, 8 Apr 2026 14:28:28 +0200\n+Subject: [PATCH] support/backend_sqlite.c: fix getrandom() fallback\n+\n+In old Linux/Glibc versions __NR_getrandom is defined in <sys/random.h>\n+so let's add it to fix build failure.\n+\n+Upstream: https://lore.kernel.org/linux-nfs/20260408173535.3992116-3-giulio.benetti@benettiengineering.com/T/#u\n+Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>\n+---\n+ support/reexport/backend_sqlite.c | 2 ++\n+ 1 file changed, 2 insertions(+)\n+\n+diff --git a/support/reexport/backend_sqlite.c b/support/reexport/backend_sqlite.c\n+index 0eb5ea37..a1e981e4 100644\n+--- a/support/reexport/backend_sqlite.c\n++++ b/support/reexport/backend_sqlite.c\n+@@ -9,6 +9,8 @@\n+ #include <string.h>\n+ #include <unistd.h>\n+ \n++#include <sys/syscall.h>\n++\n+ #ifdef HAVE_GETRANDOM\n+ # include <sys/random.h>\n+ # if !defined(SYS_getrandom) && defined(__NR_getrandom)\n+-- \n+2.47.3\n+\ndiff --git a/package/nfs-utils/Config.in b/package/nfs-utils/Config.in\nindex 419b605667..295ce28edb 100644\n--- a/package/nfs-utils/Config.in\n+++ b/package/nfs-utils/Config.in\n@@ -8,6 +8,7 @@ config BR2_PACKAGE_NFS_UTILS\n \tdepends on BR2_USE_MMU # fork()\n \tdepends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 # getrandom()\n \tselect BR2_PACKAGE_LIBEVENT\n+\tselect BR2_PACKAGE_LIBNL\n \tselect BR2_PACKAGE_LIBTIRPC # IPv6 requires libtirpc\n \tselect BR2_PACKAGE_LIBTIRPC_RPCDB\n \tselect BR2_PACKAGE_SQLITE\ndiff --git a/package/nfs-utils/nfs-utils.hash b/package/nfs-utils/nfs-utils.hash\nindex 1e3f63d419..19315e60a3 100644\n--- a/package/nfs-utils/nfs-utils.hash\n+++ b/package/nfs-utils/nfs-utils.hash\n@@ -1,4 +1,4 @@\n-# From https://www.kernel.org/pub/linux/utils/nfs-utils/2.8.7/sha256sums.asc\n-sha256  59d0f1e17b18efaa60ea3ccf89a9cad3217f8d3b23c18d2fe34b25c8969d60ae  nfs-utils-2.8.7.tar.xz\n+# From https://www.kernel.org/pub/linux/utils/nfs-utils/2.9.1/sha256sums.asc\n+sha256  302846343bf509f8f884c23bdbd0fe853b7f7cbb6572060a9082279d13b21a2c  nfs-utils-2.9.1.tar.xz\n # Locally computed\n sha256  576540abf5e95029ad4ad90e32071385a5e95b2c30708c706116f3eb87b9a3de  COPYING\ndiff --git a/package/nfs-utils/nfs-utils.mk b/package/nfs-utils/nfs-utils.mk\nindex 3d391c1804..df9fdbc052 100644\n--- a/package/nfs-utils/nfs-utils.mk\n+++ b/package/nfs-utils/nfs-utils.mk\n@@ -4,12 +4,12 @@\n #\n ################################################################################\n \n-NFS_UTILS_VERSION = 2.8.7\n+NFS_UTILS_VERSION = 2.9.1\n NFS_UTILS_SOURCE = nfs-utils-$(NFS_UTILS_VERSION).tar.xz\n NFS_UTILS_SITE = https://www.kernel.org/pub/linux/utils/nfs-utils/$(NFS_UTILS_VERSION)\n NFS_UTILS_LICENSE = GPL-2.0+\n NFS_UTILS_LICENSE_FILES = COPYING\n-NFS_UTILS_DEPENDENCIES = host-nfs-utils host-pkgconf libevent libtirpc sqlite util-linux\n+NFS_UTILS_DEPENDENCIES = host-nfs-utils host-pkgconf libevent libnl libtirpc sqlite util-linux\n NFS_UTILS_CPE_ID_VENDOR = linux-nfs\n \n NFS_UTILS_CONF_ENV = knfsd_cv_bsd_signals=no\n@@ -23,7 +23,7 @@ NFS_UTILS_CONF_OPTS = \\\n \t--with-statedir=/run/nfs \\\n \t--with-rpcgen=$(HOST_DIR)/bin/rpcgen\n \n-HOST_NFS_UTILS_DEPENDENCIES = host-pkgconf host-libtirpc host-libevent host-sqlite host-util-linux\n+HOST_NFS_UTILS_DEPENDENCIES = host-pkgconf host-libtirpc host-libevent host-libnl host-sqlite host-util-linux\n \n HOST_NFS_UTILS_CONF_OPTS = \\\n \t--enable-tirpc \\\n","prefixes":["v2","2/2"]}