From de9f92c5881600e7da319eed1a5481ff0dac034d Mon Sep 17 00:00:00 2001 From: Martin Lang <67915889+lang-m@users.noreply.github.com> Date: Fri, 14 Mar 2025 04:36:06 +0100 Subject: [PATCH] Patch bug in elpa's cpp (#49462) Elpa's custom preprocessor createst temporary files for which it assembles long filenames and then uses the last 250 characters. This results in compilation errors when the first character happens to be a dash. --- var/spack/repos/builtin/packages/elpa/package.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/var/spack/repos/builtin/packages/elpa/package.py b/var/spack/repos/builtin/packages/elpa/package.py index 0f628ba44d5..67887b0dee8 100644 --- a/var/spack/repos/builtin/packages/elpa/package.py +++ b/var/spack/repos/builtin/packages/elpa/package.py @@ -64,6 +64,12 @@ class Elpa(AutotoolsPackage, CudaPackage, ROCmPackage): ) patch("fujitsu.patch", when="%fj") + # wrong filename handling in elpa's custom preprocessor + patch( + "https://gitlab.mpcdf.mpg.de/elpa/elpa/-/commit/5a821b79dd2905c691fc0973c9f3044904ac2653.diff", + sha256="90f18c84e740a35d726e44078a111fac3b6278a0e750ce1f3ea154ee78e93298", + when="@:2025.01.001", + ) depends_on("autoconf@2.71:", type="build", when="@master") depends_on("automake", type="build", when="@master")