janneke pushed a commit to branch core-packages-team
in repository guix.
commit 6c06e16a8ffeaf5a99a88f8288c61cee7b9adb63
Author: Janneke Nieuwenhuizen <[email protected]>
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 f1a066015c..eed4260b5f 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -22,7 +22,7 @@
;;; Copyright © 2017, 2019, 2022 Arun Isaac <[email protected]>
;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <[email protected]>
;;; Copyright © 2017 Dave Love <me@[email protected]>
-;;; Copyright © 2018, 2019, 2020, 2021, 2022, 2024 Janneke Nieuwenhuizen
<[email protected]>
+;;; Copyright © 2018, 2019, 2020, 2021, 2022, 2024, 2025 Janneke Nieuwenhuizen
<[email protected]>
;;; Copyright © 2018 Joshua Sierles, Nextjournal <[email protected]>
;;; Copyright © 2018 Nadya Voronova <[email protected]>
;;; Copyright © 2018 Adam Massmann <[email protected]>
@@ -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"