From 284dfd9f9b0d792781d581f3fc1f641c762c3f7a Mon Sep 17 00:00:00 2001 From: Joseph C Wang Date: Sun, 1 Dec 2024 18:42:35 +0800 Subject: [PATCH] py-pyhepmc: match signatures to gcc header files deal with different std::strstring::str definitions in different compiler environments --- packages/py-pyhepmc/package.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/py-pyhepmc/package.py b/packages/py-pyhepmc/package.py index 72895dfb..2363541a 100644 --- a/packages/py-pyhepmc/package.py +++ b/packages/py-pyhepmc/package.py @@ -22,6 +22,13 @@ class PyPyhepmc(PythonPackage): sha256="17a6f941e4fa06d08a628990f6816d1da5e545d65f533e6f598740d2cb76ace4", ) + # match signature to different compiler versions + patch( + "https://patch-diff.githubusercontent.com/raw/scikit-hep/pyhepmc/pull/85.patch?full_index=1", + sha256="0a87e2da07fbf12a15b2c7025f7ee3fcd5bff540f331e4d820e4ea0ba2e779f2", + when="@:2.14.0", + ) + depends_on("cmake", type="build") depends_on("py-setuptools-scm", type="build")