commit:     a142e0faff27242e7bceb4aed00b3c2b5fcde5a2
Author:     Andrey Grozin <grozin <AT> gentoo <DOT> org>
AuthorDate: Sat May  6 04:58:25 2023 +0000
Commit:     Andrey Grozin <grozin <AT> gentoo <DOT> org>
CommitDate: Sat May  6 04:58:25 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a142e0fa

dev-python/iminuit: fix building with gcc-13

Closes: https://bugs.gentoo.org/895228
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>

 .../iminuit/files/iminuit-2.21.3-gcc-13.patch       | 21 +++++++++++++++++++++
 dev-python/iminuit/iminuit-2.21.3.ebuild            |  2 ++
 2 files changed, 23 insertions(+)

diff --git a/dev-python/iminuit/files/iminuit-2.21.3-gcc-13.patch 
b/dev-python/iminuit/files/iminuit-2.21.3-gcc-13.patch
new file mode 100644
index 000000000000..765b2f555ac4
--- /dev/null
+++ b/dev-python/iminuit/files/iminuit-2.21.3-gcc-13.patch
@@ -0,0 +1,21 @@
+From c26e9b3882d68fbef471bd67c7ea0eeb5a26c481 Mon Sep 17 00:00:00 2001
+From: andriish <andri...@users.noreply.github.com>
+Date: Thu, 4 May 2023 19:08:37 +0200
+Subject: [PATCH] Update fcn.hpp
+
+---
+ src/fcn.hpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/fcn.hpp b/src/fcn.hpp
+index 3e2ff80c..0c53e1be 100644
+--- a/src/fcn.hpp
++++ b/src/fcn.hpp
+@@ -1,6 +1,7 @@
+ #include <Minuit2/FCNGradientBase.h>
+ #include <pybind11/pytypes.h>
+ #include <vector>
++#include <cstdint>
+ 
+ namespace py = pybind11;
+ 

diff --git a/dev-python/iminuit/iminuit-2.21.3.ebuild 
b/dev-python/iminuit/iminuit-2.21.3.ebuild
index 5b482e3c236b..19e4fd25024d 100644
--- a/dev-python/iminuit/iminuit-2.21.3.ebuild
+++ b/dev-python/iminuit/iminuit-2.21.3.ebuild
@@ -31,6 +31,8 @@ BDEPEND="
        )
 "
 
+PATCHES=( "${FILESDIR}"/${P}-gcc-13.patch )
+
 distutils_enable_tests pytest
 
 src_test() {

Reply via email to