Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/mlmmj/files/, net-mail/mlmmj/
Date: Thu, 30 Jan 2020 19:49:45
Message-Id: 1580413774.a1c0385dd3e7a463ababe24f39d96dffd1f6ac28.slyfox@gentoo
1 commit: a1c0385dd3e7a463ababe24f39d96dffd1f6ac28
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 30 19:49:12 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 30 19:49:34 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1c0385d
7
8 net-mail/mlmmj: tweak for gcc-10, bug #
9
10 Reported-by: Toralf Förster
11 Closes: https://bugs.gentoo.org/707476
12 Package-Manager: Portage-2.3.86, Repoman-2.3.20
13 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
14
15 net-mail/mlmmj/files/mlmmj-1.3.0-gcc-10.patch | 20 ++++++++++++++++++++
16 net-mail/mlmmj/mlmmj-1.3.0.ebuild | 3 ++-
17 2 files changed, 22 insertions(+), 1 deletion(-)
18
19 diff --git a/net-mail/mlmmj/files/mlmmj-1.3.0-gcc-10.patch b/net-mail/mlmmj/files/mlmmj-1.3.0-gcc-10.patch
20 new file mode 100644
21 index 00000000000..83217241e1d
22 --- /dev/null
23 +++ b/net-mail/mlmmj/files/mlmmj-1.3.0-gcc-10.patch
24 @@ -0,0 +1,20 @@
25 +--- a/include/mlmmj.h
26 ++++ b/include/mlmmj.h
27 +@@ -81,7 +81,7 @@ enum subtype {
28 + SUB_NONE /* For when an address is not subscribed at all */
29 + };
30 +
31 +-char *subtype_strs[7]; /* count matches enum above; defined in subscriberfuncs.c */
32 ++extern char *subtype_strs[7]; /* count matches enum above; defined in subscriberfuncs.c */
33 +
34 + enum subreason {
35 + SUB_REQUEST,
36 +@@ -92,7 +92,7 @@ enum subreason {
37 + SUB_SWITCH
38 + };
39 +
40 +-char * subreason_strs[6]; /* count matches enum above; defined in subscriberfuncs.c */
41 ++extern char * subreason_strs[6]; /* count matches enum above; defined in subscriberfuncs.c */
42 +
43 + void print_version(const char *prg);
44 +
45
46 diff --git a/net-mail/mlmmj/mlmmj-1.3.0.ebuild b/net-mail/mlmmj/mlmmj-1.3.0.ebuild
47 index 66a6bc8a1e1..c955caee300 100644
48 --- a/net-mail/mlmmj/mlmmj-1.3.0.ebuild
49 +++ b/net-mail/mlmmj/mlmmj-1.3.0.ebuild
50 @@ -1,4 +1,4 @@
51 -# Copyright 1999-2018 Gentoo Foundation
52 +# Copyright 1999-2020 Gentoo Authors
53 # Distributed under the terms of the GNU General Public License v2
54
55 EAPI=6
56 @@ -18,6 +18,7 @@ S="${WORKDIR}/${MY_P}"
57 DOCS="AUTHORS ChangeLog FAQ README* TODO TUNABLES UPGRADE"
58 PATCHES=(
59 "${FILESDIR}"/mlmmj-1.2.19.0-listcontrol-customheaders.patch
60 + "${FILESDIR}"/mlmmj-1.3.0-gcc-10.patch
61 )
62
63 src_configure() {