package/libfuse3: bump to version 3.17.1
PATCH 1/1 package/libfuse3: bump to version 3.17.1
Release notes:
https://github.com/libfuse/libfuse/releases/tag/fuse-3.17.1
--- package/libfuse3/libfuse3.hash | 2 +- package/libfuse3/libfuse3.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
package/libfuse3/libfuse3.hash +1 -1
@@ -1,3 +1,3 @@ # Locally calculated sha256 checksums -sha256 1bc306be1a1f4f6c8965fbdd79c9ccca021fdc4b277d501483a711cbd7dbcd6c libfuse3-3.16.2.tar.gz +sha256 b81027fc8f444fb574de7f13edf0cf9810643d2935670c4fe19f140354241208 libfuse3-3.17.1.tar.gz sha256 b8832d9caaa075bbbd2aef24efa09f8b7ab66a832812d88c602da0c7b4397fad LICENSE
package/libfuse3/libfuse3.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -LIBFUSE3_VERSION = 3.16.2 +LIBFUSE3_VERSION = 3.17.1 LIBFUSE3_SITE = $(call github,libfuse,libfuse,fuse-$(LIBFUSE3_VERSION)) LIBFUSE3_LICENSE = LGPL-2.1 LIBFUSE3_LICENSE_FILES = LICENSE
Signature · 6 lines
2.39.5 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 1/1 package/libnvme: bump to version 1.12
For release note, see:
https://github.com/linux-nvme/libnvme/releases/tag/v1.12
--- package/libnvme/libnvme.hash | 2 +- package/libnvme/libnvme.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
package/libnvme/libnvme.hash +1 -1
@@ -1,3 +1,3 @@ # Locally calculated sha256 checksums -sha256 6d5d8ba2cc4c94a61a994c9f7f25b3b26ef973fb5c0daa37729890903f37a1f1 libnvme-1.11.1.tar.gz +sha256 53791f2e75773ba95449fc98a3b8b444d984624322ec6980049fd4eb289123d5 libnvme-1.12.tar.gz sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING
package/libnvme/libnvme.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -LIBNVME_VERSION = 1.11.1 +LIBNVME_VERSION = 1.12 LIBNVME_SITE = $(call github,linux-nvme,libnvme,v$(LIBNVME_VERSION)) LIBNVME_LICENSE = LGPL-2.1 LIBNVME_LICENSE_FILES = COPYING
Signature · 6 lines
2.39.5 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH] package/libnvme: bump to version 1.12
Quoted 4 lines · Giulio Benetti
For release note, see:
https://github.com/linux-nvme/libnvme/releases/tag/v1.12Signed-off-by Giulio Benetti <[email protected]>
Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Giulio,
Quoted 5 lines · Giulio Benetti
Release notes:
https://github.com/libfuse/libfuse/releases/tag/fuse-3.17.1Signed-off-by Giulio Benetti <[email protected]>---
[...]
package/libfuse3/libfuse3.mk line 8
Quoted 11 lines
package/libfuse3/libfuse3.mk +1
-1@@ -4,7 +4,7 @@ # ################################################################################ -LIBFUSE3_VERSION = 3.16.2 +LIBFUSE3_VERSION = 3.17.1
Building this version with the following commands, on branch master at commit 4204bfe:
cat <<EOF >.config
BR2_aarch64=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_PACKAGE_LIBFUSE3=y
EOF
make olddefconfig
make libfuse3
fails with output:
../util/fusermount.c:40:10: fatal error: linux/close_range.h: No
such file or directory
libfuse3 introduced a use of close_range() in:
https://github.com/libfuse/libfuse/commit/cdad7b6001036f1a33bddab59558eec099bcb278
The <close_range.h> header was introduced in Kernel 5.9 uapi, in:
https://web.git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=60997c3d45d9a67daf01c56d805ae4fec37e0bd8
In libfuse3, Meson checks for the (libc) function close_range(), but not for the corresponding header (in linux-headers).
Could you have a look please?
Quoted 4 lines
package/libfuse3/libfuse3.mk +0
-0LIBFUSE3_SITE = $(call github,libfuse,libfuse,fuse-$(LIBFUSE3_VERSION))
LIBFUSE3_LICENSE= LGPL-2.1
LIBFUSE3_LICENSE_FILES= LICENSE
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 1/1 package/libfuse3: bump to version 3.17.1
Release notes:
https://github.com/libfuse/libfuse/releases/tag/fuse-3.17.1
Add local patch pending upstream to fix build with linux version < 5.9.
---V1->V2:
* fix linux version < 5.9 build failure by adding local patch pending upstream
--- .../0001-Fix-build-with-kernel-5.9.patch | 72 +++++++++++++++++++ package/libfuse3/libfuse3.hash | 2 +- package/libfuse3/libfuse3.mk | 2 +- 3 files changed, 74 insertions(+), 2 deletions(-) create mode 100644 package/libfuse3/0001-Fix-build-with-kernel-5.9.patch
package/libfuse3/0001-Fix-build-with-kernel-5.9.patch new file +72 -0
@@ -0,0 +1,72 @@ +From 714fcf4123ae5512893019d2c205aad94b6afea6 Mon Sep 17 00:00:00 2001 +From: Giulio Benetti <[email protected]> +Date: Tue, 1 Apr 2025 00:53:07 +0200 +Subject: [PATCH] Fix build with kernel < 5.9 + +linux/close_range.h is only available since kernel 5.9 and +https://github.com/torvalds/linux/commit/60997c3d45d9a67daf01c56d805ae4fec37e0bd8 +resulting in the following build failure: + +../util/fusermount.c:40:10: fatal error: linux/close_range.h: No such file or directory + +So let's check for header presence and emit HAVE_LINUX_CLOSE_RANGE_H +accordingly and check for it when including <linux/close_range.h> and +calling close_range() instead of checking for close_range() function in +meson and check against HAVE_CLOSE_RANGE. + +Upstream: https://github.com/libfuse/libfuse/pull/1185 +Signed-off-by: Giulio Benetti <[email protected]> +--- + meson.build | 6 +++++- + util/fusermount.c | 4 ++-- + 2 files changed, 7 insertions(+), 3 deletions(-) + +diff --git a/meson.build b/meson.build +index cbcd70d..96c655c 100644 +--- a/meson.build ++++ b/meson.build +@@ -72,7 +72,7 @@ private_cfg.set_quoted('PACKAGE_VERSION', meson.project_version()) + # Test for presence of some functions + test_funcs = [ 'fork', 'fstatat', 'openat', 'readlinkat', 'pipe2', + 'splice', 'vmsplice', 'posix_fallocate', 'fdatasync', +- 'utimensat', 'copy_file_range', 'fallocate', 'close_range' ] ++ 'utimensat', 'copy_file_range', 'fallocate' ] + foreach func : test_funcs + private_cfg.set('HAVE_' + func.to_upper(), + cc.has_function(func, prefix: include_default, args: args_default)) +@@ -84,6 +84,10 @@ private_cfg.set('HAVE_ICONV', + private_cfg.set('HAVE_BACKTRACE', + cc.has_function('backtrace', prefix: '#include <execinfo.h>')) + ++# Test if headers exist ++private_cfg.set('HAVE_LINUX_CLOSE_RANGE_H', ++ cc.check_header('#include <linux/close_range.h>')) ++ + # Test if structs have specific member + private_cfg.set('HAVE_STRUCT_STAT_ST_ATIM', + cc.has_member('struct stat', 'st_atim', +diff --git a/util/fusermount.c b/util/fusermount.c +index dbd947c..da6d5f2 100644 +--- a/util/fusermount.c ++++ b/util/fusermount.c +@@ -36,7 +36,7 @@ + #include <stdbool.h> + #include <sys/vfs.h> + +-#ifdef HAVE_CLOSE_RANGE ++#ifdef HAVE_LINUX_CLOSE_RANGE_H + #include <linux/close_range.h> + #endif + +@@ -1477,7 +1477,7 @@ static int close_inherited_fds(int cfd) + if (cfd <= STDERR_FILENO) + return -EINVAL; + +-#ifdef HAVE_CLOSE_RANGE ++#ifdef HAVE_LINUX_CLOSE_RANGE_H + if (cfd < STDERR_FILENO + 2) { + close_range_loop(STDERR_FILENO + 1, cfd - 1, cfd); + } else { +-- +2.39.5 +
package/libfuse3/libfuse3.hash +1 -1
@@ -1,3 +1,3 @@ # Locally calculated sha256 checksums -sha256 1bc306be1a1f4f6c8965fbdd79c9ccca021fdc4b277d501483a711cbd7dbcd6c libfuse3-3.16.2.tar.gz +sha256 b81027fc8f444fb574de7f13edf0cf9810643d2935670c4fe19f140354241208 libfuse3-3.17.1.tar.gz sha256 b8832d9caaa075bbbd2aef24efa09f8b7ab66a832812d88c602da0c7b4397fad LICENSE
package/libfuse3/libfuse3.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -LIBFUSE3_VERSION = 3.16.2 +LIBFUSE3_VERSION = 3.17.1 LIBFUSE3_SITE = $(call github,libfuse,libfuse,fuse-$(LIBFUSE3_VERSION)) LIBFUSE3_LICENSE = LGPL-2.1 LIBFUSE3_LICENSE_FILES = LICENSE
Signature · 6 lines
2.39.5 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Giulio,
Thanks for the updated patch.
Quoted 9 lines · Giulio Benetti
Release notes:
https://github.com/libfuse/libfuse/releases/tag/fuse-3.17.1Add local patch pending upstream to fix build with linux version < 5.9.
Signed-off-by Giulio Benetti <[email protected]>---
V1->V2:
* fix linux version < 5.9 build failure by adding local patch pending upstream
[...]
package/libfuse3/libfuse3.mk line 8
Quoted 11 lines
package/libfuse3/libfuse3.mk +1
-1@@ -4,7 +4,7 @@ # ################################################################################ -LIBFUSE3_VERSION = 3.16.2 +LIBFUSE3_VERSION = 3.17.1
Even with the patch resolving the issue with Kernel headers < 5.9, I still see few remaining build failures with this version. See:
https://gitlab.com/jolivain/buildroot/-/pipelines/1749236624
Could you have a look please?
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Julien,
Quoted 24 lines · Julien Olivain
Hi Giulio,
Thanks for the updated patch.
Quoted 9 lines · Giulio Benetti
Release notes:
https://github.com/libfuse/libfuse/releases/tag/fuse-3.17.1Add local patch pending upstream to fix build with linux version < 5.9.
Signed-off-by Giulio Benetti <[email protected]>---
V1->V2:
* fix linux version < 5.9 build failure by adding local patch pending upstream[...]
Quoted 9 lines
package/libfuse3/libfuse3.mk +0
-0@@ -4,7 +4,7 @@ # ################################################################################
Quoted 8 lines
package/libfuse3/libfuse3.mk line 7
Quoted 2 lines
package/libfuse3/libfuse3.mk +1
-1-LIBFUSE3_VERSION = 3.16.2 +LIBFUSE3_VERSION = 3.17.1Even with the patch resolving the issue with Kernel headers < 5.9, I still see few remaining build failures with this version. See:
https://gitlab.com/jolivain/buildroot/-/pipelines/1749236624Could you have a look please?
Sure, I've forgotten to launch test-pkg -a.
Thanks for reviewing and build-testing!
Signature · 7 lines
Giulio Benetti CEO&CTO@Benetti Engineering sas _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v3 1/1 package/libfuse3: bump to version 3.17.1
In reply to Julien OlivainRelease notes:
https://github.com/libfuse/libfuse/releases/tag/fuse-3.17.1
Add 2 local patches pending upstream, one to fix build with linux version < 5.9 and one to fix presence checking of static_assert() on C++ version <
11. Let's also fix a linker failure due to missing -latomic if toolchain has atomic.
---V1->V2:
* fix linux version < 5.9 build failure by adding local patch pending upstream V2->V3:
* fix static_assert() missing function by adding local patch pending upstream
* fix link failure due to missing -latomic if toolchain has atomic
--- .../0001-Fix-build-with-kernel-5.9.patch | 72 +++++++++++++++++++ ...sert-build-failure-with-C-version-11.patch | 49 +++++++++++++ package/libfuse3/libfuse3.hash | 2 +- package/libfuse3/libfuse3.mk | 7 +- 4 files changed, 128 insertions(+), 2 deletions(-) create mode 100644 package/libfuse3/0001-Fix-build-with-kernel-5.9.patch create mode 100644 package/libfuse3/0002-Fix-static_assert-build-failure-with-C-version-11.patch
package/libfuse3/0001-Fix-build-with-kernel-5.9.patch new file +72 -0
@@ -0,0 +1,72 @@ +From 714fcf4123ae5512893019d2c205aad94b6afea6 Mon Sep 17 00:00:00 2001 +From: Giulio Benetti <[email protected]> +Date: Tue, 1 Apr 2025 00:53:07 +0200 +Subject: [PATCH] Fix build with kernel < 5.9 + +linux/close_range.h is only available since kernel 5.9 and +https://github.com/torvalds/linux/commit/60997c3d45d9a67daf01c56d805ae4fec37e0bd8 +resulting in the following build failure: + +../util/fusermount.c:40:10: fatal error: linux/close_range.h: No such file or directory + +So let's check for header presence and emit HAVE_LINUX_CLOSE_RANGE_H +accordingly and check for it when including <linux/close_range.h> and +calling close_range() instead of checking for close_range() function in +meson and check against HAVE_CLOSE_RANGE. + +Upstream: https://github.com/libfuse/libfuse/pull/1185 +Signed-off-by: Giulio Benetti <[email protected]> +--- + meson.build | 6 +++++- + util/fusermount.c | 4 ++-- + 2 files changed, 7 insertions(+), 3 deletions(-) + +diff --git a/meson.build b/meson.build +index cbcd70d..96c655c 100644 +--- a/meson.build ++++ b/meson.build +@@ -72,7 +72,7 @@ private_cfg.set_quoted('PACKAGE_VERSION', meson.project_version()) + # Test for presence of some functions + test_funcs = [ 'fork', 'fstatat', 'openat', 'readlinkat', 'pipe2', + 'splice', 'vmsplice', 'posix_fallocate', 'fdatasync', +- 'utimensat', 'copy_file_range', 'fallocate', 'close_range' ] ++ 'utimensat', 'copy_file_range', 'fallocate' ] + foreach func : test_funcs + private_cfg.set('HAVE_' + func.to_upper(), + cc.has_function(func, prefix: include_default, args: args_default)) +@@ -84,6 +84,10 @@ private_cfg.set('HAVE_ICONV', + private_cfg.set('HAVE_BACKTRACE', + cc.has_function('backtrace', prefix: '#include <execinfo.h>')) + ++# Test if headers exist ++private_cfg.set('HAVE_LINUX_CLOSE_RANGE_H', ++ cc.check_header('#include <linux/close_range.h>')) ++ + # Test if structs have specific member + private_cfg.set('HAVE_STRUCT_STAT_ST_ATIM', + cc.has_member('struct stat', 'st_atim', +diff --git a/util/fusermount.c b/util/fusermount.c +index dbd947c..da6d5f2 100644 +--- a/util/fusermount.c ++++ b/util/fusermount.c +@@ -36,7 +36,7 @@ + #include <stdbool.h> + #include <sys/vfs.h> + +-#ifdef HAVE_CLOSE_RANGE ++#ifdef HAVE_LINUX_CLOSE_RANGE_H + #include <linux/close_range.h> + #endif + +@@ -1477,7 +1477,7 @@ static int close_inherited_fds(int cfd) + if (cfd <= STDERR_FILENO) + return -EINVAL; + +-#ifdef HAVE_CLOSE_RANGE ++#ifdef HAVE_LINUX_CLOSE_RANGE_H + if (cfd < STDERR_FILENO + 2) { + close_range_loop(STDERR_FILENO + 1, cfd - 1, cfd); + } else { +-- +2.39.5 +
package/libfuse3/0002-Fix-static_assert-build-failure-with-C-version-11.patch new file +49 -0
49 lines not on this page · raw message
package/libfuse3/libfuse3.hash +1 -1
@@ -1,3 +1,3 @@ # Locally calculated sha256 checksums -sha256 1bc306be1a1f4f6c8965fbdd79c9ccca021fdc4b277d501483a711cbd7dbcd6c libfuse3-3.16.2.tar.gz +sha256 b81027fc8f444fb574de7f13edf0cf9810643d2935670c4fe19f140354241208 libfuse3-3.17.1.tar.gz sha256 b8832d9caaa075bbbd2aef24efa09f8b7ab66a832812d88c602da0c7b4397fad LICENSE
package/libfuse3/libfuse3.mk +6 -1
@@ -4,7 +4,7 @@ # ################################################################################ -LIBFUSE3_VERSION = 3.16.2 +LIBFUSE3_VERSION = 3.17.1 LIBFUSE3_SITE = $(call github,libfuse,libfuse,fuse-$(LIBFUSE3_VERSION)) LIBFUSE3_LICENSE = LGPL-2.1 LIBFUSE3_LICENSE_FILES = LICENSE
@@ -18,6 +18,11 @@ LIBFUSE3_CONF_OPTS = \ -Duseroot=false \ -Dtests=false +# Uses __atomic_fetch_sub_4 +ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) +LIBFUSE3_LDFLAGS += -latomic +endif + define LIBFUSE3_DEVICES /dev/fuse c 666 0 0 10 229 0 0 - endef
Signature · 6 lines
2.39.5 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 9 lines · Giulio Benetti
Release notes:
https://github.com/libfuse/libfuse/releases/tag/fuse-3.17.1Add 2 local patches pending upstream, one to fix build with linux version < 5.9 and one to fix presence checking of
static_assert()on C++ version <
11. Let's also fix a linker failure due to missing -latomic if toolchain has atomic.Signed-off-by Giulio Benetti <[email protected]>
Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot