summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2023-04-25 15:12:01 +0200
committerPacho Ramos <pacho@gentoo.org>2023-04-25 15:12:01 +0200
commit21fed73301f33176d1986aed3b31e2751f119dc9 (patch)
tree74865a0dde7e46f4eced90a6290cebfc6421602d /sci-libs
parentdev-lang/crystal: remove unused patches (diff)
downloadgentoo-21fed73301f33176d1986aed3b31e2751f119dc9.tar.gz
gentoo-21fed73301f33176d1986aed3b31e2751f119dc9.tar.bz2
gentoo-21fed73301f33176d1986aed3b31e2751f119dc9.zip
sci-libs/libcifpp: Fix build with gcc-13
Closes: https://bugs.gentoo.org/897978 Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/libcifpp/files/libcifpp-5.0.8-missing-include.patch21
-rw-r--r--sci-libs/libcifpp/libcifpp-5.0.8.ebuild5
2 files changed, 26 insertions, 0 deletions
diff --git a/sci-libs/libcifpp/files/libcifpp-5.0.8-missing-include.patch b/sci-libs/libcifpp/files/libcifpp-5.0.8-missing-include.patch
new file mode 100644
index 000000000000..26735e003f4d
--- /dev/null
+++ b/sci-libs/libcifpp/files/libcifpp-5.0.8-missing-include.patch
@@ -0,0 +1,21 @@
+From 0f03fc31e058da4b66f16a67e7674fba1b85ca80 Mon Sep 17 00:00:00 2001
+From: "Maarten L. Hekkelman" <maarten@hekkelman.com>
+Date: Wed, 19 Apr 2023 09:22:32 +0200
+Subject: [PATCH] added required include
+
+---
+ include/cif++/text.hpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/include/cif++/text.hpp b/include/cif++/text.hpp
+index 9da9ab9..00f33c1 100644
+--- a/include/cif++/text.hpp
++++ b/include/cif++/text.hpp
+@@ -30,6 +30,7 @@
+
+ #include <charconv>
+ #include <cmath>
++#include <cstdint>
+ #include <limits>
+ #include <set>
+ #include <sstream>
diff --git a/sci-libs/libcifpp/libcifpp-5.0.8.ebuild b/sci-libs/libcifpp/libcifpp-5.0.8.ebuild
index 856007e7bd81..b468bb36559f 100644
--- a/sci-libs/libcifpp/libcifpp-5.0.8.ebuild
+++ b/sci-libs/libcifpp/libcifpp-5.0.8.ebuild
@@ -22,6 +22,11 @@ RESTRICT="!test? ( test )"
DEPEND="dev-libs/boost:="
RDEPEND="${DEPEND}"
+PATCHES=(
+ # https://github.com/PDB-REDO/libcifpp/issues/40
+ "${FILESDIR}/${P}-missing-include.patch"
+)
+
src_configure() {
cp "${WORKDIR}"/${P}-components.cif data/components.cif || die