package/libnfs: bump version to 6.0.2
PATCH 1/1 package/libnfs: bump version to 6.0.2
Removed all patches because they are included in this release. Added two upstream patches which fix build with glibc 2.43.
Added optional dependency to gnutls introduced by upstream commit
https://github.com/sahlberg/libnfs/commit/c9215365ef932af39f3a84da071979b199b04db7
--- ...t-and-use-const-qualifier-from-point.patch | 37 ++++++ .../libnfs/0001-Fix-include-sys-time.h.patch | 44 ------- ...t-qualifier-from-pointer-target-type.patch | 117 ++++++++++++++++++ ...0002-utils-nfs-stat.c-include-time.h.patch | 39 ------ package/libnfs/libnfs.hash | 2 +- package/libnfs/libnfs.mk | 6 +- 6 files changed, 160 insertions(+), 85 deletions(-) create mode 100644 package/libnfs/0001-Do-not-edit-const-and-use-const-qualifier-from-point.patch delete mode 100644 package/libnfs/0001-Fix-include-sys-time.h.patch create mode 100644 package/libnfs/0002-use-const-qualifier-from-pointer-target-type.patch delete mode 100644 package/libnfs/0002-utils-nfs-stat.c-include-time.h.patch
package/libnfs/0001-Do-not-edit-const-and-use-const-qualifier-from-point.patch new file +37 -0
@@ -0,0 +1,37 @@ +From 89a795fee97a3da348c28dbd58500100a13dcec0 Mon Sep 17 00:00:00 2001 +From: Rudi Heitbaum <[email protected]> +Date: Sun, 25 Jan 2026 08:30:43 +0000 +Subject: [PATCH] Do not edit const and use const qualifier from pointer target + type + +Fixes: + ../../lib/libnfs.c: In function 'nfs_set_context_args': + ../../lib/libnfs.c:301:30: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] + 301 | char *strp = strchr(val, ','); + | ^~~~~~ + +Upstream: https://github.com/sahlberg/libnfs/commit/89a795fee97a3da348c28dbd58500100a13dcec0 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + lib/libnfs.c | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/lib/libnfs.c b/lib/libnfs.c +index bbe6666..162492b 100755 +--- a/lib/libnfs.c ++++ b/lib/libnfs.c +@@ -316,9 +316,8 @@ nfs_set_context_args(struct nfs_context *nfs, const char *arg, const char *val) + } else if (!strcmp(arg, "wsize")) { + nfs_set_writemax(nfs, atoi(val)); + } else if (!strcmp(arg, "readdir-buffer")) { +- char *strp = strchr(val, ','); ++ const char *strp = strchr(val, ','); + if (strp) { +- *strp = 0; + strp++; + nfs_set_readdir_max_buffer_size(nfs, atoi(val), atoi(strp)); + } else { +-- +2.47.3 +
package/libnfs/0001-Fix-include-sys-time.h.patch deleted +0 -44
44 lines not on this page · raw message
package/libnfs/0002-use-const-qualifier-from-pointer-target-type.patch new file +117 -0
117 lines not on this page · raw message
package/libnfs/0002-utils-nfs-stat.c-include-time.h.patch deleted +0 -39
@@ -1,39 +0,0 @@ -From 034205b6b3acd64f9c75010d8da27e2c9f1bc82f Mon Sep 17 00:00:00 2001 -From: Fabrice Fontaine <[email protected]> -Date: Sun, 21 Jul 2024 18:04:05 +0200 -Subject: [PATCH] utils/nfs-stat.c: include time.h - -Include time.h to fix the following build failure with gcc >= 14 which -enables -Werror=implicit-function-declaration -(https://gcc.gnu.org/gcc-14/porting_to.html): - -nfs-stat.c: In function 'main': -nfs-stat.c:287:30: error: implicit declaration of function 'ctime' [-Wimplicit-function-declaration] - 287 | printf("Access: %s", ctime( (const time_t *) &st.nfs_atime)); - | ^~~~~ -nfs-stat.c:177:1: note: 'ctime' is defined in header '<time.h>'; this is probably fixable by adding '#include <time.h>' - 176 | #include <pwd.h> - +++ |+#include <time.h> - 177 | char *uid_to_name(int uid) - -Fixes: - - http://autobuild.buildroot.org/results/73c3828a4e5d275ca0dfdd5b314494e2b00393c8 - -Signed-off-by: Fabrice Fontaine <[email protected]> -Upstream: https://github.com/sahlberg/libnfs/commit/39e1ae0206fb519c551b48b0e6de57f3e764e886 ---- - utils/nfs-stat.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/utils/nfs-stat.c b/utils/nfs-stat.c -index 17ddb311..0ec33544 100644 ---- a/utils/nfs-stat.c -+++ b/utils/nfs-stat.c -@@ -50,6 +50,7 @@ WSADATA wsaData; - #include <inttypes.h> - #include <sys/types.h> - #include <fcntl.h> -+#include <time.h> - #include "libnfs.h" - #include "libnfs-raw.h" - #include "libnfs-raw-mount.h"
package/libnfs/libnfs.hash +1 -1
@@ -1,5 +1,5 @@ # Locally calculated -sha256 d945cb4f4c8f82ee1f3640893a168810f794a28e1010bb007ec5add345e9df3e libnfs-5.0.3.tar.gz +sha256 4e5459cc3e0242447879004e9ad28286d4d27daa42cbdcde423248fad911e747 libnfs-6.0.2.tar.gz sha256 edd960c0142b8ada98b43b6396b78f4e557b0bc70ac601a51e397ad04070e2c5 COPYING sha256 d9406ced95457941032aa11d04623b8ab71f2827a3395ebef137aec475be35b1 LICENCE-BSD.txt sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 LICENCE-LGPL-2.1.txt
package/libnfs/libnfs.mk +5 -1
@@ -4,7 +4,7 @@ # ################################################################################ -LIBNFS_VERSION = 5.0.3 +LIBNFS_VERSION = 6.0.2 LIBNFS_SITE = $(call github,sahlberg,libnfs,libnfs-$(LIBNFS_VERSION)) LIBNFS_INSTALL_STAGING = YES LIBNFS_AUTORECONF = YES
@@ -12,6 +12,10 @@ LIBNFS_LICENSE = LGPL-2.1+ (library), BSD-2-Clause (protocol, .x files), GPL-3.0 LIBNFS_LICENSE_FILES = COPYING LICENCE-BSD.txt LICENCE-LGPL-2.1.txt LICENCE-GPL-3.txt LIBNFS_DEPENDENCIES = host-pkgconf +ifeq ($(BR2_PACKAGE_GNUTLS),y) +LIBNFS_DEPENDENCIES += gnutls +endif + ifeq ($(BR2_PACKAGE_LIBTIRPC),y) LIBNFS_DEPENDENCIES += libtirpc endif
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 7 lines · Bernd Kuhls
Removed all patches because they are included in this release. Added two upstream patches which fix build with glibc 2.43.
Added optional dependency to gnutls introduced by upstream commit
https://github.com/sahlberg/libnfs/commit/c9215365ef932af39f3a84da071979b199b04db7Signed-off-by Bernd Kuhls <[email protected]>
Applied to next, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot