py-datrie: patch to allow gcc-14 compilation (#47017)

This commit is contained in:
Wouter Deconinck 2024-10-22 13:38:57 -05:00 committed by GitHub
parent 50aa5a7b24
commit 9c8b5f58c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,3 +22,8 @@ class PyDatrie(PythonPackage):
depends_on("py-setuptools@40.8:", type=("build")) depends_on("py-setuptools@40.8:", type=("build"))
depends_on("py-cython@0.28:", type="build") depends_on("py-cython@0.28:", type="build")
depends_on("py-pytest-runner", type="build") depends_on("py-pytest-runner", type="build")
@when("@:0.8.2")
def patch(self):
# fix failure to compile on gcc-14, https://github.com/pytries/datrie/pull/99
filter_file(r"(\s*)(struct AlphaMap:)", r"\1ctypedef \2", "src/cdatrie.pxd")