1 |
commit: 2c5ad14317ea5dc717cf2d2766a3fd7c7fe44078 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 21 23:24:50 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 21 23:24:57 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c5ad143 |
7 |
|
8 |
games-board/xboard: tweak for gcc-10 |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
12 |
|
13 |
games-board/xboard/files/xboard-4.9.1-gcc-10.patch | 32 ++++++++++++++++++++++ |
14 |
games-board/xboard/xboard-4.9.1.ebuild | 3 +- |
15 |
2 files changed, 34 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/games-board/xboard/files/xboard-4.9.1-gcc-10.patch b/games-board/xboard/files/xboard-4.9.1-gcc-10.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..76249036ead |
20 |
--- /dev/null |
21 |
+++ b/games-board/xboard/files/xboard-4.9.1-gcc-10.patch |
22 |
@@ -0,0 +1,32 @@ |
23 |
+--- a/backend.h |
24 |
++++ b/backend.h |
25 |
+@@ -242,7 +242,7 @@ extern GameInfo gameInfo; |
26 |
+ |
27 |
+ /* ICS vars used with backend.c and zippy.c */ |
28 |
+ enum ICS_TYPE { ICS_GENERIC, ICS_ICC, ICS_FICS, ICS_CHESSNET /* not really supported */ }; |
29 |
+-enum ICS_TYPE ics_type; |
30 |
++extern enum ICS_TYPE ics_type; |
31 |
+ |
32 |
+ /* pgntags.c prototypes |
33 |
+ */ |
34 |
+--- a/evalgraph.h |
35 |
++++ b/evalgraph.h |
36 |
+@@ -34,7 +34,7 @@ typedef enum { PEN_NONE, PEN_BLACK, PEN_DOTTED, PEN_BLUEDOTTED, PEN_BOLDWHITE, P |
37 |
+ #define OPEN 0 |
38 |
+ |
39 |
+ /* Module globals */ |
40 |
+-ChessProgramStats_Move * currPvInfo; |
41 |
++extern ChessProgramStats_Move * currPvInfo; |
42 |
+ extern int currFirst; |
43 |
+ extern int currLast; |
44 |
+ extern int currCurrent; |
45 |
+--- a/xaw/xhistory.c |
46 |
++++ b/xaw/xhistory.c |
47 |
+@@ -96,7 +96,6 @@ ScrollToCursor (Option *opt, int caretPos) |
48 |
+ |
49 |
+ // ------------------------------ callbacks -------------------------- |
50 |
+ |
51 |
+-char *historyText; |
52 |
+ char historyTranslations[] = |
53 |
+ "<Btn3Down>: select-start() \n \ |
54 |
+ <Btn3Up>: extend-end(PRIMARY) SelectMove() \n"; |
55 |
|
56 |
diff --git a/games-board/xboard/xboard-4.9.1.ebuild b/games-board/xboard/xboard-4.9.1.ebuild |
57 |
index a2e47ab0472..96d734dff45 100644 |
58 |
--- a/games-board/xboard/xboard-4.9.1.ebuild |
59 |
+++ b/games-board/xboard/xboard-4.9.1.ebuild |
60 |
@@ -1,4 +1,4 @@ |
61 |
-# Copyright 1999-2019 Gentoo Authors |
62 |
+# Copyright 1999-2020 Gentoo Authors |
63 |
# Distributed under the terms of the GNU General Public License v2 |
64 |
|
65 |
EAPI=7 |
66 |
@@ -43,6 +43,7 @@ RDEPEND="${DEPEND}" |
67 |
PATCHES=( |
68 |
"${FILESDIR}"/${PN}-4.8.0-gettext.patch |
69 |
"${FILESDIR}"/${PN}-4.8.0-gnuchess-default.patch |
70 |
+ "${FILESDIR}"/${PN}-4.9.1-gcc-10.patch |
71 |
) |
72 |
|
73 |
DOCS=( AUTHORS COPYRIGHT ChangeLog FAQ.html NEWS README TODO ics-parsing.txt ) |