summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-01-26 11:56:59 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2020-01-26 11:57:10 +0000
commit4e70b61a62aa8a830ba519211bd7eb33fd2c8473 (patch)
tree4ab7499837d142b4cf0d819a3c0783cebf49e92d /net-misc/shigofumi
parentdev-vcs/mercurial: Use absolute import for zstd (diff)
downloadgentoo-4e70b61a62aa8a830ba519211bd7eb33fd2c8473.tar.gz
gentoo-4e70b61a62aa8a830ba519211bd7eb33fd2c8473.tar.bz2
gentoo-4e70b61a62aa8a830ba519211bd7eb33fd2c8473.zip
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@gentoo.org>
Diffstat (limited to 'net-misc/shigofumi')
-rw-r--r--net-misc/shigofumi/files/shigofumi-0.3-gcc-10.patch11
-rw-r--r--net-misc/shigofumi/shigofumi-0.3-r1.ebuild6
2 files changed, 16 insertions, 1 deletions
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 000000000000..52688ff1d194
--- /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 8667bb035c0c..a5dcea0425c7 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