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 7d48f27f56
commit ad1cd13fa8
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -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"