Skip to contentSkip to conversation

package/file: bump to version 5.48

PATCH Applied Yegor Yefremov via buildroot 1 participant 6 messages Nov 3 – Nov 5

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/file: bump to version 5.48

https://github.com/file/file/blob/FILE5_48/ChangeLog

5.48 adds Landlock sandboxing, which is enabled when the toolchain provides linux/landlock.h and skipped at runtime on kernels without Landlock support.

Add two patches fixing the seccomp build, broken by the new syscall rules in 5.48:

- with musl, where pread64 is a macro once seccomp.c includes <unistd.h>;
- with kernel headers older than 5.9, which lack openat2, faccessat2 or close_range.

Assisted-by Claude:claude-opus-5-5
---
 ...f-pread64-to-fix-the-build-with-musl.patch | 40 +++++++++++++++++
 ...build-with-kernel-headers-older-than.patch | 44 +++++++++++++++++++
 package/file/file.hash                        |  4 +-
 package/file/file.mk                          |  2 +-
 4 files changed, 87 insertions(+), 3 deletions(-)
 create mode 100644 package/file/0002-seccomp-undef-pread64-to-fix-the-build-with-musl.patch
 create mode 100644 package/file/0003-seccomp-fix-the-build-with-kernel-headers-older-than.patch
package/file/0002-seccomp-undef-pread64-to-fix-the-build-with-musl.patch new file +40 -0
new file mode 100644
index 0000000000..ebb4637c54
@@ -0,0 +1,40 @@
+From dd8fc9dd375d7db78d09ea8b669e576eb617d472 Mon Sep 17 00:00:00 2001
+From: Yegor Yefremov <[email protected]>
+Date: Mon, 2 Nov 2026 22:42:54 +0100
+Subject: [PATCH] seccomp: undef pread64 to fix the build with musl
+
+Since 5.48, seccomp.c includes <unistd.h>. With _LARGEFILE64_SOURCE,
+musl's unistd.h does
+
+  #define pread64 pread
+
+which turns ALLOW_RULE(pread64) into SCMP_SYS(pread), which does not
+exist:
+
+  seccomp.c:53:52: error: '__SNR_pread' undeclared (first use in this function)
+
+Undefine the macro before using it. The same musl issue affects
+fstatat64 (bug 473).
+
+Assisted-by: Claude:claude-opus-5-5
+Upstream: sent to [email protected] on 2026-11-03, Message-Id <[email protected]>
+Signed-off-by: Yegor Yefremov <[email protected]>
+---
+ src/seccomp.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/seccomp.c b/src/seccomp.c
+index f867abcf..ea27a3a8 100644
+--- a/src/seccomp.c
++++ b/src/seccomp.c
+@@ -178,6 +178,7 @@ enable_sandbox(int flags, int action)
+ 		    SCMP_CMP(2, SCMP_CMP_MASKED_EQ, O_RDWR, O_RDWR)) == -1)
+ 			goto out;
+ 	}
++#undef pread64
+ 	ALLOW_RULE(pread64);
+ 	ALLOW_RULE(read);
+ 	ALLOW_RULE(readlink);
+-- 
+2.34.1
+
package/file/0003-seccomp-fix-the-build-with-kernel-headers-older-than.patch new file +44 -0

44 lines not on this page · raw message

package/file/file.hash +2 -2
index bb367893a9..a58684f6ad 100644
@@ -1,6 +1,6 @@
 # Locally calculated after verifying signature
-# https://astron.com/pub/file/file-5.47.tar.gz.asc
+# https://astron.com/pub/file/file-5.48.tar.gz.asc
 # using key BE04995BA8F90ED0C0C176C471112AB16CB33B3A
-sha256  45672fec165cb4cc1358a2d76b5d57d22876dcb97ab169427ac385cbe1d5597a  file-5.47.tar.gz
+sha256  ed14656883b23a364b4057c05595d93252da9bc473d30106519519d0da141283  file-5.48.tar.gz
 sha256  0bfa856a9930bddadbef95d1be1cf4e163c0be618e76ea3275caaf255283e274  COPYING
 sha256  2e14b6fa9a74f952ebfde3c96527158df281c953cfaf35609eb854d4da30131c  src/vasprintf.c
package/file/file.mk +1 -1
index b70b3c521c..ceebbe3fde 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-FILE_VERSION = 5.47
+FILE_VERSION = 5.48
 FILE_SITE = https://astron.com/pub/file
 FILE_LICENSE = BSD-2-Clause, BSD-3-Clause (vasprintf.c)
 FILE_LICENSE_FILES = COPYING src/vasprintf.c
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 9 lines · Yegor Yefremov via buildroot

https://github.com/file/file/blob/FILE5_48/ChangeLog

5.48 adds Landlock sandboxing, which is enabled when the toolchain provides linux/landlock.h and skipped at runtime on kernels without Landlock support.

Add two patches fixing the seccomp build, broken by the new syscall rules in 5.48:

Quoted 7 lines

- with musl, where pread64 is a macro once seccomp.c includes <unistd.h>;
- with kernel headers older than 5.9, which lack openat2, faccessat2 or close_range.

Assisted-by Claude:claude-opus-5-5

Applied to master, thanks!

I continue to be amazed that key open-software like file has a website like this: https://astron.com/, no Git repository, no mailing list, no nothing...

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
#2 lore raw

Hi Thomas,

Quoted 16 lines · Thomas Petazzoni
Quoted 14 lines · Yegor Yefremov via buildroot

https://github.com/file/file/blob/FILE5_48/ChangeLog

5.48 adds Landlock sandboxing, which is enabled when the toolchain provides linux/landlock.h and skipped at runtime on kernels without Landlock support.

Add two patches fixing the seccomp build, broken by the new syscall rules in 5.48:

- with musl, where pread64 is a macro once seccomp.c includes <unistd.h>;
- with kernel headers older than 5.9, which lack openat2, faccessat2 or close_range.

Quoted 8 lines
Quoted 2 lines
Assisted-by Claude:claude-opus-5-5

Applied to master, thanks!

I continue to be amazed that key open-software like file has a website like this: https://astron.com/, no Git repository, no mailing list, no nothing...

You're right. That's very odd. They seem to use CVS:
https://github.com/file/file

Yegor
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw
Quoted 6 lines · Yegor Yefremov
Quoted 3 lines

I continue to be amazed that key open-software like file has a website like this: https://astron.com/, no Git repository, no mailing list, no nothing...

You're right. That's very odd. They seem to use CVS:
https://github.com/file/file

CVS, interesting :-)

Note that https://github.com/file/file says "NOTE: do not make pull requests here, nor comment any commits, submit them usual way to bug tracker or to the mailing list.". So is there a mailing list somewhere?

Thomas

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
#4 lore raw
Quoted 10 lines · Thomas Petazzoni
Quoted 6 lines · Yegor Yefremov
Quoted 3 lines

I continue to be amazed that key open-software like file has a website like this: https://astron.com/, no Git repository, no mailing list, no nothing...

You're right. That's very odd. They seem to use CVS:
https://github.com/file/file

Quoted 6 lines

CVS, interesting :-)

Note that https://github.com/file/file says "NOTE: do not make pull requests here, nor comment any commits, submit them usual way to bug tracker or to the mailing list.". So is there a mailing list somewhere?

https://mailman.astron.com/pipermail/file/
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#5 lore raw
Quoted 6 lines · Yegor Yefremov
Quoted 4 lines

Note that https://github.com/file/file says "NOTE: do not make pull requests here, nor comment any commits, submit them usual way to bug tracker or to the mailing list.". So is there a mailing list somewhere?

https://mailman.astron.com/pipermail/file/

Nice, I see your patches there. Then perhaps we can update the
Upstream: tags in your patches to point to these archives?

Thanks!

Thomas

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