gnu: accountsservice: Fix build with gcc-14.

* gnu/packages/freedesktop.scm (accountsservice)[arguments]: Add phase
"relax-gcc-14-strictness".

Change-Id: I19ceb499479911041d88e375d8989861713133d2
This commit is contained in:
Janneke Nieuwenhuizen 2024-12-30 21:30:12 +01:00
parent 571a6e012f
commit 6f7d1eeca9
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -1925,6 +1925,10 @@ (define-public accountsservice
(search-input-file inputs "bin/passwd"))
(("/usr/bin/chage")
(search-input-file inputs "bin/chage")))))
(add-before 'configure 'relax-gcc-14-strictness
(lambda _
(setenv "CFLAGS"
"-g -O2 -Wno-error=implicit-function-declaration")))
(add-after 'install 'wrap-with-xdg-data-dirs
;; This is to allow accountsservice finding extensions, which
;; should be installed to the system profile.