summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-06-21 19:40:49 +0200
committerDavid Seifert <soap@gentoo.org>2020-06-21 19:40:49 +0200
commit8674063d381e616d093806be74b00c64fe5b5c81 (patch)
treefa284fc063d4df6443f56dcf52db9868cc368cd4 /sci-biology
parentdev-lang/gnat-gpl: backport libgomp -Werror fix to 2017 (diff)
downloadgentoo-8674063d381e616d093806be74b00c64fe5b5c81.tar.gz
gentoo-8674063d381e616d093806be74b00c64fe5b5c81.tar.bz2
gentoo-8674063d381e616d093806be74b00c64fe5b5c81.zip
sci-biology/poa: Fix building against GCC 10
Closes: https://bugs.gentoo.org/707028 Package-Manager: Portage-2.3.101, Repoman-2.3.22 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sci-biology')
-rw-r--r--sci-biology/poa/files/poa-2-fno-common.patch13
-rw-r--r--sci-biology/poa/poa-2-r1.ebuild1
2 files changed, 14 insertions, 0 deletions
diff --git a/sci-biology/poa/files/poa-2-fno-common.patch b/sci-biology/poa/files/poa-2-fno-common.patch
new file mode 100644
index 00000000000..ddd738a5524
--- /dev/null
+++ b/sci-biology/poa/files/poa-2-fno-common.patch
@@ -0,0 +1,13 @@
+--- a/black_flag.h
++++ b/black_flag.h
+@@ -236,8 +236,8 @@
+ int sourceline,
+ char sourcefile_revision[]);
+
+-char *Program_name;
+-char *Program_version;
++extern char *Program_name;
++extern char *Program_version;
+
+ void black_flag_init(char progname[],char progversion[]);
+ void black_flag_init_args(int narg,char *arg[],char progversion[]);
diff --git a/sci-biology/poa/poa-2-r1.ebuild b/sci-biology/poa/poa-2-r1.ebuild
index fc472ce9600..126272f06c6 100644
--- a/sci-biology/poa/poa-2-r1.ebuild
+++ b/sci-biology/poa/poa-2-r1.ebuild
@@ -21,6 +21,7 @@ S="${WORKDIR}/${MY_P}"
src_prepare() {
epatch "${FILESDIR}"/${PV}-respect-flags.patch
+ epatch "${FILESDIR}"/${P}-fno-common.patch
}
src_compile() {