commit:     1cbb72d72215c830304bbef32c9212d24e7cd250
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 16 14:19:50 2020 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Tue Jun 16 14:19:50 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1cbb72d7

www-client/w3mmee: fix build with >=sys-devel/gcc-10

Closes: https://bugs.gentoo.org/706604
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>

 www-client/w3mmee/files/w3mmee-gcc-10.patch   | 17 +++++++++++++++++
 www-client/w3mmee/w3mmee-0.3.2_p24-r12.ebuild |  1 +
 2 files changed, 18 insertions(+)

diff --git a/www-client/w3mmee/files/w3mmee-gcc-10.patch 
b/www-client/w3mmee/files/w3mmee-gcc-10.patch
new file mode 100644
index 00000000000..262be512dc1
--- /dev/null
+++ b/www-client/w3mmee/files/w3mmee-gcc-10.patch
@@ -0,0 +1,17 @@
+--- a/fm.h
++++ b/fm.h
+@@ -1191,12 +1191,12 @@
+ global TextList *mimetypes_list;
+ global char *mailcap_files init("0, " USER_MAILCAP ", 0, " SYS_MAILCAP ", 1, 
" GLOBAL_MAILCAP);
+ global char *mimetypes_files init(USER_MIMETYPES ", " SYS_MIMETYPES);
+-global TextList mailcap_entries;
++extern TextList mailcap_entries;
+ 
+ global struct mailcap **UserBrowsecap init(NULL);
+ global TextList *browsecap_list;
+ global char *browsecap_files init(USER_BROWSECAP ", " SYS_BROWSECAP);
+-global TextList browsecap_entries;
++extern TextList browsecap_entries;
+ 
+ global TextList *fileToDelete;
+ 

diff --git a/www-client/w3mmee/w3mmee-0.3.2_p24-r12.ebuild 
b/www-client/w3mmee/w3mmee-0.3.2_p24-r12.ebuild
index 1a707e3bfcd..96d017eb15b 100644
--- a/www-client/w3mmee/w3mmee-0.3.2_p24-r12.ebuild
+++ b/www-client/w3mmee/w3mmee-0.3.2_p24-r12.ebuild
@@ -35,6 +35,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-boehm-gc.patch
        "${FILESDIR}"/${PN}-gcc-4.4.patch
        "${FILESDIR}"/${PN}-gcc-4.5.patch
+       "${FILESDIR}"/${PN}-gcc-10.patch
        "${FILESDIR}"/${PN}-glibc-2.14.patch
        "${FILESDIR}"/${PN}-openssl-1.1.patch
        "${FILESDIR}"/${PN}-rc_name.patch

Reply via email to