From 68202bcc439dd4ec2a5c839b35a0631f27eb0a90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 11 Apr 2024 12:14:59 +0200 Subject: [PATCH] =?UTF-8?q?gnu:=20pt-scotch:=20Include=20=20so?= =?UTF-8?q?=20=E2=80=98parmetis.h=E2=80=99=20is=20usable.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes a bug when building ‘superlu-dist’ where ‘int32_t’ would be undefined. * gnu/packages/maths.scm (scotch)[source]: Add ‘snippet’. Change-Id: Id5beb2034d762727458821b93568e5b733184c00 --- gnu/packages/maths.scm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 03760f3f3e5..92a9600e096 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -12,7 +12,7 @@ ;;; Copyright © 2015 Fabian Harfert ;;; Copyright © 2016 Roel Janssen ;;; Copyright © 2016, 2018, 2020, 2021 Kei Kebreau -;;; Copyright © 2016-2023 Ludovic Courtès +;;; Copyright © 2016-2024 Ludovic Courtès ;;; Copyright © 2016 Leo Famulari ;;; Copyright © 2016, 2017 Thomas Danckaert ;;; Copyright © 2017, 2018, 2019, 2020, 2021 Paul Garlick @@ -4502,7 +4502,14 @@ implemented in ANSI C, and MPI for communications.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0rbc51albpd2923dkirpkj8rfkic6rsvwqqnv1mmsk391zhk3amr")))) + (base32 "0rbc51albpd2923dkirpkj8rfkic6rsvwqqnv1mmsk391zhk3amr")) + (modules '((guix build utils))) + (snippet + #~(substitute* "src/libscotchmetis/library_parmetis.h" + (("typedef DUMMYINT SCOTCH_Num" all) + ;; 'DUMMYINT' is typically replaced by 'int32_t'. Include + ;; to get that type definition. + (string-append "#include \n" all "\n")))))) (build-system cmake-build-system) (inputs (list zlib))