Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-doc/halibut/, app-doc/halibut/files/
Date: Sat, 28 Nov 2020 23:10:07
Message-Id: 1606604923.de2c720021b8aad37dd392a1a395fb47cf474bb9.soap@gentoo
1 commit: de2c720021b8aad37dd392a1a395fb47cf474bb9
2 Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
3 AuthorDate: Sat Nov 28 23:08:43 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 28 23:08:43 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de2c7200
7
8 app-doc/halibut: fix build with gcc-10
9
10 * Thanks to lekto <AT> o2.pl for submitting the patch
11
12 Closes: https://bugs.gentoo.org/707020
13 Package-Manager: Portage-3.0.9, Repoman-3.0.1
14 Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
15 Signed-off-by: David Seifert <soap <AT> gentoo.org>
16
17 app-doc/halibut/files/halibut-1.2-fno-common.patch | 22 ++++++++++++++++++++++
18 app-doc/halibut/halibut-1.2.ebuild | 5 +++--
19 2 files changed, 25 insertions(+), 2 deletions(-)
20
21 diff --git a/app-doc/halibut/files/halibut-1.2-fno-common.patch b/app-doc/halibut/files/halibut-1.2-fno-common.patch
22 new file mode 100644
23 index 00000000000..e547e304d9c
24 --- /dev/null
25 +++ b/app-doc/halibut/files/halibut-1.2-fno-common.patch
26 @@ -0,0 +1,22 @@
27 +--- a/bk_paper.c
28 ++++ b/bk_paper.c
29 +@@ -75,6 +75,8 @@
30 + #include "halibut.h"
31 + #include "paper.h"
32 +
33 ++font_info *all_fonts;
34 ++
35 + typedef struct paper_conf_Tag paper_conf;
36 + typedef struct paper_idx_Tag paper_idx;
37 +
38 +--- a/paper.h
39 ++++ b/paper.h
40 +@@ -78,7 +78,7 @@ struct ligature_Tag {
41 + * metrics are read in.
42 + */
43 +
44 +-font_info *all_fonts;
45 ++extern font_info *all_fonts;
46 +
47 + struct font_info_Tag {
48 + font_info *next;
49
50 diff --git a/app-doc/halibut/halibut-1.2.ebuild b/app-doc/halibut/halibut-1.2.ebuild
51 index 13c64206e3f..933b648f2be 100644
52 --- a/app-doc/halibut/halibut-1.2.ebuild
53 +++ b/app-doc/halibut/halibut-1.2.ebuild
54 @@ -1,4 +1,4 @@
55 -# Copyright 1999-2018 Gentoo Foundation
56 +# Copyright 1999-2020 Gentoo Authors
57 # Distributed under the terms of the GNU General Public License v2
58
59 EAPI="6"
60 @@ -12,7 +12,8 @@ SRC_URI="https://www.chiark.greenend.org.uk/~sgtatham/${PN}/${P}/${P}.tar.gz"
61 LICENSE="MIT"
62 SLOT="0"
63 KEYWORDS="amd64 ppc x86"
64 -IUSE=""
65 +
66 +PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
67
68 src_compile() {
69 tc-export CC