diff mbox series

[2/3] file: upgrade 5.46 -> 5.47

Message ID 20260305232327.449180-2-yi.zhao@windriver.com
State New
Headers show
Series [1/3] iptables: upgrade 1.8.12 -> 1.8.13 | expand

Commit Message

Yi Zhao March 5, 2026, 11:23 p.m. UTC
ChangeLog:
https://github.com/file/file/blob/FILE5_47/ChangeLog

Remove backport patches.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 .../file/{file_5.46.bb => file_5.47.bb}       |  4 +-
 ...0001-PR-579-net147-Fix-stack-overrun.patch | 33 -------
 ...-reset-previous-negative-offset-in-m.patch | 93 -------------------
 3 files changed, 1 insertion(+), 129 deletions(-)
 rename meta/recipes-devtools/file/{file_5.46.bb => file_5.47.bb} (91%)
 delete mode 100644 meta/recipes-devtools/file/files/0001-PR-579-net147-Fix-stack-overrun.patch
 delete mode 100644 meta/recipes-devtools/file/files/0001-Use-4-in-default-reset-previous-negative-offset-in-m.patch
diff mbox series

Patch

diff --git a/meta/recipes-devtools/file/file_5.46.bb b/meta/recipes-devtools/file/file_5.47.bb
similarity index 91%
rename from meta/recipes-devtools/file/file_5.46.bb
rename to meta/recipes-devtools/file/file_5.47.bb
index c035e0b11d..528ed49a12 100644
--- a/meta/recipes-devtools/file/file_5.46.bb
+++ b/meta/recipes-devtools/file/file_5.47.bb
@@ -12,11 +12,9 @@  DEPENDS = "file-replacement-native"
 DEPENDS:class-native = "bzip2-replacement-native"
 
 SRC_URI = "git://github.com/file/file.git;branch=master;protocol=https \
-           file://0001-Use-4-in-default-reset-previous-negative-offset-in-m.patch \
-           file://0001-PR-579-net147-Fix-stack-overrun.patch \
            "
 
-SRCREV = "c5aa4f7f8d5063fb3c37ad57bf54bb67ec641a09"
+SRCREV = "7d20612996567ecedec7f5c58f7bf15c2cf42c19"
 
 inherit autotools update-alternatives
 
diff --git a/meta/recipes-devtools/file/files/0001-PR-579-net147-Fix-stack-overrun.patch b/meta/recipes-devtools/file/files/0001-PR-579-net147-Fix-stack-overrun.patch
deleted file mode 100644
index 57725b1c5f..0000000000
--- a/meta/recipes-devtools/file/files/0001-PR-579-net147-Fix-stack-overrun.patch
+++ /dev/null
@@ -1,33 +0,0 @@ 
-From fc6b51aa67a11806c95363e1bec925d15b3a98a5 Mon Sep 17 00:00:00 2001
-From: Christos Zoulas <christos@zoulas.com>
-Date: Thu, 5 Dec 2024 18:35:40 +0000
-Subject: [PATCH] PR/579: net147: Fix stack overrun.
-
-Upstream-Status: Backport [https://github.com/file/file/commit/b3384a1fbfa1fee99986e5750ab8e700de4f24ad]
-Signed-off-by: Alexander Kanavin <alex@linutronix.de>
----
- src/readelf.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/src/readelf.c b/src/readelf.c
-index fe4cf541..d209d86d 100644
---- a/src/readelf.c
-+++ b/src/readelf.c
-@@ -27,7 +27,7 @@
- #include "file.h"
- 
- #ifndef lint
--FILE_RCSID("@(#)$File: readelf.c,v 1.196 2024/11/11 15:49:11 christos Exp $")
-+FILE_RCSID("@(#)$File: readelf.c,v 1.197 2024/12/05 18:35:40 christos Exp $")
- #endif
- 
- #ifdef BUILTIN_ELF
-@@ -1726,7 +1726,7 @@ dophn_exec(struct magic_set *ms, int clazz, int swap, int fd, off_t off,
- 	Elf64_Phdr ph64;
- 	const char *linking_style;
- 	unsigned char nbuf[NBUFSIZE];
--	char interp[128];
-+	char interp[NBUFSIZE];
- 	ssize_t bufsize;
- 	size_t offset, align, need = 0;
- 	int pie = 0, dynamic = 0;
diff --git a/meta/recipes-devtools/file/files/0001-Use-4-in-default-reset-previous-negative-offset-in-m.patch b/meta/recipes-devtools/file/files/0001-Use-4-in-default-reset-previous-negative-offset-in-m.patch
deleted file mode 100644
index 7601e6dead..0000000000
--- a/meta/recipes-devtools/file/files/0001-Use-4-in-default-reset-previous-negative-offset-in-m.patch
+++ /dev/null
@@ -1,93 +0,0 @@ 
-From b310a0c2d3e4a1c12d579ad5c0266f1092a91340 Mon Sep 17 00:00:00 2001
-From: Christos Zoulas <christos@zoulas.com>
-Date: Wed, 27 Nov 2024 15:37:46 +0000
-Subject: [PATCH] Use +4 in default reset previous negative offset in magic in
- zip entry
-
-Upstream-Status: Backport [https://github.com/file/file/commit/b310a0c2d3e4a1c12d579ad5c0266f1092a91340]
-Signed-off-by: Alexander Kanavin <alex@linutronix.de>
----
- magic/Magdir/archive | 50 +++++++++++++++++++++++---------------------
- 1 file changed, 26 insertions(+), 24 deletions(-)
-
-diff --git a/magic/Magdir/archive b/magic/Magdir/archive
-index c8f440dc..b920f993 100644
---- a/magic/Magdir/archive
-+++ b/magic/Magdir/archive
-@@ -1,5 +1,5 @@
- #------------------------------------------------------------------------------
--# $File: archive,v 1.206 2024/11/26 19:39:14 christos Exp $
-+# $File: archive,v 1.207 2024/11/27 15:37:46 christos Exp $
- # archive:  file(1) magic for archive formats (see also "msdos" for self-
- #           extracting compressed archives)
- #
-@@ -1875,15 +1875,6 @@
- >>>>>-22	string	PK\005\006
- >>>>>>(-6.l-16)	string	APK\x20Sig\x20Block\x2042	\b, with APK Signing Block
- 
--# Keyman Compiled Package File (keyman.com)
--# https://help.keyman.com/developer/current-version/reference/file-types/kmp
--# Find start of central directory
-->>>(-6.l)	string		PK\001\002
--# Scan central directory for string 'kmp.json', will suffice for a
--# package containing about 150 files
-->>>>(-6.l)	search/9000	kmp.json	Keyman Compiled Package File
--!:mime	application/vnd.keyman.kmp+zip
--!:ext kmp
- 
- # Specialised zip formats which start with a member named 'mimetype'
- # (stored uncompressed, with no 'extra field') containing the file's MIME type.
-@@ -2123,25 +2114,36 @@
- #>30	search/100/b application/epub+zip	EPUB document
- #!:mime application/epub+zip
- 
--# Generic zip archives (Greg Roelofs, c/o zip-bugs@wkuvx1.wku.edu)
--#   Next line excludes specialized formats:
-+# APK Signing Block
- >(26.s+30)	leshort	!0xcafe
- >>30	search/100/b !application/epub+zip
-->>>26    string          !\x8\0\0\0mimetype	Zip archive data
--!:mime	application/zip
-->>>>4	beshort		x			\b, at least
-->>>>4	use		zipversion
-->>>>4	beshort		x			to extract
-->>>>8	beshort		x			\b, compression method=
-->>>>8	use		zipcompression
-->>>>0x161	string		WINZIP		\b, WinZIP self-extracting
--# APK Signing Block
-->0	default	x
-->>-22	string	PK\005\006
-->>>(-6.l-16)	string	APK\x20Sig\x20Block\x2042	Android package (APK), with APK Signing Block
-+>>>26    string          !\x8\0\0\0mimetype
-+>>>>-22	string	PK\005\006
-+>>>>>(-6.l-16)	string	APK\x20Sig\x20Block\x2042	Android package (APK), with APK Signing Block
- !:mime	application/vnd.android.package-archive
- !:ext	apk
- 
-+# Keyman Compiled Package File (keyman.com)
-+# https://help.keyman.com/developer/current-version/reference/file-types/kmp
-+# Find start of central directory
-+>>>>>(-6.l)	string		PK\001\002
-+# Scan central directory for string 'kmp.json', will suffice for a
-+# package containing about 150 files
-+>>>>>>(-6.l)	search/9000	kmp.json	Keyman Compiled Package File
-+!:mime	application/vnd.keyman.kmp+zip
-+!:ext kmp
-+
-+# Generic zip archives (Greg Roelofs, c/o zip-bugs@wkuvx1.wku.edu)
-+#   Next line excludes specialized formats:
-+>>>>+4	default		x
-+>>>>>4	beshort		x			Zip archive data, at least
-+!:mime	application/zip
-+>>>>>4	use		zipversion
-+>>>>>4	beshort		x			to extract
-+>>>>>8	beshort		x			\b, compression method=
-+>>>>>8	use		zipcompression
-+>>>>>0x161	string		WINZIP		\b, WinZIP self-extracting
-+
- # Zip archives (Greg Roelofs, c/o zip-bugs@wkuvx1.wku.edu)
- 0	string		PK\005\006	Zip archive data (empty)
- !:mime application/zip
--- 
-2.39.5
-