[packages/file] - added gettext-no-random-translations patch (remove random translations from .mo files info) - rele
qboosh
qboosh at pld-linux.org
Tue Nov 3 21:39:10 CET 2020
commit dc82de139dc6a636e7aac14d4cc9b65e56462411
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Nov 3 21:39:10 2020 +0100
- added gettext-no-random-translations patch (remove random translations from .mo files info)
- release 4
file-gettext-no-random-translations.patch | 21 +++++++++++++++++++++
file.spec | 4 +++-
2 files changed, 24 insertions(+), 1 deletion(-)
---
diff --git a/file.spec b/file.spec
index fef4f80..d2b821f 100644
--- a/file.spec
+++ b/file.spec
@@ -30,7 +30,7 @@ Summary(zh_CN.UTF-8): 判定文件类型的工具。
Summary(zh_TW.UTF-8): 用於決定檔案類型的一個工具程式。
Name: file
Version: 5.39
-Release: 3
+Release: 4
License: distributable
Group: Applications/File
Source0: ftp://ftp.astron.com/pub/file/%{name}-%{version}.tar.gz
@@ -43,6 +43,7 @@ Source4: %{name}-magic.mime-gen.awk
Patch0: %{name}-selinux.patch
Patch1: searchpath.patch
Patch2: automake.patch
+Patch3: %{name}-gettext-no-random-translations.patch
Patch4: name-use-count.patch
Patch5: wasm.patch
URL: http://www.darwinsys.com/file/
@@ -273,6 +274,7 @@ Wiązania Pythona 3 do biblioteki libmagic.
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
%patch4 -p1
%patch5 -p1
diff --git a/file-gettext-no-random-translations.patch b/file-gettext-no-random-translations.patch
new file mode 100644
index 0000000..0b73bbf
--- /dev/null
+++ b/file-gettext-no-random-translations.patch
@@ -0,0 +1,21 @@
+--- file-5.39/magic/Magdir/gnu.orig 2020-05-31 12:34:40.000000000 +0200
++++ file-5.39/magic/Magdir/gnu 2020-11-03 21:13:20.100589010 +0100
+@@ -80,18 +80,6 @@
+ >>&0 ulelong x
+ # translation 0 seems to be often Project-Id with name and version
+ >>>(&-4) string x \b, %s
+-# trans. 1 with bytes >= 1 unlike icoutils-0.31.0\po\en at boldquot.gmo with 1 NL
+->(16.l+8) ulelong >1
+->>&0 ulelong x
+->>>(&-4) ubyte !0x0A
+->>>>&-1 string x '%s'
+-# 1 New Line like in tar-1.29\po\de.gmo
+->>>(&-4) ubyte =0x0A
+->>>>&0 ubyte !0x0A
+->>>>>&-1 string x '%s'
+-# 2nd New Line like in parted-3.1\po\de.gmo
+->>>>&0 ubyte =0x0A
+->>>>>&0 string x '%s'
+
+ 0 string \225\4\22\336 GNU message catalog (big endian),
+ #0 ubelong 0x950412DE GNU-format message catalog data
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/file.git/commitdiff/dc82de139dc6a636e7aac14d4cc9b65e56462411
More information about the pld-cvs-commit
mailing list