commit:     1f20252245bf55c15c8664783024d06c1eaf6c6a
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat May  7 13:13:13 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat May  7 13:13:13 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f202522

sci-biology/STAR: fix GCC 12 build

Closes: https://bugs.gentoo.org/840586
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 sci-biology/STAR/STAR-2.7.10a.ebuild               |  5 ++++-
 .../STAR/files/STAR-2.7.10a-missing-include.patch  | 22 ++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/sci-biology/STAR/STAR-2.7.10a.ebuild 
b/sci-biology/STAR/STAR-2.7.10a.ebuild
index 7239efcfe45c..c3deb5a94b0a 100644
--- a/sci-biology/STAR/STAR-2.7.10a.ebuild
+++ b/sci-biology/STAR/STAR-2.7.10a.ebuild
@@ -17,7 +17,10 @@ RDEPEND="sci-libs/htslib:="
 DEPEND="${RDEPEND}"
 BDEPEND="virtual/pkgconfig"
 
-PATCHES=( "${FILESDIR}"/${PN}-2.7.10a-fix-build-system.patch )
+PATCHES=(
+       "${FILESDIR}"/${PN}-2.7.10a-fix-build-system.patch
+       "${FILESDIR}"/${PN}-2.7.10a-missing-include.patch
+)
 DOCS=( README.md CHANGES.md RELEASEnotes.md doc/STARmanual.pdf )
 
 pkg_pretend() {

diff --git a/sci-biology/STAR/files/STAR-2.7.10a-missing-include.patch 
b/sci-biology/STAR/files/STAR-2.7.10a-missing-include.patch
new file mode 100644
index 000000000000..c056a8aad887
--- /dev/null
+++ b/sci-biology/STAR/files/STAR-2.7.10a-missing-include.patch
@@ -0,0 +1,22 @@
+From f5ad94329db4fd81fc6ae30684c298772002e30b Mon Sep 17 00:00:00 2001
+From: David Seifert <[email protected]>
+Date: Sat, 7 May 2022 15:06:11 +0200
+Subject: [PATCH] Add missing `#include <array>` (GCC 12)
+
+Bug: https://bugs.gentoo.org/840586
+---
+ source/SoloCommon.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/source/SoloCommon.h b/source/SoloCommon.h
+index 2a1d5fcf..5adc5040 100644
+--- a/source/SoloCommon.h
++++ b/source/SoloCommon.h
+@@ -1,6 +1,7 @@
+ #ifndef H_SoloCommon
+ #define H_SoloCommon
+ 
++#include <array>
+ #include <unordered_map>
+ 
+ typedef struct{

Reply via email to