From 412f22b76acb1760e6db70b31c994c712f18c8b4 Mon Sep 17 00:00:00 2001 From: Stephen Nicholas Swatman Date: Sat, 31 Aug 2024 20:42:02 +0200 Subject: [PATCH] podio: apply patch for gcc 14 builds (#45854) * podio: apply patch for gcc 14 builds Podio versions after 0.17.0 but before 1.0.0 are broken when using gcc 14 because of a missing include, which is addressed in the podio pull request at https://github.com/AIDASoft/podio/pull/600. This commit patches pre-1.0.0 versions of Podio so they can be compiled with gcc 14, which is important for building Acts. * Style * Style 2 * Fixes * Add comment: * Add sha256 --- var/spack/repos/builtin/packages/podio/package.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/var/spack/repos/builtin/packages/podio/package.py b/var/spack/repos/builtin/packages/podio/package.py index b4b4749dbc8..324af4f23ff 100644 --- a/var/spack/repos/builtin/packages/podio/package.py +++ b/var/spack/repos/builtin/packages/podio/package.py @@ -99,6 +99,13 @@ class Podio(CMakePackage): conflicts("+rntuple", when="@:0.16", msg="rntuple support requires at least podio@0.17") + # See https://github.com/AIDASoft/podio/pull/600 + patch( + "https://github.com/AIDASoft/podio/commit/0222a077aaff817b21a46a590af0f8329dd27d67.patch?full_index=1", + when="@0.17:0.99", + sha256="9e42e0995634f2afdd358cd19383e882dc9143cce1b6afb0d2c4a1ec9add6e15", + ) + # See https://github.com/AIDASoft/podio/pull/599 that landed after 0.99 extends("python", when="@1.0:")