Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/mimetic/files/, dev-libs/mimetic/
Date: Wed, 19 Feb 2020 01:31:24
Message-Id: 1582075849.73e3cff3e5c20ce30b90326849b215c31aa5cb3e.gyakovlev@gentoo
1 commit: 73e3cff3e5c20ce30b90326849b215c31aa5cb3e
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 19 01:26:18 2020 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 19 01:30:49 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73e3cff3
7
8 dev-libs/mimetic: keyword on ~ppc64
9
10 add signed char patch to allow build on arches
11 where char is unsigned
12 ======================================
13 Tests Statistics
14 --------------------------------------
15 Functions Checks
16 Success 65 2740
17 Failed 0 0
18 --------------------------------------
19 Total 65 2740
20 ======================================
21
22 Package-Manager: Portage-2.3.89, Repoman-2.3.20
23 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
24
25 dev-libs/mimetic/files/signed-char.patch | 31 +++++++++++++++++++++++++++++++
26 dev-libs/mimetic/mimetic-0.9.8.ebuild | 6 ++++--
27 2 files changed, 35 insertions(+), 2 deletions(-)
28
29 diff --git a/dev-libs/mimetic/files/signed-char.patch b/dev-libs/mimetic/files/signed-char.patch
30 new file mode 100644
31 index 00000000000..df33df9e2b7
32 --- /dev/null
33 +++ b/dev-libs/mimetic/files/signed-char.patch
34 @@ -0,0 +1,31 @@
35 +Description: fix FTBFS on architectures where char is unsigned
36 + Fix error
37 + base64.cxx:30:1: error: narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing]
38 + by making Base64::sDecTable a signed char.
39 +Bug-Debian: https://bugs.debian.org/859963
40 +Forwarded: via email
41 +Author: gregor herrmann <gregoa@××××××.org>
42 +Last-Update: 2017-04-10
43 +
44 +--- a/mimetic/codec/base64.cxx
45 ++++ b/mimetic/codec/base64.cxx
46 +@@ -13,7 +13,7 @@
47 + "abcdefghijklmnopqrstuvwxyz"
48 + "0123456789+/=";
49 +
50 +-const char Base64::sDecTable[] = {
51 ++const signed char Base64::sDecTable[] = {
52 + -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
53 + -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
54 + -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
55 +--- a/mimetic/codec/base64.h
56 ++++ b/mimetic/codec/base64.h
57 +@@ -20,7 +20,7 @@
58 + enum { default_maxlen = 76 };
59 + enum { eq_sign = 100 };
60 + static const char sEncTable[];
61 +- static const char sDecTable[];
62 ++ static const signed char sDecTable[];
63 + static const int sDecTableSz;
64 + public:
65 + class Encoder; class Decoder;
66
67 diff --git a/dev-libs/mimetic/mimetic-0.9.8.ebuild b/dev-libs/mimetic/mimetic-0.9.8.ebuild
68 index ffa4669138a..3f54ec09712 100644
69 --- a/dev-libs/mimetic/mimetic-0.9.8.ebuild
70 +++ b/dev-libs/mimetic/mimetic-0.9.8.ebuild
71 @@ -1,4 +1,4 @@
72 -# Copyright 1999-2016 Gentoo Foundation
73 +# Copyright 1999-2020 Gentoo Authors
74 # Distributed under the terms of the GNU General Public License v2
75
76 EAPI=6
77 @@ -11,11 +11,13 @@ SRC_URI="http://www.codesink.org/download/${P}.tar.gz"
78
79 LICENSE="MIT"
80 SLOT="0"
81 -KEYWORDS="amd64 x86"
82 +KEYWORDS="amd64 ~ppc64 x86"
83 IUSE="doc examples"
84
85 DEPEND="doc? ( app-doc/doxygen )"
86
87 +PATCHES=( "${FILESDIR}/signed-char.patch" )
88 +
89 src_prepare() {
90 default