From 4b5fdef060665e6f42a5f67a3630ae0635e38f83 Mon Sep 17 00:00:00 2001 From: Ondrej Dubaj Date: Jan 24 2019 08:43:35 +0000 Subject: Added Linux PowerPC core offsets for Linux + fixed bug #1161911 --- diff --git a/file-5.35-add-PowerPC-core-offsets.patch b/file-5.35-add-PowerPC-core-offsets.patch new file mode 100644 index 0000000..51b511d --- /dev/null +++ b/file-5.35-add-PowerPC-core-offsets.patch @@ -0,0 +1,28 @@ +From b7dc8766080bf6189d6f15f7887c80ac456e01b9 Mon Sep 17 00:00:00 2001 +From: Ondrej Dubaj +Date: Thu, 24 Jan 2019 09:37:52 +0100 +Subject: [PATCH] Add Linux PowerPC core offsets for Linux + fixed bug #1161911 + +--- + src/readelf.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/src/readelf.c b/src/readelf.c +index 909e414..642d6fd 100644 +--- a/src/readelf.c ++++ b/src/readelf.c +@@ -262,7 +262,10 @@ static const size_t prpsoffsets32[] = { + 84, /* SunOS 5.x (short name) */ + + 44, /* Linux (command line) */ +- 28, /* Linux 2.0.36 (short name) */ ++ 28, /* Linux (short name) */ ++ ++ 48, /* Linux PowerPC (command line) */ ++ 32, /* Linux PowerPC (short name) */ + + 8, /* FreeBSD */ + }; +-- +2.17.1 + diff --git a/file.spec b/file.spec index 7afb6b1..8e61669 100644 --- a/file.spec +++ b/file.spec @@ -15,7 +15,7 @@ Summary: A utility for determining file types Name: file Version: 5.35 -Release: 3%{?dist} +Release: 4%{?dist} License: BSD Source0: ftp://ftp.astron.com/pub/file/file-%{version}.tar.gz @@ -35,6 +35,9 @@ Patch5: file-5.35-qcow2-misleading.patch # fixed bug missidentifying netpbm files (#856092) Patch6: file-5.35-netpbm-misleading.patch +# added Linux PowerPC core offsets for Linux + fixed bug #1161911 +Patch7: file-5.35-add-PowerPC-core-offsets.patch + URL: http://www.darwinsys.com/file/ Requires: file-libs = %{version}-%{release} BuildRequires: zlib-devel @@ -211,6 +214,9 @@ cd %{py3dir} %endif %changelog +* Thu Jan 24 2019 Ondrej Dubaj - 5.35-4 +- Added Linux PowerPC core offsets for Linux + fixed bug #1161911 + * Thu Jan 24 2019 Ondrej Dubaj - 5.35-3 - Fixed bug missidentifying netpbm files (#856092)