janneke pushed a commit to branch core-packages-team in repository guix. commit 25b870e3a63d08472e3a6374062c9111469edbc5 Author: Janneke Nieuwenhuizen <jann...@gnu.org> AuthorDate: Wed Jan 1 18:03:28 2025 +0100
gnu: lpsolve: Fix build with gcc-14. * gnu/packages/maths.scm (lpsolve)[arguments]: Add phase "apply-gcc-14-patch" to relax gcc-14's strictness. Change-Id: I4bab0523dccb3b0c85bcce3045edf2a1f18c0539 --- gnu/packages/maths.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index b221659413..928493e185 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -22,7 +22,7 @@ ;;; Copyright © 2017, 2019, 2022 Arun Isaac <arunis...@systemreboot.net> ;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <m...@tobias.gr> ;;; Copyright © 2017 Dave Love <me@f...@gnu.org> -;;; Copyright © 2018, 2019, 2020, 2021, 2022, 2024 Janneke Nieuwenhuizen <jann...@gnu.org> +;;; Copyright © 2018, 2019, 2020, 2021, 2022, 2024, 2025 Janneke Nieuwenhuizen <jann...@gnu.org> ;;; Copyright © 2018 Joshua Sierles, Nextjournal <jos...@nextjournal.com> ;;; Copyright © 2018 Nadya Voronova <voronov...@gmail.com> ;;; Copyright © 2018 Adam Massmann <massman...@gmail.com> @@ -7223,6 +7223,11 @@ specifications.") #:phases (modify-phases %standard-phases (delete 'configure) ; no configure script + (add-after 'unpack 'apply-gcc-14-patch + (lambda _ + (substitute* '("lpsolve55/ccc" + "lp_solve/ccc") + (("^c=gcc") "c=\"gcc -Wno-error=implicit-int\"")))) (replace 'build (lambda _ (with-directory-excursion "lpsolve55"