From 21fed73301f33176d1986aed3b31e2751f119dc9 Mon Sep 17 00:00:00 2001 From: Pacho Ramos Date: Tue, 25 Apr 2023 15:12:01 +0200 Subject: sci-libs/libcifpp: Fix build with gcc-13 Closes: https://bugs.gentoo.org/897978 Signed-off-by: Pacho Ramos --- .../files/libcifpp-5.0.8-missing-include.patch | 21 +++++++++++++++++++++ sci-libs/libcifpp/libcifpp-5.0.8.ebuild | 5 +++++ 2 files changed, 26 insertions(+) create mode 100644 sci-libs/libcifpp/files/libcifpp-5.0.8-missing-include.patch (limited to 'sci-libs') 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" +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 + #include ++#include + #include + #include + #include 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 -- cgit v1.2.3-65-gdbad