From 71f83be9beeb1ed4c39d0e0ad442a8aba54a2c8c Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sat, 25 Jan 2020 20:38:35 +0100 Subject: [PATCH] sci-biology/bwa: Fix -fno-common bug Closes: https://bugs.gentoo.org/706348 Package-Manager: Portage-2.3.85, Repoman-2.3.20 Signed-off-by: David Seifert --- sci-biology/bwa/bwa-0.7.16a.ebuild | 10 ++++++---- sci-biology/bwa/files/bwa-0.7.16a-gcc-10.patch | 7 +++++++ 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 sci-biology/bwa/files/bwa-0.7.16a-gcc-10.patch diff --git a/sci-biology/bwa/bwa-0.7.16a.ebuild b/sci-biology/bwa/bwa-0.7.16a.ebuild index 21fe67143bd2..b29bf210169a 100644 --- a/sci-biology/bwa/bwa-0.7.16a.ebuild +++ b/sci-biology/bwa/bwa-0.7.16a.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 inherit toolchain-funcs @@ -11,12 +11,14 @@ SRC_URI="mirror://sourceforge/bio-bwa/${P}.tar.bz2" LICENSE="GPL-3" SLOT="0" -IUSE="" KEYWORDS="~amd64 ~x86 ~x64-macos" RDEPEND="dev-lang/perl" -PATCHES=( "${FILESDIR}"/${PN}-0.7.15-Makefile.patch ) +PATCHES=( + "${FILESDIR}"/${PN}-0.7.15-Makefile.patch + "${FILESDIR}"/${PN}-0.7.16a-gcc-10.patch +) DOCS=( NEWS.md README-alt.md README.md ) src_configure() { diff --git a/sci-biology/bwa/files/bwa-0.7.16a-gcc-10.patch b/sci-biology/bwa/files/bwa-0.7.16a-gcc-10.patch new file mode 100644 index 000000000000..40056ffeaaa9 --- /dev/null +++ b/sci-biology/bwa/files/bwa-0.7.16a-gcc-10.patch @@ -0,0 +1,7 @@ +--- a/rle.h ++++ b/rle.h +@@ -32,3 +32,3 @@ extern "C" { + +-const uint8_t rle_auxtab[8]; ++extern const uint8_t rle_auxtab[8]; + -- 2.26.2