net-misc/shigofumi: tweak for gcc-10, bug #706428
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 26 Jan 2020 11:56:59 +0000 (11:56 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 26 Jan 2020 11:57:10 +0000 (11:57 +0000)
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@gentoo.org>
net-misc/shigofumi/files/shigofumi-0.3-gcc-10.patch [new file with mode: 0644]
net-misc/shigofumi/shigofumi-0.3-r1.ebuild

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 (file)
index 0000000..52688ff
--- /dev/null
@@ -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;
index 8667bb035c0cbb0837da40d52829b5e3811c7bf3..a5dcea0425c70f11959113c32747f123f9098283 100644 (file)
@@ -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