1 |
commit: bb949123596216a8af1a18b1ba4f396919a2d976 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 21 09:41:58 2021 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 21 09:42:48 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb949123 |
7 |
|
8 |
sys-apps/file: Revbump to fix xz magic |
9 |
|
10 |
Thanks-to: Mike Auty <ikelos <AT> gentoo.org> |
11 |
Closes: https://bugs.gentoo.org/784773 |
12 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
13 |
|
14 |
.../file/{file-5.40.ebuild => file-5.40-r1.ebuild} | 1 + |
15 |
sys-apps/file/files/file-5.40-xz_magic.patch | 37 ++++++++++++++++++++++ |
16 |
2 files changed, 38 insertions(+) |
17 |
|
18 |
diff --git a/sys-apps/file/file-5.40.ebuild b/sys-apps/file/file-5.40-r1.ebuild |
19 |
similarity index 98% |
20 |
rename from sys-apps/file/file-5.40.ebuild |
21 |
rename to sys-apps/file/file-5.40-r1.ebuild |
22 |
index 67c33d9f485..a901c2a4003 100644 |
23 |
--- a/sys-apps/file/file-5.40.ebuild |
24 |
+++ b/sys-apps/file/file-5.40-r1.ebuild |
25 |
@@ -38,6 +38,7 @@ RDEPEND="${DEPEND} |
26 |
|
27 |
PATCHES=( |
28 |
"${FILESDIR}/file-5.39-portage-sandbox.patch" #713710 #728978 |
29 |
+ "${FILESDIR}/file-5.40-xz_magic.patch" #784773 |
30 |
) |
31 |
|
32 |
src_prepare() { |
33 |
|
34 |
diff --git a/sys-apps/file/files/file-5.40-xz_magic.patch b/sys-apps/file/files/file-5.40-xz_magic.patch |
35 |
new file mode 100644 |
36 |
index 00000000000..e4fed0421f7 |
37 |
--- /dev/null |
38 |
+++ b/sys-apps/file/files/file-5.40-xz_magic.patch |
39 |
@@ -0,0 +1,37 @@ |
40 |
+From 9b0459afab309a82aa4e46f73a4e50dd641f3d39 Mon Sep 17 00:00:00 2001 |
41 |
+From: Christos Zoulas <christos@××××××.com> |
42 |
+Date: Mon, 19 Apr 2021 17:01:45 +0000 |
43 |
+Subject: [PATCH] PR/257: cuihao: put attributes inside the xz magic. |
44 |
+ |
45 |
+--- |
46 |
+ magic/Magdir/compress | 7 +++---- |
47 |
+ 1 file changed, 3 insertions(+), 4 deletions(-) |
48 |
+ |
49 |
+diff --git a/magic/Magdir/compress b/magic/Magdir/compress |
50 |
+index 64d11a736..41a65738f 100644 |
51 |
+--- a/magic/Magdir/compress |
52 |
++++ b/magic/Magdir/compress |
53 |
+@@ -1,5 +1,5 @@ |
54 |
+ #------------------------------------------------------------------------------ |
55 |
+-# $File: compress,v 1.80 2021/03/15 17:49:24 christos Exp $ |
56 |
++# $File: compress,v 1.81 2021/04/19 17:01:45 christos Exp $ |
57 |
+ # compress: file(1) magic for pure-compression formats (no archives) |
58 |
+ # |
59 |
+ # compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, etc. |
60 |
+@@ -265,14 +265,13 @@ |
61 |
+ |
62 |
+ # http://tukaani.org/xz/xz-file-format.txt |
63 |
+ 0 ustring \xFD7zXZ\x00 XZ compressed data, checksum |
64 |
++!:strength * 2 |
65 |
++!:mime application/x-xz |
66 |
+ >7 byte&0xf 0x0 NONE |
67 |
+ >7 byte&0xf 0x1 CRC32 |
68 |
+ >7 byte&0xf 0x4 CRC64 |
69 |
+ >7 byte&0xf 0xa SHA-256 |
70 |
+ |
71 |
+-!:strength * 2 |
72 |
+-!:mime application/x-xz |
73 |
+- |
74 |
+ # https://github.com/ckolivas/lrzip/blob/master/doc/magic.header.txt |
75 |
+ 0 string LRZI LRZIP compressed data |
76 |
+ >4 byte x - version %d |