1 |
commit: f83e8e55fd6d69c9438b7e6115ff51cf97b35050 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 19 15:20:07 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 19 15:20:07 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f83e8e55 |
7 |
|
8 |
app-misc/mc: fix build failure on 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 |
app-misc/mc/files/mc-4.8.23-gcc-10.patch | 79 ++++++++++++++++++++++++++++++++ |
14 |
app-misc/mc/mc-4.8.23-r2.ebuild | 3 +- |
15 |
2 files changed, 81 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/app-misc/mc/files/mc-4.8.23-gcc-10.patch b/app-misc/mc/files/mc-4.8.23-gcc-10.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..b7cc3ee71a9 |
20 |
--- /dev/null |
21 |
+++ b/app-misc/mc/files/mc-4.8.23-gcc-10.patch |
22 |
@@ -0,0 +1,79 @@ |
23 |
+From 093571938a6c31706f918b011335b8ab30602336 Mon Sep 17 00:00:00 2001 |
24 |
+From: Andrew Borodin <aborodin@×××××.ru> |
25 |
+Date: Sat, 23 Nov 2019 17:41:58 +0300 |
26 |
+Subject: [PATCH] Ticket #4035: fix compile failure on OS X 10.9. |
27 |
+ |
28 |
+Fix duplication of menu_map definition. |
29 |
+ |
30 |
+Move menu_map definition to lib/widget/menu.c. |
31 |
+ |
32 |
+Signed-off-by: Andrew Borodin <aborodin@×××××.ru> |
33 |
+--- |
34 |
+ lib/widget/menu.c | 2 +- |
35 |
+ lib/widget/menu.h | 2 ++ |
36 |
+ src/keybind-defaults.c | 3 +-- |
37 |
+ src/keybind-defaults.h | 1 - |
38 |
+ 4 files changed, 4 insertions(+), 4 deletions(-) |
39 |
+ |
40 |
+diff --git a/lib/widget/menu.c b/lib/widget/menu.c |
41 |
+index b7476b62b..68ae6f6ce 100644 |
42 |
+--- a/lib/widget/menu.c |
43 |
++++ b/lib/widget/menu.c |
44 |
+@@ -46,7 +46,7 @@ |
45 |
+ |
46 |
+ /*** global variables ****************************************************************************/ |
47 |
+ |
48 |
+-const global_keymap_t *menu_map; |
49 |
++const global_keymap_t *menu_map = NULL; |
50 |
+ |
51 |
+ /*** file scope macro definitions ****************************************************************/ |
52 |
+ |
53 |
+diff --git a/lib/widget/menu.h b/lib/widget/menu.h |
54 |
+index c522a16c8..fad6fa639 100644 |
55 |
+--- a/lib/widget/menu.h |
56 |
++++ b/lib/widget/menu.h |
57 |
+@@ -39,6 +39,8 @@ typedef struct WMenuBar |
58 |
+ |
59 |
+ /*** global variables defined in .c file *********************************************************/ |
60 |
+ |
61 |
++extern const global_keymap_t *menu_map; |
62 |
++ |
63 |
+ /*** declarations of public functions ************************************************************/ |
64 |
+ |
65 |
+ menu_entry_t *menu_entry_create (const char *name, long command); |
66 |
+diff --git a/src/keybind-defaults.c b/src/keybind-defaults.c |
67 |
+index 10ba341ee..0ba4840df 100644 |
68 |
+--- a/src/keybind-defaults.c |
69 |
++++ b/src/keybind-defaults.c |
70 |
+@@ -28,7 +28,7 @@ |
71 |
+ #include <config.h> |
72 |
+ |
73 |
+ #include "lib/global.h" |
74 |
+-#include "lib/widget.h" /* dialog_map, input_map, listbox_map */ |
75 |
++#include "lib/widget.h" /* dialog_map, input_map, listbox_map, menu_map */ |
76 |
+ |
77 |
+ #include "keybind-defaults.h" |
78 |
+ |
79 |
+@@ -56,7 +56,6 @@ GArray *diff_keymap = NULL; |
80 |
+ const global_keymap_t *main_map = NULL; |
81 |
+ const global_keymap_t *main_x_map = NULL; |
82 |
+ const global_keymap_t *panel_map = NULL; |
83 |
+-const global_keymap_t *menu_map = NULL; |
84 |
+ const global_keymap_t *tree_map = NULL; |
85 |
+ const global_keymap_t *help_map = NULL; |
86 |
+ |
87 |
+diff --git a/src/keybind-defaults.h b/src/keybind-defaults.h |
88 |
+index edb05c67f..6b7266589 100644 |
89 |
+--- a/src/keybind-defaults.h |
90 |
++++ b/src/keybind-defaults.h |
91 |
+@@ -35,7 +35,6 @@ extern GArray *diff_keymap; |
92 |
+ extern const global_keymap_t *main_map; |
93 |
+ extern const global_keymap_t *main_x_map; |
94 |
+ extern const global_keymap_t *panel_map; |
95 |
+-extern const global_keymap_t *menu_map; |
96 |
+ extern const global_keymap_t *tree_map; |
97 |
+ extern const global_keymap_t *help_map; |
98 |
+ |
99 |
+-- |
100 |
+2.25.0 |
101 |
+ |
102 |
|
103 |
diff --git a/app-misc/mc/mc-4.8.23-r2.ebuild b/app-misc/mc/mc-4.8.23-r2.ebuild |
104 |
index 856331ef9aa..64112aaf67b 100644 |
105 |
--- a/app-misc/mc/mc-4.8.23-r2.ebuild |
106 |
+++ b/app-misc/mc/mc-4.8.23-r2.ebuild |
107 |
@@ -1,4 +1,4 @@ |
108 |
-# Copyright 1999-2019 Gentoo Authors |
109 |
+# Copyright 1999-2020 Gentoo Authors |
110 |
# Distributed under the terms of the GNU General Public License v2 |
111 |
|
112 |
EAPI=7 |
113 |
@@ -48,6 +48,7 @@ PATCHES=( |
114 |
"${FILESDIR}"/${PN}-4.8.23-gettext.patch |
115 |
"${FILESDIR}"/${PN}-4.8.23-gettext-test.patch |
116 |
"${FILESDIR}"/${PN}-4.8.23-vfs-gc-SEGV.patch |
117 |
+ "${FILESDIR}"/${PN}-4.8.23-gcc-10.patch |
118 |
) |
119 |
|
120 |
pkg_pretend() { |