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
This commit is contained in:
Janneke Nieuwenhuizen 2025-01-01 18:03:28 +01:00
parent 727ab55b55
commit 9ba949c41e
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -22,7 +22,7 @@
;;; Copyright © 2017, 2019, 2022 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 20172021 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2017 Dave Love <me@fx@gnu.org>
;;; Copyright © 2018, 2019, 2020, 2021, 2022, 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2018, 2019, 2020, 2021, 2022, 2024, 2025 Janneke Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
;;; Copyright © 2018 Nadya Voronova <voronovank@gmail.com>
;;; Copyright © 2018 Adam Massmann <massmannak@gmail.com>
@ -6984,6 +6984,11 @@ (define-public lpsolve
#: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"