gnu: startup-notification: Fix build with gcc-14.

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

Change-Id: Ie20f622414e2482932e027bdf7bf7acf18192a6b
This commit is contained in:
Janneke Nieuwenhuizen 2025-01-01 14:16:43 +01:00
parent 9f2b7aca1d
commit a5188550a3
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -65,6 +65,7 @@
;;; Copyright © 2024 Igor Goryachev <igor@goryachev.org>
;;; Copyright © 2024 Ashish SHUKLA <ashish.is@lostca.se>
;;; Copyright © 2024 Spencer Peters <spencerpeters@protonmail.com>
;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@ -957,7 +958,8 @@ (define-public startup-notification
#:configure-flags #~(list
;; when cross-compilation, skip realloc checking
"lf_cv_sane_realloc=yes"
(string-append "PKG_CONFIG=" #$(pkg-config-for-target)))
(string-append "PKG_CONFIG="
#$(pkg-config-for-target)))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'update-config-scripts
@ -969,7 +971,9 @@ (define-public startup-notification
(or native-inputs inputs)
(string-append "/bin/" file)) "."))
'("config.guess" "config.sub"))))))
'()))
(list
#:configure-flags
#~(list "CFLAGS=-g -O2 -Wno-error=int-conversion"))))
(native-inputs (append (if (and (or (target-riscv64?)
(target-aarch64?))
(%current-target-system))