gnu: freeipmi: Fix build with gcc-14.

* gnu/packages/freeipmi.scm (freeipmi)[arguments]: Add CFLAGS to #:configure-flags
to relax gcc-14's strictness.

Change-Id: I468eab233af14ee41f50fed851bd3e107f8ba617
This commit is contained in:
Janneke Nieuwenhuizen 2025-01-02 18:24:44 +01:00 committed by Andreas Enge
parent 992e27ef85
commit c7ed6aea71
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -2,6 +2,7 @@
;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2015, 2016, 2017, 2020, 2021, 2022 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 20192022 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2025 Janneke Nieuwenhuizen <janneke@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@ -41,27 +42,30 @@
"1bwc5gz3985fly84ap1yq8jkddkf6s5px2dinmswxx9r8qsrr4nn"))))
(build-system gnu-build-system)
(arguments
(append (if (and (%current-target-system)
(target-riscv64?))
(list #:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'update-config-scripts
(lambda* (#:key inputs native-inputs #:allow-other-keys)
;; Replace outdated config.guess and config.sub.
(for-each (lambda (file)
(install-file
(search-input-file
(or native-inputs inputs)
(string-append "/bin/" file)) "config"))
'("config.guess" "config.sub"))))))
'())
(list #:configure-flags #~'("--disable-static"
#$@(if (%current-target-system)
;; We cannot check for these devices
;; when cross compiling.
`("ac_cv_file__dev_random=yes"
"ac_cv_file__dev_urandom=yes")
'())))))
(append
(if (and (%current-target-system)
(target-riscv64?))
(list #:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'update-config-scripts
(lambda* (#:key inputs native-inputs #:allow-other-keys)
;; Replace outdated config.guess and config.sub.
(for-each (lambda (file)
(install-file
(search-input-file
(or native-inputs inputs)
(string-append "/bin/" file)) "config"))
'("config.guess" "config.sub"))))))
'())
(list #:configure-flags
#~'("CFLAGS=-g -O2 -Wno-error=implicit-function-declaration"
"--disable-static"
#$@(if (%current-target-system)
;; We cannot check for these devices
;; when cross compiling.
`("ac_cv_file__dev_random=yes"
"ac_cv_file__dev_urandom=yes")
'())))))
(native-inputs
(if (and (%current-target-system)
(target-riscv64?))