libnfs fix and bump
v3 cover libnfs fix and bump
Hello,
This is a small v3 that builds on top of what Andreas Ziegler proposed.
Changes v2 -> v3:
- Properly add my own changes that I had forgotten to integrate in the libnfs bump commit
Changes v1 -> v2:
- split the fix into a separate commit that can be backported to 2026.05.x
- bump to 7.0.1 instead of 7.0.0
Best regards,
Thomas Petazzoni
Andreas Ziegler (1):
package/libnfs: bump version to 7.0.1
Thomas Petazzoni (1):
package/libnfs: fix gnutls support
...t-and-use-const-qualifier-from-point.patch | 37 ------ ...t-qualifier-from-pointer-target-type.patch | 117 ------------------ ...void-cast-to-allow-compile-for-arm32.patch | 68 ---------- package/libnfs/libnfs.hash | 2 +- package/libnfs/libnfs.mk | 2 +- 5 files changed, 2 insertions(+), 224 deletions(-) delete mode 100644 package/libnfs/0001-Do-not-edit-const-and-use-const-qualifier-from-point.patch delete mode 100644 package/libnfs/0002-use-const-qualifier-from-pointer-target-type.patch delete mode 100644 package/libnfs/0003-socket-use-void-cast-to-allow-compile-for-arm32.patch
Signature · 6 lines
2.55.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v3 1/2 package/libnfs: fix gnutls support
In Buildroot commit a035a0f99fa3bbeca776d741bbdeb6c04b3b35c8, libnfs was bumped from 5.0.3 to 6.0.2, and 6.0.2 brought optional gnutls support.
Unfortunately, the gnutls support was a bit buggy, as the libnfs library ends up using gnutls symbols without being linked to libgnutls, causing build failures down the road when other packages try to link against libnfs.
We backport 3 commits from upstream 6.0.2..7.0.0 to address this issue.
Fixes:
https://autobuild.buildroot.net/results/b070248b2bceaceaaed8e826b1247ccfba1ba9fb
https://autobuild.buildroot.net/results/e1461b76121addd8f04f08819b2e3e453a12c679
https://autobuild.buildroot.net/results/87c79193d2ea86f47e36232fe514837ad99c5f30
--- ...t-gnutls-into-main-library-as-it-is-.patch | 26 ++++++++++++ ...t-gnutls-into-main-library-as-it-is-.patch | 29 +++++++++++++ ...defined-reference-if-libnfs-was-buil.patch | 41 +++++++++++++++++++ 3 files changed, 96 insertions(+) create mode 100644 package/libnfs/0004-move-link-against-gnutls-into-main-library-as-it-is-.patch create mode 100644 package/libnfs/0005-move-link-against-gnutls-into-main-library-as-it-is-.patch create mode 100644 package/libnfs/0006-autotools-fix-undefined-reference-if-libnfs-was-buil.patch
package/libnfs/0004-move-link-against-gnutls-into-main-library-as-it-is-.patch new file +26 -0
@@ -0,0 +1,26 @@ +From f054ce197a286fdd2fcb33ec1d9c236c5976adfb Mon Sep 17 00:00:00 2001 +From: fundawang <[email protected]> +Date: Sun, 26 Jan 2025 16:39:03 +0800 +Subject: [PATCH] move link against gnutls into main library, as it is + referenced by tls/libtls.la + +Upstream: d205297a10bf8d7f8846bf42f0ed618543a561a9 +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + lib/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/Makefile.am b/lib/Makefile.am +index 82376cb..33be5e4 100644 +--- a/lib/Makefile.am ++++ b/lib/Makefile.am +@@ -48,5 +48,5 @@ libnfs_la_LIBADD = \ + + if HAVE_TLS + libnfs_la_CPPFLAGS += -I$(abs_top_srcdir)/tls +-libnfs_la_LIBADD += ../tls/libtls.la ++libnfs_la_LIBADD += ../tls/libtls.la -lgnutls + endif +-- +2.55.0 +
package/libnfs/0005-move-link-against-gnutls-into-main-library-as-it-is-.patch new file +29 -0
@@ -0,0 +1,29 @@ +From 74437cb4e9d47daeeb3f851c5b14eb0d207ceb17 Mon Sep 17 00:00:00 2001 +From: fundawang <[email protected]> +Date: Sun, 26 Jan 2025 16:39:59 +0800 +Subject: [PATCH] move link against gnutls into main library, as it is + referenced by tls/libtls.la + +Upstream: 546c9ed8624403078ef993138b56dce4c3558523 +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + utils/Makefile.am | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/utils/Makefile.am b/utils/Makefile.am +index bd584b8..2ae7636 100644 +--- a/utils/Makefile.am ++++ b/utils/Makefile.am +@@ -16,9 +16,6 @@ AM_CPPFLAGS = \ + "-D_U_=__attribute__((unused))" + + COMMON_LIBS = ../lib/libnfs.la $(LIBSOCKET) +-if HAVE_TLS +-COMMON_LIBS += -lgnutls +-endif + + nfs_cat_LDADD = $(COMMON_LIBS) + nfs_ls_LDADD = $(COMMON_LIBS) +-- +2.55.0 +
package/libnfs/0006-autotools-fix-undefined-reference-if-libnfs-was-buil.patch new file +41 -0
41 lines not on this page · raw message
Signature · 6 lines
2.55.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v3 1/2] package/libnfs: fix gnutls support
Hi Thomas,
Thank you for taking care of this!
Quoted 15 lines · Thomas Petazzoni
In Buildroot commit
a035a0f99fa3bbeca776d741bbdeb6c04b3b35c8, libnfs was bumped from 5.0.3 to 6.0.2, and 6.0.2 brought optional gnutls support.Unfortunately, the gnutls support was a bit buggy, as the libnfs library ends up using gnutls symbols without being linked to libgnutls, causing build failures down the road when other packages try to link against libnfs.
We backport 3 commits from upstream 6.0.2..7.0.0 to address this issue.
Fixes:
Quoted 7 lines
https://autobuild.buildroot.net/results/b070248b2bceaceaaed8e826b1247ccfba1ba9fb
https://autobuild.buildroot.net/results/e1461b76121addd8f04f08819b2e3e453a12c679
https://autobuild.buildroot.net/results/87c79193d2ea86f47e36232fe514837ad99c5f30
Signed-off-by Thomas Petazzoni <[email protected]>
---
Tested on x86_64 (build, run)
Kind regards,
Andreas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v3 1/2] package/libnfs: fix gnutls support
In reply to Thomas Petazzoni via buildrootQuoted 14 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni via buildroot <[email protected]> writes:
In Buildroot commit
a035a0f99fa3bbeca776d741bbdeb6c04b3b35c8, libnfs was bumped from 5.0.3 to 6.0.2, and 6.0.2 brought optional gnutls support.Unfortunately, the gnutls support was a bit buggy, as the libnfs library ends up using gnutls symbols without being linked to libgnutls, causing build failures down the road when other packages try to link against libnfs.
We backport 3 commits from upstream 6.0.2..7.0.0 to address this issue.
Quoted 7 lines
Fixes:
https://autobuild.buildroot.net/results/b070248b2bceaceaaed8e826b1247ccfba1ba9fb
https://autobuild.buildroot.net/results/e1461b76121addd8f04f08819b2e3e453a12c679
https://autobuild.buildroot.net/results/87c79193d2ea86f47e36232fe514837ad99c5f30Signed-off-by Thomas Petazzoni <[email protected]>
Committed, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v3 2/2 package/libnfs: bump version to 7.0.1
In reply to Thomas Petazzoni via buildrootFrom: Andreas Ziegler <[email protected]>
Change log:
https://github.com/sahlberg/libnfs/compare/libnfs-6.0.2...libnfs-7.0.1
All patches are dropped as they are all included in 7.0.1.
--- ...t-and-use-const-qualifier-from-point.patch | 37 ------ ...t-qualifier-from-pointer-target-type.patch | 117 ------------------ ...void-cast-to-allow-compile-for-arm32.patch | 68 ---------- ...t-gnutls-into-main-library-as-it-is-.patch | 26 ---- ...t-gnutls-into-main-library-as-it-is-.patch | 29 ----- ...defined-reference-if-libnfs-was-buil.patch | 41 ------ package/libnfs/libnfs.hash | 2 +- package/libnfs/libnfs.mk | 2 +- 8 files changed, 2 insertions(+), 320 deletions(-) delete mode 100644 package/libnfs/0001-Do-not-edit-const-and-use-const-qualifier-from-point.patch delete mode 100644 package/libnfs/0002-use-const-qualifier-from-pointer-target-type.patch delete mode 100644 package/libnfs/0003-socket-use-void-cast-to-allow-compile-for-arm32.patch delete mode 100644 package/libnfs/0004-move-link-against-gnutls-into-main-library-as-it-is-.patch delete mode 100644 package/libnfs/0005-move-link-against-gnutls-into-main-library-as-it-is-.patch delete mode 100644 package/libnfs/0006-autotools-fix-undefined-reference-if-libnfs-was-buil.patch
package/libnfs/0001-Do-not-edit-const-and-use-const-qualifier-from-point.patch deleted +0 -37
@@ -1,37 +0,0 @@ -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/0002-use-const-qualifier-from-pointer-target-type.patch deleted +0 -117
117 lines not on this page · raw message
package/libnfs/0003-socket-use-void-cast-to-allow-compile-for-arm32.patch deleted +0 -68
68 lines not on this page · raw message
package/libnfs/0004-move-link-against-gnutls-into-main-library-as-it-is-.patch deleted +0 -26
@@ -1,26 +0,0 @@ -From f054ce197a286fdd2fcb33ec1d9c236c5976adfb Mon Sep 17 00:00:00 2001 -From: fundawang <[email protected]> -Date: Sun, 26 Jan 2025 16:39:03 +0800 -Subject: [PATCH] move link against gnutls into main library, as it is - referenced by tls/libtls.la - -Upstream: d205297a10bf8d7f8846bf42f0ed618543a561a9 -Signed-off-by: Thomas Petazzoni <[email protected]> ---- - lib/Makefile.am | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/lib/Makefile.am b/lib/Makefile.am -index 82376cb..33be5e4 100644 ---- a/lib/Makefile.am -+++ b/lib/Makefile.am -@@ -48,5 +48,5 @@ libnfs_la_LIBADD = \ - - if HAVE_TLS - libnfs_la_CPPFLAGS += -I$(abs_top_srcdir)/tls --libnfs_la_LIBADD += ../tls/libtls.la -+libnfs_la_LIBADD += ../tls/libtls.la -lgnutls - endif --- -2.55.0 -
package/libnfs/0005-move-link-against-gnutls-into-main-library-as-it-is-.patch deleted +0 -29
@@ -1,29 +0,0 @@ -From 74437cb4e9d47daeeb3f851c5b14eb0d207ceb17 Mon Sep 17 00:00:00 2001 -From: fundawang <[email protected]> -Date: Sun, 26 Jan 2025 16:39:59 +0800 -Subject: [PATCH] move link against gnutls into main library, as it is - referenced by tls/libtls.la - -Upstream: 546c9ed8624403078ef993138b56dce4c3558523 -Signed-off-by: Thomas Petazzoni <[email protected]> ---- - utils/Makefile.am | 3 --- - 1 file changed, 3 deletions(-) - -diff --git a/utils/Makefile.am b/utils/Makefile.am -index bd584b8..2ae7636 100644 ---- a/utils/Makefile.am -+++ b/utils/Makefile.am -@@ -16,9 +16,6 @@ AM_CPPFLAGS = \ - "-D_U_=__attribute__((unused))" - - COMMON_LIBS = ../lib/libnfs.la $(LIBSOCKET) --if HAVE_TLS --COMMON_LIBS += -lgnutls --endif - - nfs_cat_LDADD = $(COMMON_LIBS) - nfs_ls_LDADD = $(COMMON_LIBS) --- -2.55.0 -
package/libnfs/0006-autotools-fix-undefined-reference-if-libnfs-was-buil.patch deleted +0 -41
41 lines not on this page · raw message
package/libnfs/libnfs.hash +1 -1
@@ -1,5 +1,5 @@ # Locally calculated -sha256 4e5459cc3e0242447879004e9ad28286d4d27daa42cbdcde423248fad911e747 libnfs-6.0.2.tar.gz +sha256 ba62a2705f7100727b8ea37741e6bb6d5e2ff9ec61fee4d77360793eca5eddc2 libnfs-7.0.1.tar.gz sha256 edd960c0142b8ada98b43b6396b78f4e557b0bc70ac601a51e397ad04070e2c5 COPYING sha256 d9406ced95457941032aa11d04623b8ab71f2827a3395ebef137aec475be35b1 LICENCE-BSD.txt sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 LICENCE-LGPL-2.1.txt
package/libnfs/libnfs.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -LIBNFS_VERSION = 6.0.2 +LIBNFS_VERSION = 7.0.1 LIBNFS_SITE = $(call github,sahlberg,libnfs,libnfs-$(LIBNFS_VERSION)) LIBNFS_INSTALL_STAGING = YES LIBNFS_AUTORECONF = YES
Signature · 6 lines
2.55.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v3 2/2] package/libnfs: bump version to 7.0.1
Quoted 10 lines · Thomas Petazzoni
From: Andreas Ziegler <[email protected]>
Change log:
https://github.com/sahlberg/libnfs/compare/libnfs-6.0.2...libnfs-7.0.1All patches are dropped as they are all included in 7.0.1.
Signed-off-by Andreas Ziegler <[email protected]>[Thomas: bump to 7.0.1]Signed-off-by Thomas Petazzoni <[email protected]>
---
Tested on aarch64 (build, run)
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni via buildroot
AppliedRe: [Buildroot] [PATCH v3 2/2] package/libnfs: bump version to 7.0.1
In reply to Thomas Petazzoni via buildrootQuoted 10 lines · Thomas Petazzoni via buildroot
From: Andreas Ziegler <[email protected]>
Change log:
https://github.com/sahlberg/libnfs/compare/libnfs-6.0.2...libnfs-7.0.1All patches are dropped as they are all included in 7.0.1.
Signed-off-by Andreas Ziegler <[email protected]>[Thomas: bump to 7.0.1]Signed-off-by Thomas Petazzoni <[email protected]>
Applied to master, thanks!
Best regards,
Thomas Petazzoni
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot