commit: 4e70b61a62aa8a830ba519211bd7eb33fd2c8473 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> AuthorDate: Sun Jan 26 11:56:59 2020 +0000 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> CommitDate: Sun Jan 26 11:57:10 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e70b61a
net-misc/shigofumi: tweak for gcc-10, bug #706428 Reported-by: Toralf Förster Closes: https://bugs.gentoo.org/706428 Package-Manager: Portage-2.3.85, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> net-misc/shigofumi/files/shigofumi-0.3-gcc-10.patch | 11 +++++++++++ net-misc/shigofumi/shigofumi-0.3-r1.ebuild | 6 +++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/net-misc/shigofumi/files/shigofumi-0.3-gcc-10.patch b/net-misc/shigofumi/files/shigofumi-0.3-gcc-10.patch new file mode 100644 index 00000000000..52688ff1d19 --- /dev/null +++ b/net-misc/shigofumi/files/shigofumi-0.3-gcc-10.patch @@ -0,0 +1,11 @@ +--- a/src/shigofumi.h ++++ b/src/shigofumi.h +@@ -16,7 +16,7 @@ + extern shi_state state;*/ + + /* UI */ +-FILE *output; ++extern FILE *output; + + /* Data */ + extern struct isds_list *boxes; diff --git a/net-misc/shigofumi/shigofumi-0.3-r1.ebuild b/net-misc/shigofumi/shigofumi-0.3-r1.ebuild index 8667bb035c0..a5dcea0425c 100644 --- a/net-misc/shigofumi/shigofumi-0.3-r1.ebuild +++ b/net-misc/shigofumi/shigofumi-0.3-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -36,6 +36,10 @@ DEPEND="${RDEPEND} nls? ( sys-devel/gettext ) " +PATCHES=( + "${FILESDIR}"/${P}-gcc-10.patch +) + src_prepare() { default [[ ${PV} = 9999* ]] && eautoreconf