summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-01-30 19:49:12 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2020-01-30 19:49:34 +0000
commita1c0385dd3e7a463ababe24f39d96dffd1f6ac28 (patch)
tree29d92a0ea8dcb1e39b44b39a21f192e62554a55f /net-mail/mlmmj
parentsys-kernel/gentoo-kernel-bin: Bump to 5.4.16 (diff)
downloadgentoo-a1c0385dd3e7a463ababe24f39d96dffd1f6ac28.tar.gz
gentoo-a1c0385dd3e7a463ababe24f39d96dffd1f6ac28.tar.bz2
gentoo-a1c0385dd3e7a463ababe24f39d96dffd1f6ac28.zip
net-mail/mlmmj: tweak for gcc-10, bug #
Reported-by: Toralf Förster Closes: https://bugs.gentoo.org/707476 Package-Manager: Portage-2.3.86, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'net-mail/mlmmj')
-rw-r--r--net-mail/mlmmj/files/mlmmj-1.3.0-gcc-10.patch20
-rw-r--r--net-mail/mlmmj/mlmmj-1.3.0.ebuild3
2 files changed, 22 insertions, 1 deletions
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
new file mode 100644
index 000000000000..83217241e1db
--- /dev/null
+++ b/net-mail/mlmmj/files/mlmmj-1.3.0-gcc-10.patch
@@ -0,0 +1,20 @@
+--- a/include/mlmmj.h
++++ b/include/mlmmj.h
+@@ -81,7 +81,7 @@ enum subtype {
+ SUB_NONE /* For when an address is not subscribed at all */
+ };
+
+-char *subtype_strs[7]; /* count matches enum above; defined in subscriberfuncs.c */
++extern char *subtype_strs[7]; /* count matches enum above; defined in subscriberfuncs.c */
+
+ enum subreason {
+ SUB_REQUEST,
+@@ -92,7 +92,7 @@ enum subreason {
+ SUB_SWITCH
+ };
+
+-char * subreason_strs[6]; /* count matches enum above; defined in subscriberfuncs.c */
++extern char * subreason_strs[6]; /* count matches enum above; defined in subscriberfuncs.c */
+
+ void print_version(const char *prg);
+
diff --git a/net-mail/mlmmj/mlmmj-1.3.0.ebuild b/net-mail/mlmmj/mlmmj-1.3.0.ebuild
index 66a6bc8a1e10..c955caee3007 100644
--- a/net-mail/mlmmj/mlmmj-1.3.0.ebuild
+++ b/net-mail/mlmmj/mlmmj-1.3.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -18,6 +18,7 @@ S="${WORKDIR}/${MY_P}"
DOCS="AUTHORS ChangeLog FAQ README* TODO TUNABLES UPGRADE"
PATCHES=(
"${FILESDIR}"/mlmmj-1.2.19.0-listcontrol-customheaders.patch
+ "${FILESDIR}"/mlmmj-1.3.0-gcc-10.patch
)
src_configure() {