Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/hfstospell/files/, dev-util/hfstospell/
Date: Mon, 11 May 2020 17:12:30
Message-Id: 1589217136.25c7f1b7a4eb8bd35dcf7e1c991ac5476a2ec3ae.juippis@gentoo
1 commit: 25c7f1b7a4eb8bd35dcf7e1c991ac5476a2ec3ae
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 11 17:11:07 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Mon May 11 17:12:16 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25c7f1b7
7
8 dev-util/hfstospell: gcc-10 fix
9
10 Closes: https://bugs.gentoo.org/721894
11 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
12
13 .../files/hfstospell-0.5.1-gcc-10-fix.patch | 24 ++++++++++++++++++++++
14 dev-util/hfstospell/hfstospell-0.5.1.ebuild | 4 +++-
15 2 files changed, 27 insertions(+), 1 deletion(-)
16
17 diff --git a/dev-util/hfstospell/files/hfstospell-0.5.1-gcc-10-fix.patch b/dev-util/hfstospell/files/hfstospell-0.5.1-gcc-10-fix.patch
18 new file mode 100644
19 index 00000000000..0998beebe7d
20 --- /dev/null
21 +++ b/dev-util/hfstospell/files/hfstospell-0.5.1-gcc-10-fix.patch
22 @@ -0,0 +1,24 @@
23 +From a9d5afb14aa71893f142dfd3ae735e8930aa0f8a Mon Sep 17 00:00:00 2001
24 +From: Martin Liska <mliska@××××.cz>
25 +Date: Mon, 16 Mar 2020 11:32:10 +0100
26 +Subject: [PATCH] Fix a typo in wide string conversion function (#49).
27 +
28 +Revert a hunk from:
29 +04e4843e4c66beb61b756f3ceb2ac94628142185.
30 +---
31 + main.cc | 2 +-
32 + 1 file changed, 1 insertion(+), 1 deletion(-)
33 +
34 +diff --git a/main.cc b/main.cc
35 +index abecf46..e4fd676 100644
36 +--- a/main.cc
37 ++++ b/main.cc
38 +@@ -61,7 +61,7 @@ static bool suggest_reals = false;
39 + #ifdef WINDOWS
40 + static std::string wide_string_to_string(const std::wstring & wstr)
41 + {
42 +- int size_needed = WideCharToMultiByte(CP_UTF8, 0, &wstr[0], (int)§wstr.size(), NULL, 0, NULL, NULL);
43 ++ int size_needed = WideCharToMultiByte(CP_UTF8, 0, &wstr[0], (int)wstr.size(), NULL, 0, NULL, NULL);
44 + std::string str( size_needed, 0 );
45 + WideCharToMultiByte(CP_UTF8, 0, &wstr[0], (int)wstr.size(), &str[0], size_needed, NULL, NULL);
46 + return str;
47
48 diff --git a/dev-util/hfstospell/hfstospell-0.5.1.ebuild b/dev-util/hfstospell/hfstospell-0.5.1.ebuild
49 index 84452334ab9..bf47865439b 100644
50 --- a/dev-util/hfstospell/hfstospell-0.5.1.ebuild
51 +++ b/dev-util/hfstospell/hfstospell-0.5.1.ebuild
52 @@ -1,4 +1,4 @@
53 -# Copyright 1999-2019 Gentoo Authors
54 +# Copyright 1999-2020 Gentoo Authors
55 # Distributed under the terms of the GNU General Public License v2
56
57 EAPI=7
58 @@ -22,6 +22,8 @@ BDEPEND="virtual/pkgconfig"
59
60 S="${WORKDIR}/hfst-ospell-${PV}"
61
62 +PATCHES=( "${FILESDIR}/hfstospell-0.5.1-gcc-10-fix.patch" )
63 +
64 src_prepare() {
65 default
66 eautoreconf