From adc145bc60a27b69c8d00f1eb7e44f33cd57be44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Tue, 18 Apr 2023 14:59:27 +0200 Subject: [PATCH] sci-mathematics/cryptominisat: fix build with GCC 13 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/895116 Signed-off-by: Maciej Barć --- .../cryptominisat/cryptominisat-5.11.4.ebuild | 2 ++ .../files/cryptominisat-5.11.4-gcc-13.patch | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 sci-mathematics/cryptominisat/files/cryptominisat-5.11.4-gcc-13.patch diff --git a/sci-mathematics/cryptominisat/cryptominisat-5.11.4.ebuild b/sci-mathematics/cryptominisat/cryptominisat-5.11.4.ebuild index a4f699cc2afd3..6ff76af75ca29 100644 --- a/sci-mathematics/cryptominisat/cryptominisat-5.11.4.ebuild +++ b/sci-mathematics/cryptominisat/cryptominisat-5.11.4.ebuild @@ -21,6 +21,8 @@ RDEPEND=" " DEPEND="${RDEPEND}" +PATCHES=( "${FILESDIR}"/${PN}-5.11.4-gcc-13.patch ) + src_configure() { local -a mycmakeargs=( -DNOBREAKID=ON diff --git a/sci-mathematics/cryptominisat/files/cryptominisat-5.11.4-gcc-13.patch b/sci-mathematics/cryptominisat/files/cryptominisat-5.11.4-gcc-13.patch new file mode 100644 index 0000000000000..e9c7fade75fe7 --- /dev/null +++ b/sci-mathematics/cryptominisat/files/cryptominisat-5.11.4-gcc-13.patch @@ -0,0 +1,11 @@ +index 0cf7910..54cb45e 100644 +--- a/src/ccnr.h ++++ b/src/ccnr.h +@@ -23,6 +23,7 @@ THE SOFTWARE. + #ifndef CCNR_H + #define CCNR_H + ++#include + #include + #include + #include "ccnr_mersenne.h"