diff --git a/0002-readelf-remove-limit-check.patch b/0002-readelf-remove-limit-check.patch deleted file mode 100644 index f7607d462e7128e6c940754d816eed3dcfe24775..0000000000000000000000000000000000000000 --- a/0002-readelf-remove-limit-check.patch +++ /dev/null @@ -1,43 +0,0 @@ -From 940923f64439967b0dc2340e4bce45bd919249fc Mon Sep 17 00:00:00 2001 -From: Chunmei Xu -Date: Thu, 20 Apr 2023 16:04:49 +0800 -Subject: [PATCH] readelf: remove limit check - -This check will cause firefox build failed with: -Recognition of file "/xxx/usr/lib64/firefox/libxul.so" -failed: mode 100755 , dynamically linked, -Note section size too big (104532184 > 67108864) (Invalid argument) - -Signed-off-by: Chunmei Xu ---- - src/readelf.c | 7 ------- - 1 file changed, 7 deletions(-) - -diff --git a/src/readelf.c b/src/readelf.c -index 97d1451..f6e3bec 100644 ---- a/src/readelf.c -+++ b/src/readelf.c -@@ -62,7 +62,6 @@ file_private uint64_t getu64(int, uint64_t); - - #define MAX_PHNUM 128 - #define MAX_SHNUM 32768 --#define MAX_SHSIZE (64 * 1024 * 1024) - #define SIZE_UNKNOWN CAST(off_t, -1) - - file_private int -@@ -1453,12 +1452,6 @@ doshn(struct magic_set *ms, int clazz, int swap, int fd, off_t off, int num, - return -1; - return 0; - } -- if (xsh_size > MAX_SHSIZE) { -- file_error(ms, errno, "Note section size too " -- "big (%ju > %u)", (uintmax_t)xsh_size, -- MAX_SHSIZE); -- return -1; -- } - if ((nbuf = malloc(xsh_size)) == NULL) { - file_error(ms, errno, "Cannot allocate memory" - " for note"); --- -2.19.1.6.gb485710b - diff --git a/file-5.44.tar.gz b/file-5.44.tar.gz deleted file mode 100644 index 365cd9235fdf835b355ef18e527ba574fcd46324..0000000000000000000000000000000000000000 Binary files a/file-5.44.tar.gz and /dev/null differ diff --git a/file-5.45.tar.gz b/file-5.45.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..6c680b5ad31c5d860cb81fdc8ff83cf8322c3757 Binary files /dev/null and b/file-5.45.tar.gz differ diff --git a/file.spec b/file.spec index 0ef2436f73539329ee88f7686876b26d4524c83d..d0b3d057e07c4f546138156f299abf53be5d2449 100644 --- a/file.spec +++ b/file.spec @@ -1,22 +1,22 @@ -%define anolis_release 3 %bcond_without python3 +%define anolis_release 1 Summary: Utility for determining file types Name: file -Version: 5.44 +Version: 5.45 Release: %{anolis_release}%{?dist} License: BSD Source0: http://ftp.astron.com/pub/file/file-%{version}.tar.gz # Upstream says it's up to distributions to add a way to support local-magic. Patch1: 0001-Updated-and-synchronize-low-version-changes.patch -Patch2: 0002-readelf-remove-limit-check.patch URL: https://www.darwinsys.com/file/ Requires: %{name}-libs = %{version}-%{release} BuildRequires: zlib-devel BuildRequires: bzip2-devel BuildRequires: xz-devel +BuildRequires: libzstd-devel BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool @@ -164,6 +164,9 @@ make -C tests check %endif %changelog +* Mon Mar 25 2024 Funda Wang - 5.45-1 +- New version 5.45 + * Tue Mar 12 2024 Bo Ren - 5.44-3 - Rebuild with python3.11